yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #30499
[Bug 1405069] Re: nova client list not working when pass sort parameter
patch in oslo.db get merged.
https://review.openstack.org/#/c/143632/
** No longer affects: nova
** No longer affects: python-novaclient
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1405069
Title:
nova client list not working when pass sort parameter
Status in Oslo Database library:
Fix Committed
Bug description:
nova client send error request url to nova-api
nova --debug list --all-tenants --deleted --sort name
...
DEBUG (session:162) REQ: curl -i -X GET http://cloudcontroller:8774/v2/d7beb7f28e0b4f41901215000339361d/servers/detail?all_tenants=1&deleted=True&sort_dir=desc&sort_key=name -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}6ba6e70be8c8367deec4e1696758b7dc4a1a891a"
...
ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-c2a132da-05b0-4db3-84ee-1b8aeb7d0f61)
ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-c2a132da-05b0-4db3-84ee-1b8aeb7d0f61)
the url parameter should be passed as 'sort_keys' instead of
'sort_key'
beside, nova-api/nova should handle this exception instead of raise an
internal error(500) this to customer.
To manage notifications about this bug go to:
https://bugs.launchpad.net/oslo.db/+bug/1405069/+subscriptions
References