Bug 1164821

Summary: Appliance only inventories the first 25 images on OpenStack, pagination issue
Product: Red Hat CloudForms Management Engine Reporter: Dave Johnson <dajohnso>
Component: ProvidersAssignee: Greg Blomquist <gblomqui>
Status: CLOSED CURRENTRELEASE QA Contact: Dave Johnson <dajohnso>
Severity: high Docs Contact:
Priority: medium    
Version: 5.3.0CC: dajohnso, dclarizi, gblomqui, jfrey, jhardy, jprause, obarenbo, psavage, xlecauch
Target Milestone: GAKeywords: ZStream
Target Release: 5.3.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1164764 Environment:
Last Closed: 2016-02-19 22:48:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1164764    
Bug Blocks:    

Comment 2 Greg Blomquist 2014-12-11 16:04:19 UTC
Possible workaround:

Update the limit_param_default setting in the glance-registry.conf file to be higher than 25. For instance, bump this number to 1,000.

This will allow the glance API to return 1,000 images per query.

------

Note that there are three values that control the glance API limit:

1) the limit parameter passed in via the API call

We need to patch Fog (being tracked in the upstream clone of this bug) to allow CFME to pass this value to Glance via the API.  Once we have this ability, we can control how we gather images with pagination enabled in Glance.

2. the limit_param_default glance-registry.conf file setting

If no parameter is passed in the API call, the limit_param_default is used.

3. the api_limit_max glance-registry.conf file setting

The api_limit_max setting is used as an upper bound on the number of images returned via the Glance API call.  The logic for setting the image count limit looks like:

  limit = value_from_api_call || limit_param_default
  limit = min(api_limit_max, limit)