Bug 1164821 - Appliance only inventories the first 25 images on OpenStack, pagination issue
Summary: Appliance only inventories the first 25 images on OpenStack, pagination issue
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.3.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: GA
: 5.3.6
Assignee: Greg Blomquist
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On: 1164764
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-17 15:26 UTC by Dave Johnson
Modified: 2016-02-19 22:48 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1164764
Environment:
Last Closed: 2016-02-19 22:48:14 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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)


Note You need to log in before you can comment on or make changes to this bug.