Bug 1214230 - [RFE] Pagination support for cinder snapshot-list
Summary: [RFE] Pagination support for cinder snapshot-list
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-cinderclient
Version: 6.0 (Juno)
Hardware: All
OS: Linux
medium
unspecified
Target Milestone: ga
: 8.0 (Liberty)
Assignee: Tom Barron
QA Contact: lkuchlan
URL: https://blueprints.launchpad.net/cind...
Whiteboard: upstream_milestone_none upstream_defi...
Depends On: 1305244
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-22 09:37 UTC by Pratik Pravin Bandarkar
Modified: 2019-10-10 09:45 UTC (History)
10 users (show)

Fixed In Version: python-cinderclient-1.5.0-1.el7ost
Doc Type: Enhancement
Doc Text:
With this update, a new feature adds pagination support for the Block Storage 'snapshots-list' and 'backups-list' commands. You can now limit, marker and sort parameters to control the number of returned results, starting element and their order. Retrieving a limited number of results instead of the entire data set can be extremely useful on the large deployments with thousands of snapshots and backups.
Clone Of:
Environment:
Last Closed: 2016-04-07 21:01:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 212126 0 None None None Never
OpenStack gerrit 225582 0 None None None Never
Red Hat Knowledge Base (Solution) 1758413 0 None None None 2016-03-08 18:40:55 UTC
Red Hat Product Errata RHEA-2016:0603 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 8 Enhancement Advisory 2016-04-08 00:53:53 UTC

Description Pratik Pravin Bandarkar 2015-04-22 09:37:47 UTC
1. Proposed title of this feature request
Pagination support for cinder snapshot-list

3. What is the nature and description of the request?
If there are large number of cinder snapshots (for ex. 37k) then, returning this much data is not feasible from a performance perspective, so the osapi_max_limit configuration parameter, which defines the maximum number of entries that can be returned from an API call has been returned to the default of 1000.

In the case of Cinder volumes, returning the full set of volumes requires multiple API calls, which use pagination to retrieve the data. However pagination support for cinder snapshots does not appear to be present in the API.

Comment 4 Sergey Gotliv 2015-04-26 15:04:17 UTC
Changing to RFE. Someone upstream already proposed a blueprint [1], but the work is not started yet.

[1] https://blueprints.launchpad.net/cinder/+spec/snapshots-and-bakcup-support-pagination-query

Comment 6 Sergey Gotliv 2015-08-27 14:02:12 UTC
Server side is implemented. Still waiting for the client implementation.

Comment 7 Sergey Gotliv 2015-09-01 12:22:11 UTC
We still have to implement the cinderclient part of that feature, which probably is backportable, but meantime moving this RFE to 9.0.

Comment 8 Sergey Gotliv 2015-11-03 18:40:17 UTC
cinderclient part is addressed by:

https://review.openstack.org/225582

Comment 9 Sergey Gotliv 2015-11-24 12:36:11 UTC
cinderclient patch didn't make it for Liberty, I am working to backport it downstream in order to complete the feature in 8.0

Comment 13 lkuchlan 2016-02-21 11:31:06 UTC
Tested using:
python-cinderclient-1.5.0-1.el7ost.noarch
openstack-cinder-7.0.1-6.el7ost.noarch
python-cinder-7.0.1-6.el7ost.noarch

Tested according to following polarion test-plan:
https://polarion.engineering.redhat.com/polarion/#/project/RHELOpenStackPlatform/wiki/Cinder/RFE-1214230-Pagination%20support%20for%20cinder%20snapshot-list

There is one failure while using 'sort' argument, describe in the following bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1310401

Comment 15 errata-xmlrpc 2016-04-07 21:01:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-0603.html


Note You need to log in before you can comment on or make changes to this bug.