Error backup list info when backup quantity large than osapi_max_limit

Bug #1837967 reported by Boxiang Zhu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
New
Undecided
Unassigned

Bug Description

We will control the quantity when we get list objects. Now I have 1500 backups and I run command like 'cinder --os-volume-api-version 3.43 backup-list' and I get only 1000 backups with detail info and 500 backup with summary info.
Summary info does not include size and volume related info. It only includes 'id', 'name' and 'links'.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.opendev.org/672887

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.opendev.org/672887
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=63aebb5dea06acbd54814287da70eabc4c7f065b
Submitter: Zuul
Branch: master

commit 63aebb5dea06acbd54814287da70eabc4c7f065b
Author: zhu.boxiang <zhu.boxiang@99cloud.net>
Date: Fri Jul 26 14:41:41 2019 +0800

    Fix issue of getting detail backups list info

    osapi_max_limit: The maximum number of items that a collection
    resource returns in a single response.
    If we have more than osapi_max_limit and want to list detail
    backups info, we will generate the next link, we must set detail
    for the url.

    Change-Id: I9499fcefd236e1fa0c7c980d3e40265a9a118bb3
    Close-Bug: 1837967

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/c/openstack/cinder/+/810200

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/train)

Reviewed: https://review.opendev.org/c/openstack/cinder/+/810200
Committed: https://opendev.org/openstack/cinder/commit/dd68d7d4c38961244266f6c655be8b924634cea3
Submitter: "Zuul (22348)"
Branch: stable/train

commit dd68d7d4c38961244266f6c655be8b924634cea3
Author: zhu.boxiang <zhu.boxiang@99cloud.net>
Date: Fri Jul 26 14:41:41 2019 +0800

    Fix issue of getting detail backups list info

    osapi_max_limit: The maximum number of items that a collection
    resource returns in a single response.
    If we have more than osapi_max_limit and want to list detail
    backups info, we will generate the next link, we must set detail
    for the url.

    Change-Id: I9499fcefd236e1fa0c7c980d3e40265a9a118bb3
    Close-Bug: 1837967
    (cherry picked from commit 63aebb5dea06acbd54814287da70eabc4c7f065b)

tags: added: in-stable-train
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.