Bug 1484549

Summary: [RFE] Add config option to skip container_images
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ProvidersAssignee: Adam Grare <agrare>
Status: CLOSED ERRATA QA Contact: Jaroslav Henner <jhenner>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.7.0CC: epacific, gblomqui, jfrey, jhardy, jhenner, obarenbo
Target Milestone: GAKeywords: FutureFeature, ZStream
Target Release: 5.7.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.7.4.0 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1484544 Environment:
Last Closed: 2017-12-18 20:29:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1484544    
Bug Blocks:    

Comment 2 Jaroslav Henner 2017-10-05 14:39:33 UTC
Version 5.7.4.0.20170913182424_63a1e18 

I configured

  :openshift:
    :get_container_images: false
    :refresh_interval: 15.minutes
    :store_unused_images: true
  :openshift_enterprise:
    :get_container_images: false
    :refresh_interval: 15.minutes
    :store_unused_images: true

In the web ui, re-added provider and I can see 12 Container Images after the refresh is completed. Restarting evmd and re-adding+refreshing the provider didn't help either -- the images are still being loaded.

Comment 3 Adam Grare 2017-10-05 16:40:50 UTC
Hi Jaroslav, get_container_images just skips collecting images from openshift.  We will still include images that are in-use by active containers based on information we get from kubernetes.  The biggest things that will be missing if you turn off get_container_images will be openshift labels and images which are unused.

Comment 4 Jaroslav Henner 2017-10-26 09:53:16 UTC
(In reply to Adam Grare from comment #3)
> Hi Jaroslav, get_container_images just skips collecting images from
> openshift.  We will still include images that are in-use by active
> containers based on information we get from kubernetes.  The biggest things
> that will be missing if you turn off get_container_images will be openshift
> labels and images which are unused.

In addition I configured the store_unused_images: false

 Version 5.7.4.0.20170913182424_63a1e18 

  :openshift:
    :get_container_images: false
    :refresh_interval: 1.minutes
    :store_unused_images: false
  :openshift_enterprise:
    :get_container_images: false
    :refresh_interval: 1.minutes
    :store_unused_images: false

List of images shrunk to only used ones. I think this is OK.

Comment 7 errata-xmlrpc 2017-12-18 20:29:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:3484