novaclient needs to move to using the 'volume' service type
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Won't Fix
|
Low
|
Unassigned |
Bug Description
It appears that there are still places in Nova that are being hardcoded to use the Cinder V1 api. Evidence of this can be seen by setting enable_v1_api to false in Cinder and then trying to use any of the 'nova volume' commands. Errors like the following are produced:
[root@controlle
DEBUG (session:195) REQ: curl -g -i -X GET http://
INFO (connectionpool
DEBUG (connectionpool
DEBUG (session:224) RESP: [200] date: Sun, 10 May 2015 19:02:38 GMT vary: X-Auth-Token content-length: 338 content-type: application/json
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-
DEBUG (v2:76) Making authentication request to http://
DEBUG (connectionpool
DEBUG (iso8601:171) Parsed 2015-05-
DEBUG (iso8601:127) Got u'2015' for 'year' with default None
DEBUG (iso8601:127) Got u'05' for 'monthdash' with default None
DEBUG (iso8601:127) Got 5 for 'month' with default 5
DEBUG (iso8601:127) Got u'10' for 'daydash' with default None
DEBUG (iso8601:127) Got 10 for 'day' with default 10
DEBUG (iso8601:127) Got u'20' for 'hour' with default None
DEBUG (iso8601:127) Got u'02' for 'minute' with default None
DEBUG (iso8601:127) Got u'38' for 'second' with default None
DEBUG (session:195) REQ: curl -g -i -X POST http://
INFO (connectionpool
DEBUG (connectionpool
DEBUG (session:224) RESP:
DEBUG (shell:914) The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400)
Traceback (most recent call last):
File "/usr/lib/
OpenStackCo
File "/usr/lib/
args.
File "/usr/lib/
imageRef=
File "/usr/lib/
return self._create(
File "/usr/lib/
_resp, body = self.api.
File "/usr/lib/
return self.request(url, 'POST', **kwargs)
File "/usr/lib/
raise exceptions.
BadRequest: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400)
ERROR (BadRequest): The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400)
Attempts to run tempest also fail.
Cinder has added version discovery in Liberty so Nova should go back to using the 'volume' service type as the volumev2 service type will go away and version discovery should take care of making sure the right API version is used.
tags: | added: volumes |
Changed in nova: | |
importance: | Undecided → Low |
status: | New → Confirmed |
@Jay, per "Cinder has added version discovery in Liberty so Nova should go back to using the 'volume' service type as the volumev2 service type will go away and version discovery should take care of making sure the right API version is used." - what is the cinder version discovery change mentioned? Is that in cinder - can you link to the patch?
Also, I think this is novaclient which means if the version discovery in cinder is only liberty, we can't assume novaclient isn't talking to a kilo cinder.