Reviewed:  https://review.openstack.org/510696
Committed: 
https://git.openstack.org/cgit/openstack/nova/commit/?id=e315fcbec9d385c12e21168795afd7f748083fc6
Submitter: Zuul
Branch:    master

commit e315fcbec9d385c12e21168795afd7f748083fc6
Author: Matt Riedemann <mriedem...@gmail.com>
Date:   Mon Oct 9 17:05:24 2017 -0400

    api-ref: fix server status values in GET /servers docs
    
    The server status values exposed out of the API and used
    for filtering when listing instances comes from the values
    in nova.api.openstack.common._STATE_MAP. Some of the values
    listed in the docs were incorrectly using variable names from
    the code, which don't necessarily match the actual value exposed
    out of the API.
    
    The compute API server concepts guide actually had this all
    correct, so this just updates the API reference.
    
    Change-Id: I30b6f27c6e7fc9365c203b620b311785f8b4b489
    Closes-Bug: #1722403


** 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/1722403

Title:
  api-ref: valid server status for filtering is wrong in docs

Status in OpenStack Compute (nova):
  Fix Released

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to