yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #27144
[Bug 1410949] Re: nova.server.list() returns bad data
Marking this as a Wishlist item. For non-admin users, there's a list of
allowed search options on the nova api side. If a user specifies one not
in the allowed list, that option gets discarded and instead all
instances in their tenant are returned.
This is a request for a change in behavior where the api somehow
notifies the user if they specify any search options that won't be
honored.
** Also affects: nova
Importance: Undecided
Status: New
** Summary changed:
- nova.server.list() returns bad data
+ list servers should notify user when invalid search options are passed
** Changed in: nova
Importance: Undecided => Wishlist
** Changed in: nova
Status: New => Confirmed
** Changed in: python-novaclient
Status: New => Invalid
** Tags added: api
--
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/1410949
Title:
list servers should notify user when invalid search options are passed
Status in OpenStack Compute (Nova):
Confirmed
Status in Python client library for Nova:
Invalid
Bug description:
Given a bank of instances:
=====================
ID | Server
8cf19a86-c523-4155-9bce-f78837be8c7d | test1.example.com
b15ef5bf-35c0-4c83-acd9-f8129fcc364b | test2.example.com
e0787cd2-5781-4007-b42f-ebee6a0bf1ec | test3.example.com
The following (simplified) code:
=========================
from novaclient.client import Client
...
nova = Client(2, session=sess)
...
# intentionally take the first item returned in list
server = nova.servers.list(detailed=True, search_opts={'id': 'FAKE-UUID'})[0]
Expected:
========
server.id = null (because no server would be returned)
Actual:
======
server.id = '8cf19a86-c523-4155-9bce-f78837be8c7d'
I am not sure if it is returning the next closest serer, the last
server built, etc. All I know is I am not getting back the server I
would have expected back.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1410949/+subscriptions
References