novaclient support for offset
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| python-novaclient |
Low
|
Anita Kuno |
Bug Description
The novaclient does not appear to support (or I don't know how to use) the offset parameter when doing listings. This seems to effect most/all collections. (e.g. instances, volumes, and most notably volume-snapshots, of which there can be "lots-ish".)
Either way, when your result set exceeds the default api limit (1000?) you get some surprising behavior. If you ask for "nova volume-
$nova volume-
ERROR: No snapshot with a name or ID of '<display_name>' exists.
Where as a "nova volume-
Unfortunately, I can't figure out how to get the uuid of the volume without dropping down to curl and doing offset queries.
Seems like the client could automatically make extra request(s) if the result set is exactly the same length as a negotiated/default "limit" and may have been truncated? Or at least support offset as a command like option?
Brian Waldon (bcwaldon) wrote : | #2 |
The current glance client (in openstack/glance, not openstack/
Changed in nova: | |
status: | New → Triaged |
importance: | Undecided → Low |
affects: | nova → python-novaclient |
Changed in python-novaclient: | |
assignee: | nobody → Anita Kuno (akuno) |
Anita Kuno (anteaya) wrote : | #3 |
Quoting bcwaldon "The current glance client (in openstack/glance, not openstack/
Since both glanceclient and keystone contain pagination code, I would like to put it in an olso library: https:/
Note pagination in glanceclient currently has a bug: https:/
Anita Kuno (anteaya) wrote : | #4 |
The glanceclient bug I linked to above has turned out upon further investigation to not be a bug, it was a mistake of understanding on my part.
I will address nova volume-
Changed in python-novaclient: | |
status: | Triaged → In Progress |
Reviewed: https:/
Committed: http://
Submitter: Jenkins
Branch: master
commit 8811ced00738059
Author: Anita Kuno <email address hidden>
Date: Sun Feb 17 01:53:40 2013 +0000
Added limit to image-list in a preparatory step toward addressing bug 1001345.
Currently novaclient doesn't use the limit or marker params.
As a step to addressing bug 1001345 which requires pagination,
this patch introduces the use of limit as an option
passed to the image-list function.
Change-Id: Ia32f9e923b4eb9
Changed in python-novaclient: | |
status: | In Progress → Fix Committed |
Changed in python-novaclient: | |
status: | Fix Committed → Fix Released |
Yes, this is where you file bugs on python-novaclient.