Add functionality to python-cinderclient to list > osapi_max_limit snapshots, backups (volumes already implemented)

Bug #1691229 reported by Gerhard Muntingh
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-cinderclient
Fix Released
Undecided
Gorka Eguileor

Bug Description

Following up on:

https://bugs.launchpad.net/cinder/+bug/1342192/comments/3

Cinderclient lists a maximum of osapi_max_limit snapshots, because pagination is only implemented for volumes:

$ cinder snapshot-list | wc -l
1004
$ # Expected around 1500 here

We still need to implement pagination for ('snapshots', 'volume_type', 'qos_specs', 'consistencygroup', 'transfers' and 'backups'

Revision history for this message
Gerhard Muntingh (gerhard-1) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-cinderclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/465159

Changed in python-cinderclient:
assignee: nobody → Gerhard Muntingh (gerhard-1)
status: New → In Progress
Changed in python-cinderclient:
assignee: Gerhard Muntingh (gerhard-1) → Gorka Eguileor (gorka)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-cinderclient (master)

Reviewed: https://review.openstack.org/465159
Committed: https://git.openstack.org/cgit/openstack/python-cinderclient/commit/?id=d11b1059a44501a76b4c604f30c9e17b437dce4b
Submitter: Jenkins
Branch: master

commit d11b1059a44501a76b4c604f30c9e17b437dce4b
Author: Gerhard Muntingh <email address hidden>
Date: Tue May 16 21:03:48 2017 +0200

    Add pagination for snapshots, backups

    Allow cinderclient to retrieve more than osapi_max_limit
    (default 1000) snapshots, backups, etc.

    Cinder pagination support has been added to the API quite some
    time ago. Client support was only implemented for volumes.

    This commit allows other resources to be paginated as well.

    Change-Id: I9a6f446b680dadedccd14ba49efdef7f5ef0a58a
    Closes-Bug: #1691229
    Co-Authored-By: Gorka Eguileor <email address hidden>

Changed in python-cinderclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-cinderclient 3.0.0

This issue was fixed in the openstack/python-cinderclient 3.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.