ggiamarchi / vagrant-openstack-provider

Use Vagrant to manage OpenStack Cloud instances.
MIT License
247 stars 101 forks source link

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

Open Drakoskai opened 8 years ago

Drakoskai commented 8 years ago

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?

ggiamarchi commented 8 years ago

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