v2 python-glanceclient doesn't support the marker attribute
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
Fix Released
|
Undecided
|
Brad Pokorny |
Bug Description
Feel free to comment on whether this is a bug or should be handled with this existing blueprint:
https:/
The v2 glance client implementation ignores the marker attribute if it's passed to the client as part of the kwargs. The v1 client supports it, and it makes it easier to use the client to have it.
Example code to reproduce:
from glanceclient import Client
glance = Client('2', endpoint='https:/
kwargs = {}
kwargs['sort_dir'] = 'desc'
kwargs['sort_key'] = 'created_at'
images_iter = glance.
images = list(images_iter)
print getattr(images[0], 'id')
print getattr(images[1], 'id')
kwargs['marker'] = getattr(images[1], 'id')
images_iter = glance.
images = list(images_iter)
print getattr(images[0], 'id')
print getattr(images[1], 'id')
Printed Output:
311811ea-
a600f0e1-
311811ea-
a600f0e1-
Specifying the marker, this should print 4 different ID's.
A workaround for this is to specify the maker directly in the endpoint, but that makes working with the client more complicated.
Changed in python-glanceclient: | |
assignee: | nobody → Brad Pokorny (bpokorny) |
Changed in python-glanceclient: | |
status: | In Progress → Fix Committed |
Changed in python-glanceclient: | |
milestone: | none → 1.0.0 |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/191961
Review: https:/