Bug 1041003

Summary: [RFE][nova]: Configure a default page size to limit image list call made to glance
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: openstack-novaAssignee: Russell Bryant <rbryant>
Status: CLOSED UPSTREAM QA Contact: Ami Jeain <ajeain>
Severity: unspecified Docs Contact:
Priority: low    
Version: unspecifiedCC: markmc, ndipanov, sgordon, yeylon
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/nova/+spec/default-page-size-for-image-list
Whiteboard: upstream_milestone_none upstream_status_slow-progress upstream_definition_drafting
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-04 06:25:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description RHOS Integration 2013-12-12 13:23:37 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/nova/+spec/default-page-size-for-image-list.

Description:

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.

Specification URL (additional information):

None