Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1214230

Summary: [RFE] Pagination support for cinder snapshot-list
Product: Red Hat OpenStack Reporter: Pratik Pravin Bandarkar <pbandark>
Component: python-cinderclientAssignee: Tom Barron <tbarron>
Status: CLOSED ERRATA QA Contact: lkuchlan <lkuchlan>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 6.0 (Juno)CC: dnavale, eharney, huhuang, jruzicka, jschluet, lkuchlan, scohen, sgotliv, tbarron, yeylon
Target Milestone: gaKeywords: FutureFeature
Target Release: 8.0 (Liberty)   
Hardware: All   
OS: Linux   
URL: https://blueprints.launchpad.net/cinder/+spec/snapshots-and-bakcup-support-pagination-query
Whiteboard: upstream_milestone_none upstream_definition_obsolete upstream_status_unknown
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-07 21:01:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1305244    
Bug Blocks:    

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