major / supernova

Use novaclient with multiple OpenStack nova environments the easy way
http://supernova.readthedocs.org/
Apache License 2.0
86 stars 54 forks source link

does the latest nova / openstackclient work with rackspace? #110

Open kzap opened 8 years ago

kzap commented 8 years ago

im trying to use supernova with rackspace but after i upgraded the clients i always get 401's but rack-cli works fine, thus i cant use novaclient / supernova anymore or openstackclient with rackspace cloud....

cant find any bug reports about this also


Using parameters {'username': '_', 'project_id': '_', 'password': '***', 'auth_url': 'https://identity.api.rackspacecloud.com/v2.0/'} Get auth_ref REQ: curl -g -i -X GET https://identity.api.rackspacecloud.com/v2.0/ -H "Accept: application/json" -H "User-Agent: python-openstackclient keystoneauth1/2.5.0 python-requests/2.9.1 CPython/2.7.11" RESP: [200] Content-Length: 307 Content-Encoding: gzip vary: Accept, Accept-Encoding, X-Auth-Token X-NewRelic-App-Data: PxQGUF9aDwETVlhSBQgFVUYdFGQHBDcQUQxLA1tMXV1dORYzVBJHNQFUZAQUFVFQVThOAVhcGRQFUl1AEgcABx4LXA8WWURbHRdcEl4UQQEBGFQNCRZcHUZWUUx0XVgTAAMGZQcUEAtfDGoHS1dBQFAAZU5WBEchCFlCBVRTblZCFwgNWXhZAAsTGgNMVk9SHlIJVA0JBR4eVBVDBQUDUwFSAldWUl0BUwAHVBVs Server: nginx Connection: keep-alive Front-End-Https: on Date: Wed, 13 Apr 2016 13:27:36 GMT Content-Type: application/json RESP BODY: {"version":{"id":"v2.0","updated":"2012-01-21T11:33:21-06:00","status":"CURRENT","links":[{"rel":"self","href":"https:\/\/identity.api.rackspacecloud.com\/v2.0"},{"rel":"describedby","type":"application\/pdf","href":"http:\/\/docs.rackspacecloud.com\/auth\/api\/v2.0\/auth-client-devguide-latest.pdf"},{"rel":"describedby","type":"application\/vnd.sun.wadl+xml","href":"http:\/\/docs.rackspacecloud.com\/auth\/api\/v2.0\/auth.wadl"}],"media-types":{"values":[{"base":"application\/xml","type":"application\/vnd.openstack.identity+xml;version=2.0"},{"base":"application\/json","type":"application\/vnd.openstack.identity+json;version=2.0"}]}}}

Making authentication request to https://identity.api.rackspacecloud.com/v2.0/tokens Request returned failure status: 401 Unauthorized (HTTP 401)

clean_up ListServer: Unauthorized (HTTP 401)

major commented 8 years ago

There are some bugs somewhere in novaclient and the rackspace-novaclient packages. There's not much I can do within supernova to get around that. I'm looking for a workaround in the clients now.

kzap commented 8 years ago

Ok thanks guess its not just me then :) On Apr 13, 2016 9:45 PM, "Major Hayden" notifications@github.com wrote:

There are some bugs somewhere in novaclient and the rackspace-novaclient packages. There's not much I can do within supernova to get around that. I'm looking for a workaround in the clients now.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/major/supernova/issues/110#issuecomment-209447059

kzap commented 8 years ago

i was able to get it working again by installing python-novaclient 2.30.2 , any version >= 3.0 causes 401's

first i uninstalled python-novaclient, then installed it at version 2.30.2

pip uninstall python-novaclient
pip install -I python-novaclient==2.30.2

i could not install rackspace-novaclient normally since it kept installing the latest python-novaclient is it even needed if im using supernova? i could install rackspace-novaclient by ignoring the dependencies

pip install --no-dependencies rackspace-novaclient

now supernova works again with rackspace

funny thing is the openstackclient still gets 401's, im wondering what is special about the rackspace authentication that makes it different from regular openstack?

also 2.35 has issues also, so i used 2.30.2 to work both with rackspace and other openstacks

also does supernova use rackspace-novaclient if installed and then python-novaclient next?

0x91 commented 6 years ago

This is being addressed in https://github.com/rackerlabs/rackspace-novaclient/issues/22

hkmaly commented 5 years ago

Note that there is another unrelated reason why latest nova may not work with rackspace ... or rather, will not work until they handle rackerlabs/rackspace-novaclient#23 ...