Bug 1948022

Summary: Some on-prem namespaces missing from must-gather
Product: OpenShift Container Platform Reporter: Ben Nemec <bnemec>
Component: Machine Config OperatorAssignee: Ben Nemec <bnemec>
Status: CLOSED ERRATA QA Contact: Michael Nguyen <mnguyen>
Severity: high Docs Contact:
Priority: high    
Version: 4.8CC: rioliu
Target Milestone: ---Keywords: Triaged
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Missing namespaces from machine-config-operator relatedObjects. Consequence: Logs for some on-prem services were not collected in must-gather. Fix: Added necessary namespaces to machine-config-operator relatedObjects Result: Logs for on-prem services are collected in must-gather.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 22:58:43 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:
Bug Depends On:    
Bug Blocks: 1950498    

Description Ben Nemec 2021-04-09 18:59:48 UTC
Description of problem: Currently must-gather only retrieves logs for pods running in the openshift-kni-infra namespace. For other platforms we may have pods running in the openshift-(openstack|ovirt|vsphere)-infra namespaces as well. They need to be captured in must-gather as well.

Version-Release number of selected component (if applicable): 4.8

How reproducible: Always

Steps to Reproduce:
1. Run must-gather against an openstack, ovirt, or vsphere cluster.

Actual results: No logs are captured for the on-prem networking services.

Expected results: Logs are captured.

Additional info: Currently the kni namespace is explicitly listed in must-gather, but we should just put all of these namespaces in the relatedObjects for MCO.

Comment 2 Michael Nguyen 2021-04-27 16:43:09 UTC
Verified on 4.8.0-0.nightly-2021-04-26-151924.  Must gather contains the other namespaces.

$ echo $PWD && ls | grep -e kni-infra -e openstack-infra -e ovirt-infra -e vsphere-infra
[mnguyen@boosted namespaces]$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.8.0-0.nightly-2021-04-26-151924   True        False         85m     Cluster version is 4.8.0-0.nightly-2021-04-26-151924

Comment 5 errata-xmlrpc 2021-07-27 22:58:43 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 (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), and where to find the updated
files, follow the link below.

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