Broken pagination in muranoclient

Bug #1420871 reported by Andrew Pashkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-muranoclient
Fix Released
Medium
Andrew Pashkin

Bug Description

1) Install python-muranoclient from master (I use 1ac7558bb0642721c05f1f1dddf 60566a44dd7cb)
2) Import all packages from murano-apps and murano-app-incubator (at least 20 packages)
3) Run `package-list` command
4) You will get "HTTPMultipleChoices (HTTP 300) Requested version of Application Catalog API is not available." response from the client.
5) Remove some packages and let <=19 packages remain in DB.
6) Run client command again
7) It will run sucessfully.

It seems like the bug happens because of these lines:
https://github.com/stackforge/python-muranoclient/blob/master/muranoclient/v1/packages.py#L77

"next_marker" is not a full url, it is a parameter that API will use to paginate results. But it is used in client as full url and it causes the error.

Revision history for this message
Serg Melikyan (smelikyan) wrote :
no longer affects: murano
Changed in python-muranoclient:
importance: Undecided → Medium
milestone: none → 0.5.6
description: updated
Changed in python-muranoclient:
assignee: nobody → Andrew Pashkin (apashkin)
Revision history for this message
Andrew Pashkin (apashkin) wrote :
Changed in python-muranoclient:
status: New → Fix Committed
Changed in python-muranoclient:
status: Fix Committed → Fix Released
Revision history for this message
Nikolay Starodubtsev (starodubcevna) wrote :
Changed in mos:
status: New → Confirmed
Changed in mos:
importance: Undecided → Medium
assignee: nobody → MOS Murano (mos-murano)
milestone: none → 8.0
no longer affects: mos
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.