Updated to reflect new configuration options in Fog 1.10.1 #37
Conversation
THIS would be superawesome if it got in! Atm knife-rackspace is using old endpoints/API which is making any rackspace knife plugin development utter pain. |
👍 |
@mattray I discovered a bug in Fog 1.10.1 where we were not passing the connection information (proxy, ssl_verify_peer) onto the authentication service when we were using Auth 2.0 Service. ('https://identity.api.rackspacecloud.com/v2.0') I just merged the fix fog/fog#1849. I would like to hold off on this pull request until the new version of fog is release. It should be fairly soon. |
…e from the service catalog; updated to require fog 1.10.1
…detect correct authentication endpoint for region
…ires ruby 1.9.3; updating vcr cassettes.
@mattray can you review this and merge it when you get a chance? |
@mattray I have rebased this PR with the latest version of master and have successfully tested it. Can you merge it for me? Thanks! |
Why did you add custom endpoint support and take away the rackspace_auth_url default? In the fix for KNIFE-315, I removed the rackspace_endpoint stuff because it was the source of the rackspace_compute_url deprecation warnings and everything worked without it. Is that how one specifies the data center or is that what the rackspace_region is for? Do we need rackspace_auth_url, rackspace_compute_url and rackspace_region? The docs on http://docs.rackspace.com/auth/api/v2.0/auth-client-devguide/content/Endpoints-d1e180.html didn't clear that up for me. |
Prior to Fog 1.10.1, Fog used the 1.0 authentication service. Fog would authenticate against the Fog 1.10.1 uses the 2.0 authentication service. When fog authenticates it receives an auth token as well as a service catalog containing a list of service endpoints by region. Users should preference specifying a region rather than an endpoint. Of course, users of a private cloud still have the option to specify a custom endpoint by using |
When you say "users of a private cloud", is there a private version of Rackspace Cloud that uses the knife plugin that isn't OpenStack (Rackspace Private Cloud)? It seems that we should only need the |
I am not really sure what implementation of knife Rackspace Private Cloud users are using. I can try to check with one of our internal devops groups about that. (Unless you know the answer). The |
I haven't checked the latest release, but knife-openstack has worked with all the previous Rackspace Private Cloud releases. Could we update the patch to drop the |
I am not against it, but I want to make sure it will not impact anyone before we remove it. Let me ask around at the Rack. |
I spoke with @gecampbell and he says that we at least need the I can go ahead and remove the |
@mattray I removed the ability to specify the compute endpoint. |
@mattray Can you review and pull this? |
@krames the readme still refers to the In the gemspec, do we want to loosen up this dependency to "> 1.10" since 1.12.1 is already out?
Other than that, it's looking good. |
@mattray good catch! I removed |
Updated to reflect new configuration options in Fog 1.10.1
This pull request updates knife-rackspace to reflect the new configuration options in Fog 1.10.1. These changes were to accommodate the new Rackspace/OpenStack authentication API.
Please let me know if you have any questions or need me to rework something.
Thanks!
Kyle