vagrant-openstack-provider icon indicating copy to clipboard operation
vagrant-openstack-provider copied to clipboard

Unable to find IP when using Network Id and no floating ips

Open Drakoskai opened this issue 8 years ago • 1 comments

This may not be a big deal but caused me to scratch my head a bit since the readme says to prefer ID over name for networks.

I have a Public network and a tenant network configured -- both are fixed, my service provider doesn't allow floating IP pools on the Public and will assign me an IP on box creation. My tenant network is going to be the network that my boxes will use as their private network and I will be setting those IPs directly.

I need the Vagrant to ssh in on the Public network IP that's assigned by my service provider. I end up with a: vagrant-openstack-provider/utils.rb:21:in get_ip_address': Catched Error: Catched Error: Catched Error: Catched Error: Catched Error: Catched Error: Catched Error: Catched Error: undefined methodsize' for nil:NilClass (NoMethodError)

(vagrant-openstack-provider/utils.rb:19) The resolution was not to use the ID of the network, and instead to use the Name. The id isn't valid for the statement addresses[env[:machine].provider_config.networks[0]] since addresses is indexed by name.

this triggers the fail at vagrant-openstack-provider/utils.rb:21 because net_addresses is nil

Is this a matter of me not configuring things correctly or should we be able to use the Id in this case?

Drakoskai avatar Feb 23 '16 17:02 Drakoskai

Can you please provide the full vagrant log showing the error. To do so, set en environment variable VAGRANT_OPENSTACK_LOG and run vagrant up normally.

$ export VAGRANT_OPENSTACK_LOG=debug

ggiamarchi avatar Feb 29 '16 13:02 ggiamarchi