Hi,

I was trying to run Keystone/Nova commands with v3 version, but they are 
failing. I am running these commands with V3 Token and also I had registered 
the v3 endpoints for both keystone and nova as well.

For example, a keystone command with v3 version
$> keystone --debug --os-identity-api-version 3 tenant-list

RESP BODY: {"error": {"message": "Expecting to find identity in auth. The 
server could not comply with the request since it is either malformed or 
otherwise incorrect. The client is assumed to be in error.", "code": 400, 
"title": "Bad Request"}}

DEBUG:keystoneclient.session:Request returned failure status: 400
Authorization Failed: Expecting to find identity in auth. The server could not 
comply with the request since it is either malformed or otherwise incorrect. 
The client is assumed to be in error. (HTTP 400)


Nova, with v3 example
$> nova --debug --os-compute-api-version 3 quota-show --tenant 
2b0ba4585a4741bb9e7d9f7bc6849eb2

RESP BODY: {"error": {"message": "The resource could not be found.", "code": 
404, "title": "Not Found"}}

DEBUG (shell:777) The resource could not be found. (HTTP 404)
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 774, in main
    OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
  File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 685, in main
    self.cs.authenticate()
  File "/usr/lib/python2.6/site-packages/novaclient/v3/client.py", line 134, in 
authenticate
    self.client.authenticate()
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 372, in 
authenticate
    auth_url = self._v1_auth(auth_url)
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 408, in 
_v1_auth
    resp, body = self._time_request(url, 'GET', headers=headers)
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 213, in 
_time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 207, in 
request
    raise exceptions.from_response(resp, body, url, method)
NotFound: The resource could not be found. (HTTP 404)
ERROR: The resource could not be found. (HTTP 404)

Should i have to enable V3 for keystone in any configuration file (apart from 
registering the endpoints)?  Please tell me how can i make these v3 commands 
work?

Regards,
Vinod Kumar Boppanna
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to