[Openstack] novaclient + keystone (HTTP 404, The resource could not be found.)

Jay Pipes jaypipes at gmail.com
Thu Dec 15 22:30:35 UTC 2011


On Thu, Dec 15, 2011 at 2:29 PM, Dong-In David Kang <dkang at isi.edu> wrote:
>
>  I'm trying to make novaclient work with keystone.
> It looks like authentication is working, but actual interaction between novaclient and nova does not work.
> Here is what I get (with added debugging messages I added in novaclient)
>
>  I'll appreciate any help.
>
>  David.
>
> $ nova list
> initial auth_url: http://10.0.10.1:5000/v2.0/
> POST with body = {'auth': {'tenantName': 'demo', 'passwordCredentials': {'username': 'demo', 'password': 'guest'}}}
> request: args = ('http://10.0.10.1:5000/v2.0/tokens', 'POST')
> request: kwargs = {'body': '{"auth": {"tenantName": "demo", "passwordCredentials": {"username": "demo", "password": "guest"}}}', 'headers': {'Content-Type': 'application/json', 'User-Agent': 'python-novaclient'}}
> request: resp = {'date': 'Thu, 15 Dec 2011 19:20:10 GMT', 'status': '200', 'content-length': '993', 'content-type': 'application/json; charset=UTF-8'}
> request: body = {"access": {"token": {"expires": "2011-12-16T11:30:09.098995", "id": "6ad85291-8d26-4bd5-a667-525322fd66a8", "tenant": {"id": "2", "name": "demo"}}, "serviceCatalog": [{"endpoints": [{"region": "RegionOne", "internalURL": "http://10.0.10.1:8774/v1.1/", "publicURL": "http://10.0.10.1:8774/v1.1/"}], "type": "compute", "name": "nova"}, {"endpoints": [{"region": "RegionOne", "internalURL": "http://10.0.11.1:9292/v1.1/", "publicURL": "http://10.0.11.1:9292/v1.1/"}, {"region": "RegionOne", "internalURL": "http://10.0.1.3:9292/v1.1/", "publicURL": "http://10.0.1.3:9292/v1.1/"}, {"region": "RegionOne", "internalURL": "http://10.0.11.1:9292/v1/", "publicURL": "http://10.0.11.1:9292/v1/"}], "type": "image", "name": "glance"}, {"endpoints": [{"region": "RegionOne", "internalURL": "http://10.0.10.1:5000/v2.0", "publicURL": "http://10.0.10.1:5000/v2.0"}], "type": "identity", "name": "keystone"}], "user": {"id": "2", "roles": [{"tenantId": "2", "id": "4", "name": "Member"}], "name": "demo"}}}
> resp of POST = {'date': 'Thu, 15 Dec 2011 19:20:10 GMT', 'status': '200', 'content-length': '993', 'content-type': 'application/json; charset=UTF-8'}
>
> service_catalog = <module 'novaclient.service_catalog' from '/home/dkang/venv/lib/python2.6/site-packages/novaclient/service_catalog.pyc'>
> auth_token = 6ad85291-8d26-4bd5-a667-525322fd66a8
> management_url = http://10.0.10.1:8774/v1.1/
> v2_auth is done
> request: args = (u'http://10.0.10.1:8774/v1.1//servers/detail?fresh=1323976810.06', 'GET')

Unless I'm mistaken, shouldn't the above URI include the TenantId
between /v1.1/ and /servers?

-jay




More information about the Openstack mailing list