Comment 3 for bug 1001345

Revision history for this message
Anita Kuno (anteaya) wrote :

Quoting bcwaldon "The current glance client (in openstack/glance, not openstack/python-glanceclient) does this for pagination. It essentially creates a generator over a sequence of GET /images?limit=X calls, preventing end-users from having to know about pagination at all. Additionally, the more advanced users can pass in marker/limit using --marker and --limit. It would definitely make sense for novaclient to be a bit smarter about it."

Since both glanceclient and keystone contain pagination code, I would like to put it in an olso library: https://blueprints.launchpad.net/oslo/+spec/pagination-generator

Note pagination in glanceclient currently has a bug: https://bugs.launchpad.net/python-glanceclient/+bug/1115677