yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #31642
[Bug 1440163] Re: List images passing visibility as a sort_key returns a 400 response
Luke, based on current implementation, if you run glance image-list
--sory-key=xxx for v2, you will see below output. So i think it's not a
bug unless you add a new implement for any filed you want to sort.
feilong@feilong-ThinkPad-X1-Carbon-2nd:~$ glance --os-image-api-version 2 image-list --sort-key=visibility
usage: glance image-list [--limit <LIMIT>] [--page-size <SIZE>]
[--visibility <VISIBILITY>]
[--member-status <MEMBER_STATUS>] [--owner <OWNER>]
[--property-filter <KEY=VALUE>]
[--checksum <CHECKSUM>] [--tag <TAG>]
[--sort-key {name,status,container_format,disk_format,size,id,created_at,updated_at}]
[--sort-dir {asc,desc}] [--sort <key>[:<direction>]]
glance image-list: error: argument --sort-key: invalid choice: u'visibility' (choose from 'name', 'status', 'container_format', 'disk_format', 'size', 'id', 'created_at', 'updated_at')
** Changed in: glance
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1440163
Title:
List images passing visibility as a sort_key returns a 400 response
Status in OpenStack Image Registry and Delivery Service (Glance):
Invalid
Bug description:
Overview:
When attempting a list images request passing 'visibility' as a sort_key returns a 400 response.
Steps to reproduce:
1) List images passing 'visibility' as a sort_key via:
curl -i '<endpoint>/v2/images?sort_key=visibility' -X GET -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: <token>"
2) Notice that a 400 response is returned
Expected:
A list of images sorted by the 'visibility' property value
Actual:
A 400 response is returned
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1440163/+subscriptions
References