Bug 1957879

Summary: cloud-controller-manage ClusterOperator manifest does not declare relatedObjects
Product: OpenShift Container Platform Reporter: W. Trevor King <wking>
Component: Cloud ComputeAssignee: Danil Grigorev <dgrigore>
Cloud Compute sub component: Other Providers QA Contact: sunzhaohua <zhsun>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium    
Version: 4.8   
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 23:07:08 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:

Description W. Trevor King 2021-05-06 17:16:46 UTC
The CVO will pre-create the ClusterOperators to support must-gather, where the concern was:

1. CVO creates a namespace for an operator
2. CVO creates ... for the operator
3. CVO creates the operator Deployment
4. Operator deployment never comes up, for whatever reason
5. Customer must-gathers
5. Must gather uses ClusterOperators for discovering important stuff, and because the ClusterOperator doesn't exist yet, we get no data about why the deployment didn't come up.

With ClusterOperator pre-creation, that becomes:

1. CVO pre-creates ClusterOperator for an operator
2. CVO creates the namespace for an operator
3. CVO creates ... for the operator
4. CVO creates the operator Deployment
5. Operator deployment never comes up, for whatever reason
6. Customer must-gathers
7. Must gather uses ClusterOperators for discovering important stuff, and finds the one the CVO had pre-created with hard-coded relatedObjects, gathers stuff from the referenced operator namespace, and allows us to trouble-shoot the issue

To benefit from that, ClusterOperator manifests should hard-code enough relatedObjects to get a useful gather, but today the cloud-controller-manage ClusterOperator manifest does not set this property.

Comment 2 sunzhaohua 2021-05-11 03:06:49 UTC
verified
clusterversion: 4.8.0-0.ci-2021-05-10-194348

co cloud-controller-manager can be created, we can see cloud-controller-manager related content in must-gather.
$ oc get co
NAME                                       VERSION                        AVAILABLE   PROGRESSING   DEGRADED   SINCE
authentication                             4.8.0-0.ci-2021-05-10-194348   True        False         False      67m
baremetal                                  4.8.0-0.ci-2021-05-10-194348   True        False         False      86m
cloud-controller-manager                   4.8.0-0.ci-2021-05-10-194348   True        False         False      87m

Comment 5 errata-xmlrpc 2021-07-27 23:07:08 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.

https://access.redhat.com/errata/RHSA-2021:2438