Bug 1957879 - cloud-controller-manage ClusterOperator manifest does not declare relatedObjects
Summary: cloud-controller-manage ClusterOperator manifest does not declare relatedObjects
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cloud Compute
Version: 4.8
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.8.0
Assignee: Danil Grigorev
QA Contact: sunzhaohua
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-06 17:16 UTC by W. Trevor King
Modified: 2021-07-27 23:07 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 23:07:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-cloud-controller-manager-operator pull 37 0 None open Bug 1957879: Pre-create relatedObjects in the cluster operator 2021-05-06 17:18:34 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 23:07:22 UTC

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


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