yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #68385
[Bug 1722403] [NEW] api-ref: valid server status for filtering is wrong in docs
Public bug reported:
The API reference lists the valid states for filtering instances by
status:
https://developer.openstack.org/api-ref/compute/#list-servers
However, several of the ones listed are wrong, like BUILDING and
STOPPED. The actual list is generated from the map values in this code:
https://github.com/openstack/nova/blob/bedb33ef04bf5710657fc46bceb68817dcbf83eb/nova/api/openstack/common.py#L43
stack@devstack:~$ nova list --status BUILDING
ERROR (BadRequest): Invalid status value (HTTP 400) (Request-ID: req-cf8c4f8e-0854-4b61-a900-5fb43c993af9)
stack@devstack:~$ nova list --status STOPPED
ERROR (BadRequest): Invalid status value (HTTP 400) (Request-ID: req-b7c72e91-bc9c-49c4-bb7b-d7d97fa8f91c)
** Affects: nova
Importance: Medium
Assignee: Matt Riedemann (mriedem)
Status: Triaged
** Tags: api-ref
--
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/1722403
Title:
api-ref: valid server status for filtering is wrong in docs
Status in OpenStack Compute (nova):
Triaged
Bug description:
The API reference lists the valid states for filtering instances by
status:
https://developer.openstack.org/api-ref/compute/#list-servers
However, several of the ones listed are wrong, like BUILDING and
STOPPED. The actual list is generated from the map values in this
code:
https://github.com/openstack/nova/blob/bedb33ef04bf5710657fc46bceb68817dcbf83eb/nova/api/openstack/common.py#L43
stack@devstack:~$ nova list --status BUILDING
ERROR (BadRequest): Invalid status value (HTTP 400) (Request-ID: req-cf8c4f8e-0854-4b61-a900-5fb43c993af9)
stack@devstack:~$ nova list --status STOPPED
ERROR (BadRequest): Invalid status value (HTTP 400) (Request-ID: req-b7c72e91-bc9c-49c4-bb7b-d7d97fa8f91c)
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1722403/+subscriptions
Follow ups