<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,<br>
<br>
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.
<br>
<br>
For example, a keystone command with v3 version<br>
$> keystone --debug --os-identity-api-version 3 tenant-list<br>
<br>
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"}}<br>
<br>
DEBUG:keystoneclient.session:Request returned failure status: 400<br>
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)<br>
<br>
<br>
Nova, with v3 example<br>
$> nova --debug --os-compute-api-version 3 quota-show --tenant 2b0ba4585a4741bb9e7d9f7bc6849eb2<br>
<br>
RESP BODY: {"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}}<br>
<br>
DEBUG (shell:777) The resource could not be found. (HTTP 404)<br>
Traceback (most recent call last):<br>
  File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 774, in main<br>
    OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))<br>
  File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 685, in main<br>
    self.cs.authenticate()<br>
  File "/usr/lib/python2.6/site-packages/novaclient/v3/client.py", line 134, in authenticate<br>
    self.client.authenticate()<br>
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 372, in authenticate<br>
    auth_url = self._v1_auth(auth_url)<br>
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 408, in _v1_auth<br>
    resp, body = self._time_request(url, 'GET', headers=headers)<br>
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 213, in _time_request<br>
    resp, body = self.request(url, method, **kwargs)<br>
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 207, in request<br>
    raise exceptions.from_response(resp, body, url, method)<br>
NotFound: The resource could not be found. (HTTP 404)<br>
ERROR: The resource could not be found. (HTTP 404)<br>
<br>
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?<br>
<br>
Regards,<br>
Vinod Kumar Boppanna<br>
</div>
</body>
</html>