[Murano] Broken pagination in muranoclient

Bug #1504133 reported by Ekaterina Chernova
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Committed
High
Nikolay Starodubtsev

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.

Tags: murano
Revision history for this message
Ekaterina Chernova (efedorova) wrote :
Changed in mos:
assignee: Ekaterina Chernova (efedorova) → nobody
Changed in mos:
assignee: nobody → Nikolay Starodubtsev (starodubcevna)
Revision history for this message
Nikolay Starodubtsev (starodubcevna) wrote :
Changed in mos:
status: Confirmed → Fix Committed
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.