yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #79586
[Bug 1835925] Re: nova flavor-list --sort-key failed with 'disk' and 'ephemeral' keys
Reviewed: https://review.opendev.org/670440
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=ae7ebdf45eb6c9c4406d851ab8ee6f2e47d5f275
Submitter: Zuul
Branch: master
commit ae7ebdf45eb6c9c4406d851ab8ee6f2e47d5f275
Author: Takashi NATSUME <natsume.takashi@xxxxxxxxxxxxx>
Date: Fri Jul 12 12:29:49 2019 +0900
Retrun 400 if invalid query parameters are specified
The following APIs return 500 error currently
if an invalid sort key or an invalid sort direction
query parameter is specified.
- GET /flavors
- GET /flavors/detail
Make the APIs return 400 error in that case.
Change-Id: I1d6d2c1f734b28dbea5c67cf88717149dd4911d7
Closes-Bug: #1835925
** Changed in: nova
Status: In Progress => Fix Released
--
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/1835925
Title:
nova flavor-list --sort-key failed with 'disk' and 'ephemeral' keys
Status in OpenStack Compute (nova):
Fix Released
Bug description:
nova flavor-list --sort-key disk
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'oslo_db.exception.InvalidSortKey'> (HTTP 500) (Request-ID: req-b9a26186-de30-4e89-9dce-013f3558c25f)
nova flavor-list --sort-key ephemeral
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'oslo_db.exception.InvalidSortKey'> (HTTP 500) (Request-ID: req-6dcb185d-aa30-4956-a3c9-47cdabdfaec3)
packages Installed with Openstack-Ansible 17.1.3:
python-novaclient (10.1.0)
nova (17.0.7.dev28)
nova --version
10.1.0
nova-api-wsgi log:
Unexpected exception in API method: InvalidSortKey: Sort key supplied is invalid: disk
Jul 9 17:47:41 controller3-nova-api-container-bf07ee54 nova-api-wsgi: 2019-07-09 17:47:32.524 21583 ERROR nova.api.openstack.wsgi raise exception.InvalidSortKey(current_sort_key)
Jul 9 17:47:41 controller3-nova-api-container-bf07ee54 nova-api-wsgi: 2019-07-09 17:47:32.583 21583 INFO nova.api.openstack.wsgi [req-aa0a04a6-4d37-48fe-8cb7-78df01521f13 da2ee42cc00545aaa3018c6d8976b122 3d67bbf25bc24ffb9acacf775eca7f20 - default default] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1835925/+subscriptions
References