yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #61987
[Bug 1543791] Re: Nova API doc for listing servers is missing metadata filter
Neither metadata nor system_metadata is not supported now.
For example response: {"badRequest": {"message": "Invalid filter field: system_metadata.", "code": 400}} is due system_metadata not in allowed search options.
fixed_ip replaced with ip now, it's supported but for docs ip is
preferable.
** Changed in: nova
Status: Confirmed => Invalid
--
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/1543791
Title:
Nova API doc for listing servers is missing metadata filter
Status in OpenStack Compute (nova):
Invalid
Bug description:
I am using Nova v2.1 (Liberty). The documentation for listing servers
only covers a portion of the supported filter options. I don't know
what they all should be but I've found that 'metadata' is one of them.
:-)
List Servers Doc: http://developer.openstack.org/api-ref-
compute-v2.1.html#listServers
Here is the filter method for listing servers where you can see the supported filters:
https://github.com/openstack/nova/blob/098d4ad487f8431b82d776629f15d13142d42789/nova/compute/api.py#L2027
The query below searches for servers with the metadata "foo=bar", and
is URL encoded:
curl -X "GET"
"http://api.openstacknetsdk.org:8774/v2.1/cae3d055dc5e4828adc4fdfe341168f7/servers/detail?metadata=%7B%22foo%22:%22bar%22%7D"
Without the encoding the query looks like this:
servers/detail?metadata={"foo":"bar"}
I haven't tried any other filters found in that method but they may be
ip (fixed_ip) and system_metadata.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1543791/+subscriptions