Bug 1860032

Summary: Running Red Hat images and crashlooping OpenShift pods should be gathered
Product: OpenShift Container Platform Reporter: Ivo Meixner <imeixner>
Component: Insights OperatorAssignee: Martin Kunc <mkunc>
Status: CLOSED ERRATA QA Contact: Angelina Vasileva <anikifor>
Severity: medium Docs Contact: Marc Muehlfeld <mmuehlfe>
Priority: high    
Version: 4.6CC: aos-bugs, avicenzi, imeixner, inecas, rvokal, tremes
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Feature: Collection of a set of running containre images in the archive gathered by the Insights Operator. Data about crashlooping pods will also be gathered. These two enhancements are vaguely related, so they are added together. Reason: Requested by the Product Security team. Result: Addition of the new collection mentioned above.
Story Points: ---
Clone Of:
: 1913645 (view as bug list) Environment:
Last Closed: 2020-10-27 16:16:44 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:

Description Ivo Meixner 2020-07-23 15:14:21 UTC
Description of problem:
As requested by the Product Security team, the Insights Operator should gather a set of running Red Hat images on a cluster. Furthermore, information about crashlooping pods in the openshift* namespaces should be included in reported archives.
Images from registry.redhat.io and registry.access.redhat.com should be collected, as well as images from openshift.org (which, I believe, is used for OCP images). For now, URL-based filtering should be used for the sake of simplicity.

Version-Release number of selected component (if applicable):
4.5
(Active issue as of 4.5, but the data is not collected by any version of the Insights Operator.)

How reproducible:
Any Insights Operator instance.

Steps to Reproduce:
1. Run Insights Operator against an OpenShift cluster.
2. Wait for an archive to be collected.
3. Extract the archive.

Actual results:
The data mentioned above are missing from the reported archive.

Expected results:
The data mentioned above should be gathered and reported in the archive.

Additional info:

Comment 4 Angelina Vasileva 2020-07-29 12:40:49 UTC
Fixed and verified in 4.6.0-0.nightly-2020-07-29-063409.

Images are collected in config/running_containers.json and logs for pods are collected in config/pod/<namespace>/<pod name>.json

Comment 5 Martin Kunc 2020-09-14 12:46:47 UTC
*** Bug 1796315 has been marked as a duplicate of this bug. ***

Comment 7 errata-xmlrpc 2020-10-27 16:16:44 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 (OpenShift Container Platform 4.6 GA Images), 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/RHBA-2020:4196