-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Openstack methods assume the extension for floating IP's is loaded #2160
Comments
@krames - do you maybe have context or advice here? |
@mikelococo @geemus Let me dig into this and see if I can find some answers. |
Thanks for looking into this. Nothing to add; just getting onto the CCs for any updates before I forget. |
I spoke with one of our networking guys and I was told that this was a fairly common implementation for an OpenStack installation. Rather than catching these exceptions and returning @RoboticCheese Do you know what strategy your installation is using? |
@krames It's the v2 Cloud Servers where I first encountered it (I know there's separate Fog code for Rackspace, but I like to test against as many OpenStack environments as I can). I'm not sure if there's a specific name for that style of installation; I was talking to an OpenStack dev who used to be on my team and he noted that we/they return a 404 for floating IPs due to that extension not being in use. I tested against our internal OpenStack deployment as well and got the same result. |
@RoboticCheese Thanks for the follow up. If you can, I would love to know how to get ip addresses for a server in your installation. Once you do that we can add this as a configuration option to fog. |
@krames For whatever it's worth, the It's sounding like the one true answer may be that there is no one true answer for the large variety of OpenStack deployments. In that case, I'm cool with for now continuing just making a best guess at an IP between what I get out of |
The only addition I'd make to what @RoboticCheese has already said is that kitchen-openstack isn't the only project that has been tripped up by the fog-openstack's IP abstractions leaking complexity. I've hit it in closed-source projects, and vagrant-openstack hit it (https://github.com/cloudbau/vagrant-openstack-plugin/issues/16). I get the sense that this is a right of passage for most users of fog-openstack...
I'm not sure how to drastically improve things... perhaps what's really needed is an improvement in the openstack API to radically simplify the simple/common cases of ip-address enumeration. But I do think that server.private_ip_address in particular should try very hard to return something so downstream devs can use it at the tail end of their decision tree and know that they'll get an address. |
We're blocked by this issue. chef-client blows up with an Excon::Errors:Forbidden error, due to this line:
Explicitly telling fog to use the private ip for ssh still attempts to grab the list of floating ips, which is not supported in our installation of OpenStack. Any suggestions? |
@gshively11 As you probably know there are different strategies for allocating ip address in OpenStack and at the time this issue first occurred there was not a good way to programmatically retrieve an accessible ip address. I believe OpenStack was aware of this issue and was trying to address it, however, I haven't kept up with it. TLDR; I do not think fog/chef is going to work out of the box for you. You might need to submit a pr to fix this. @ @mdarby is this something you can help with? |
We have similar issues with caskdata/coopr-provisioner and the fog_provider plugin. |
Coming up in OpenStack, the "don't care what you have to do, just get me a network" API: http://specs.openstack.org/openstack/neutron-specs/specs/liberty/get-me-a-network.html eta April 2016 |
Closing in favor of fog/fog-openstack#38 |
server.public_ip_address and server.private_ip_address fail when executed against an Openstack implementation without the floating-ip extension loaded. I'm not sure how common this is, but Rackspace does it. While fog has a separate Rackspace provider, other small openstack implementations may follow their lead on config options.
Stacktraces:
This was discovered while testing kitchen-openstack: test-kitchen/kitchen-openstack#16
The text was updated successfully, but these errors were encountered: