Configure a default page size to limit image list call made to glance

Registered by Sumanth Nagadavalli

Right now, while making a nova image-list call, a limit can be passed to restrict the number of records to get on every request made to python-glanceclient internally.

There should be a default limit set, so that, if no limit is passed from client, the number of images should be limited to this value by default.

If there is no default value then page size is defaulted to 20 which is a hard-coded value in glance-client, and for large number of images, say 1000, nova makes huge number of calls(50 in this case) which chokes up glance. So, having this default configuration on nova end helps reduce the calls to glance in case of large number of images.

Add a configuration 'glance_default_page_size' defaulted to 100, to always limit image list call made to python-glanceclient.

Blueprint information

Status:
Started
Approver:
Russell Bryant
Priority:
Undefined
Drafter:
Sumanth Nagadavalli
Direction:
Needs approval
Assignee:
Sumanth Nagadavalli
Definition:
Drafting
Series goal:
None
Implementation:
Slow progress
Milestone target:
None
Started by
Russell Bryant

Related branches

Sprints

Whiteboard

I would rather see glanceclient have a sane default, but I see that there are backwards compatibility concerns on that side. This seems to be a reasonable knob for deployers to use. --alaski

I just don't like the argument: x acts in a way we don't like, nova uses x so add a workaround to nova for x. It should be x has something funny nova uses it, make a solution that all can use including nova. --jogo

Gerrit topic: https://review.openstack.org/#q,topic:bp/default-page-size-for-image-list,n,z

Addressed by: https://review.openstack.org/44875
    Default page size configuration for image list

    This blueprint has been deferred from the icehouse-3 milestone to Juno because it missed the "feature proposal freeze" deadline. https://wiki.openstack.org/wiki/Icehouse_Release_Schedule --russellb

Unapproved - please re-submit via nova-spec --johnthetubagy (20th March 2014)

Removed from next, as next is now reserved for near misses from the last milestone --johnthetubaguyI would rather see glanceclient have a sane default, but I see that there are backwards compatibility concerns on that side. This seems to be a reasonable knob for deployers to use. --alaski

I just don't like the argument: x acts in a way we don't like, nova uses x so add a workaround to nova for x. It should be x has something funny nova uses it, make a solution that all can use including nova. --jogo

Gerrit topic: https://review.openstack.org/#q,topic:bp/default-page-size-for-image-list,n,z

Addressed by: https://review.openstack.org/44875
    Default page size configuration for image list

    This blueprint has been deferred from the icehouse-3 milestone to Juno because it missed the "feature proposal freeze" deadline. https://wiki.openstack.org/wiki/Icehouse_Release_Schedule --russellb

Unapproved - please re-submit via nova-spec --johnthetubagy (20th March 2014)

Removed from next, as next is now reserved for near misses from the last milestone --johnthetubaguy

Marking this blueprint as definition: Drafting. If you are still working on this, please re-submit via nova-specs. If not, please mark as obsolete, and add a quick comment to describe why. --johnthetubaguy (20th April 2014)I would rather see glanceclient have a sane default, but I see that there are backwards compatibility concerns on that side. This seems to be a reasonable knob for deployers to use. --alaski

I just don't like the argument: x acts in a way we don't like, nova uses x so add a workaround to nova for x. It should be x has something funny nova uses it, make a solution that all can use including nova. --jogo

Gerrit topic: https://review.openstack.org/#q,topic:bp/default-page-size-for-image-list,n,z

Addressed by: https://review.openstack.org/44875
    Default page size configuration for image list

    This blueprint has been deferred from the icehouse-3 milestone to Juno because it missed the "feature proposal freeze" deadline. https://wiki.openstack.org/wiki/Icehouse_Release_Schedule --russellb

Unapproved - please re-submit via nova-spec --johnthetubagy (20th March 2014)

Removed from next, as next is now reserved for near misses from the last milestone --johnthetubaguyI would rather see glanceclient have a sane default, but I see that there are backwards compatibility concerns on that side. This seems to be a reasonable knob for deployers to use. --alaski

I just don't like the argument: x acts in a way we don't like, nova uses x so add a workaround to nova for x. It should be x has something funny nova uses it, make a solution that all can use including nova. --jogo

Gerrit topic: https://review.openstack.org/#q,topic:bp/default-page-size-for-image-list,n,z

Addressed by: https://review.openstack.org/44875
    Default page size configuration for image list

    This blueprint has been deferred from the icehouse-3 milestone to Juno because it missed the "feature proposal freeze" deadline. https://wiki.openstack.org/wiki/Icehouse_Release_Schedule --russellb

Unapproved - please re-submit via nova-spec --johnthetubagy (20th March 2014)

Removed from next, as next is now reserved for near misses from the last milestone --johnthetubaguy

Marking this blueprint as definition: Drafting. If you are still working on this, please re-submit via nova-specs. If not, please mark as obsolete, and add a quick comment to describe why. --johnthetubaguy (20th April 2014)

Marking this blueprint as definition: Drafting. If you are still working on this, please re-submit via nova-specs. If not, please mark as obsolete, and add a quick comment to describe why. --johnthetubaguy (20th April 2014)

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.