conn.image.images() gets 404 on subsequent pages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack SDK |
Confirmed
|
Undecided
|
Sidharth Surana |
Bug Description
The standard demo snippet for listing images:
print("List Images:")
for image in conn.image.
is failing when Glance has more than one page to report.
What seems to happen is in here: https:/
the first time, the `uri` variable is `/images` and the `session` (~keystoneauth1
For the second page, the `_get_next_link` function is returning new uri such as:
`/v2/images?
This results in openstacksdk trying to GET /v2/v2/
which obviously results in 404.
It could be a bug in keystoneauth1 but probably a workaround in openstacksdk is needed.
Versions:
openstacksdk=
Server: Glance Newton / API v2.4
Confirmed using 0.12.0, too, against a Pike deployment of Glance.