volumes python api calls route incorrectly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Fix Released
|
High
|
melanie witt |
Bug Description
The following code calling volumes.list(), for example, fails with a 404 error:
>>> from novaclient import client
>>> c = client.Client(2, "admin", 'a', 'admin', auth_url='http://
>>> c.servers.list()
[<Server: hi>]
>>> c.volumes.list()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/
return self._list(
File "/usr/local/
_resp, body = self.api.
File "/usr/local/
return self._cs_
File "/usr/local/
resp, body = self._time_
File "/usr/local/
resp, body = self.request(url, method, **kwargs)
File "/usr/local/
raise exceptions.
novaclient.
because the code in v2/volumes.py is erroneously calling /volumes instead of /os-volumes to call the nova volumes proxy api.
The cli works (e.g. 'nova volume-list') because the cli has logic in it to call cinder directly instead of calling the nova volumes proxy api.
Changed in python-novaclient: | |
milestone: | none → 2.23.0 |
status: | Fix Committed → Fix Released |
I'm going to try to fix this by moving logic the cli does to call directly to cinder, to the volumes python api.