Bug 1866577
Summary: | the certain copied csv is listed in Operator's component | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | kuiwang |
Component: | OLM | Assignee: | Evan Cordell <ecordell> |
OLM sub component: | OLM | QA Contact: | kuiwang |
Status: | CLOSED DUPLICATE | Docs Contact: | |
Severity: | low | ||
Priority: | medium | CC: | ankithom, bandrade, bluddy, dageoffr, htariq, jiazha, krizza, nhale, scolange, tbuskey, tflannag |
Version: | 4.6 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
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-05-20 17:43:28 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
kuiwang
2020-08-06 00:57:29 UTC
After cluster upgrade one of the copied CSVs in another namespace also ends up with the Operator selector label `operators.coreos.com/...` which is why we're seeing the Operator resource display a copied CSV in `status.components`. I'm still trying to confirm if this issue is deterministic on upgrading to 4.6 and 4.7 clusters. 1. A 4.5.17 to 4.6.3 upgrade shows no issue: ``` apiVersion: operators.coreos.com/v1 kind: Operator metadata: creationTimestamp: "2020-11-07T02:16:57Z" generation: 1 managedFields: ... operation: Update time: "2020-11-07T02:42:05Z" name: aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat resourceVersion: "193220" selfLink: /apis/operators.coreos.com/v1/operators/aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat uid: 64260abe-9169-4a21-b44f-19f2301330b2 spec: {} status: components: labelSelector: matchExpressions: - key: operators.coreos.com/aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat operator: Exists refs: ... - apiVersion: operators.coreos.com/v1alpha1 conditions: - lastTransitionTime: "2020-11-07T01:48:47Z" lastUpdateTime: "2020-11-07T01:48:47Z" status: "True" type: Installed kind: InstallPlan name: install-4prb6 namespace: openshift-aws-ebs-csi-driver-operator - apiVersion: operators.coreos.com/v1alpha1 conditions: - lastTransitionTime: "2020-11-07T02:16:55Z" lastUpdateTime: "2020-11-07T02:16:55Z" message: install strategy completed with no errors reason: InstallSucceeded status: "True" type: Succeeded kind: ClusterServiceVersion name: aws-ebs-csi-driver-operator.v4.5.0 namespace: openshift-aws-ebs-csi-driver-operator ``` 2. A 4.5.17 upgrade to a 4.7.0-0.nightly-2020-10-27-051128 cluster did however show the issue: The Operator status showing the copied CSV from the namespace `openshift-oauth-apiserver`. ``` apiVersion: operators.coreos.com/v1 kind: Operator metadata: creationTimestamp: "2020-11-07T22:44:18Z" generation: 1 managedFields: ... manager: olm operation: Update time: "2020-11-08T04:35:24Z" name: aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat resourceVersion: "246246" selfLink: /apis/operators.coreos.com/v1/operators/aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat uid: 00566355-2d70-4a15-9e33-c6991a837776 spec: {} status: components: labelSelector: matchExpressions: - key: operators.coreos.com/aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat operator: Exists refs: ... - apiVersion: operators.coreos.com/v1alpha1 conditions: - lastTransitionTime: "2020-11-07T23:15:38Z" lastUpdateTime: "2020-11-07T23:15:38Z" message: install strategy completed with no errors reason: InstallSucceeded status: "True" type: Succeeded kind: ClusterServiceVersion name: aws-ebs-csi-driver-operator.v4.5.0 namespace: openshift-aws-ebs-csi-driver-operator - apiVersion: operators.coreos.com/v1alpha1 conditions: - lastTransitionTime: "2020-11-07T23:15:38Z" lastUpdateTime: "2020-11-08T04:35:24Z" message: The operator is running in openshift-aws-ebs-csi-driver-operator but is managing this namespace reason: Copied status: "True" type: Succeeded kind: ClusterServiceVersion name: aws-ebs-csi-driver-operator.v4.5.0 namespace: openshift-oauth-apiserver ``` Same for other operators e.g CertManager: ``` apiVersion: operators.coreos.com/v1 kind: Operator metadata: creationTimestamp: "2020-11-07T22:44:18Z" generation: 1 ... manager: olm operation: Update time: "2020-11-08T04:38:07Z" name: cert-manager-operator.openshift-operators resourceVersion: "247156" selfLink: /apis/operators.coreos.com/v1/operators/cert-manager-operator.openshift-operators uid: 0adbf03c-d49d-412d-8134-9e3f4c967c02 spec: {} status: components: labelSelector: matchExpressions: - key: operators.coreos.com/cert-manager-operator.openshift-operators operator: Exists refs: ... - apiVersion: operators.coreos.com/v1alpha1 conditions: - lastTransitionTime: "2020-11-07T23:15:37Z" lastUpdateTime: "2020-11-08T04:38:07Z" message: The operator is running in openshift-operators but is managing this namespace reason: Copied status: "True" type: Succeeded kind: ClusterServiceVersion name: cert-manager-operator.v0.15.2 namespace: openshift-oauth-apiserver - apiVersion: operators.coreos.com/v1alpha1 conditions: - lastTransitionTime: "2020-11-07T23:15:37Z" lastUpdateTime: "2020-11-07T23:15:37Z" message: install strategy completed with no errors reason: InstallSucceeded status: "True" type: Succeeded kind: ClusterServiceVersion name: cert-manager-operator.v0.15.2 namespace: openshift-operators ``` 3. A 4.6.1 to 4.7.0-0.nightly-2020-10-27-051128 upgrade did not show the issue: ``` apiVersion: operators.coreos.com/v1 kind: Operator metadata: creationTimestamp: "2020-11-07T22:16:13Z" generation: 1 ... manager: olm operation: Update time: "2020-11-07T23:08:01Z" name: cert-manager-operator.openshift-operators resourceVersion: "101270" selfLink: /apis/operators.coreos.com/v1/operators/cert-manager-operator.openshift-operators uid: c9893a64-66c3-409e-96d8-0934db58e195 spec: {} status: components: labelSelector: matchExpressions: - key: operators.coreos.com/cert-manager-operator.openshift-operators operator: Exists refs: ... - apiVersion: operators.coreos.com/v1alpha1 conditions: - lastTransitionTime: "2020-11-07T22:17:01Z" lastUpdateTime: "2020-11-07T22:17:01Z" status: "True" type: Installed kind: InstallPlan name: install-vt6fc namespace: openshift-operators - apiVersion: operators.coreos.com/v1alpha1 conditions: - lastTransitionTime: "2020-11-07T23:08:01Z" lastUpdateTime: "2020-11-07T23:08:01Z" message: install strategy completed with no errors reason: InstallSucceeded status: "True" type: Succeeded kind: ClusterServiceVersion name: cert-manager-operator.v0.15.2 namespace: openshift-operators ``` It looks like this was fixed via a duplicate issue. The fix should also remove copied CSVs that have already been adopted before the fix is applied. Please re-open if I have misunderstood. *** This bug has been marked as a duplicate of bug 1947916 *** |