'limit' does not work when getting providers list

Bug #1717827 reported by Eric Xie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Karbor
Fix Released
Undecided
jiaopengju

Bug Description

Description
===========
When i get provider list used by 'limit=1', all providers showed in the result.

Steps to reproduce
==================
GET http://172.23.59.194/data-protect/v1/14eeabc0a60f42108d56387289949dc6/providers?limit=1

Expected result
===============
Only one of providers shows.

Actual result
=============
All providers show.

Environment
===========
devstack environment
# git log
commit e7137df11510d8da831785b1a8a2a927f0e9fda9
Merge: 79cf2a9 e576d34
Author: Jenkins <email address hidden>
Date: Tue Sep 5 14:17:41 2017 +0000

    Merge "Add freezer protection plugin for karbor"

Eric Xie (eric-xie)
Changed in karbor:
status: New → In Progress
assignee: nobody → Eric Xie (eric-xie)
Revision history for this message
jiaopengju (pj-jiao) wrote :

Hi, Eric Xie, will you fix this bug?

Revision history for this message
jiaopengju (pj-jiao) wrote :

I will fix this bug in OpenStack Bug Smash Queens in Wuhan.

Changed in karbor:
assignee: Eric Xie (eric-xie) → jiaopengju (pj-jiao)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to karbor (master)

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

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

Reviewed: https://review.openstack.org/522125
Committed: https://git.openstack.org/cgit/openstack/karbor/commit/?id=99283590e7e216050c10dd937e09bd8988ba01c8
Submitter: Zuul
Branch: master

commit 99283590e7e216050c10dd937e09bd8988ba01c8
Author: jiaopengju <email address hidden>
Date: Wed Nov 22 14:05:41 2017 +0800

    Fix 'limit' and 'marker' error in provider listing

    Currently, providers API's parameters like 'limit' and
    'marker' are not really used, but python-karborclient
    use them. This patch will add the processing of 'limit'
    and 'marker' in providers API.

    Change-Id: I6a6206948adc1c417177a1b9c0f54aa2c0b8ef7e
    Closes-Bug: #1717827

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

This issue was fixed in the openstack/karbor 0.6.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/karbor 1.0.0

This issue was fixed in the openstack/karbor 1.0.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/karbor 1.1.0

This issue was fixed in the openstack/karbor 1.1.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.