Bug 1929335
Summary: | [release-4.6] Operator objects are re-created after all other associated resources have been deleted | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Joe Lanford <jlanford> |
Component: | OLM | Assignee: | Joe Lanford <jlanford> |
OLM sub component: | OLM | QA Contact: | kuiwang |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | medium | CC: | krizza, kuiwang, nhale, vdinh, xmorano, yhe |
Version: | 4.6.z | ||
Target Milestone: | --- | ||
Target Release: | 4.6.z | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1899588 | Environment: | |
Last Closed: | 2021-03-09 20:16:08 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1899588 | ||
Bug Blocks: |
Description
Joe Lanford
2021-02-16 16:52:45 UTC
verify it on 4.6. LGTM -- [root@preserve-olm-env 1929335]# oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.6.0-0.nightly-2021-02-26-224651 True False 2m36s Cluster version is 4.6.0-0.nightly-2021-02-26-224651 [root@preserve-olm-env 1929335]# [root@preserve-olm-env 1929335]# oc get pod -n openshift-operator-lifecycle-manager NAME READY STATUS RESTARTS AGE catalog-operator-64764f7685-jxk9j 1/1 Running 0 33m olm-operator-6784859658-8gpld 1/1 Running 0 33m packageserver-6fdb9b5c67-9kts2 1/1 Running 0 25m packageserver-6fdb9b5c67-x88zj 1/1 Running 0 25m [root@preserve-olm-env 1929335]# oc exec catalog-operator-64764f7685-jxk9j -n openshift-operator-lifecycle-manager -- olm --version OLM version: 0.16.1 git commit: 724b6a442b4979a2f2749d42f49b4dc81ce9911f [root@preserve-olm-env 1929335]# [root@preserve-olm-env 1929335]# cat og-single.yaml kind: OperatorGroup apiVersion: operators.coreos.com/v1 metadata: name: og-single1 namespace: default spec: targetNamespaces: - default [root@preserve-olm-env 1929335]# oc apply -f og-single.yaml operatorgroup.operators.coreos.com/og-single1 created [root@preserve-olm-env 1929335]# cat teiidcatsrc.yaml apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: name: teiid namespace: default spec: displayName: "teiid Operators" image: quay.io/kuiwang/teiid-index:1898500 publisher: QE sourceType: grpc [root@preserve-olm-env 1929335]# oc apply -f teiidcatsrc.yaml catalogsource.operators.coreos.com/teiid created [root@preserve-olm-env 1929335]# cat teiidsub.yaml apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: teiid namespace: default spec: source: teiid sourceNamespace: default channel: alpha installPlanApproval: Automatic name: teiid [root@preserve-olm-env 1929335]# oc apply -f teiidsub.yaml subscription.operators.coreos.com/teiid created [root@preserve-olm-env 1929335]# [root@preserve-olm-env 1929335]# oc get sub NAME PACKAGE SOURCE CHANNEL teiid teiid teiid alpha [root@preserve-olm-env 1929335]# oc get ip NAME CSV APPROVAL APPROVED install-7ll7q teiid.v0.3.0 Automatic true [root@preserve-olm-env 1929335]# oc get csv NAME DISPLAY VERSION REPLACES PHASE teiid.v0.3.0 Teiid 0.3.0 Succeeded [root@preserve-olm-env 1929335]# oc get operators NAME AGE teiid.default 57s [root@preserve-olm-env 1929335]# oc delete sub teiid subscription.operators.coreos.com "teiid" deleted [root@preserve-olm-env 1929335]# oc delete csv teiid.v0.3.0 clusterserviceversion.operators.coreos.com "teiid.v0.3.0" deleted [root@preserve-olm-env 1929335]# oc get operator teiid.default -o yaml apiVersion: operators.coreos.com/v1 kind: Operator metadata: ... name: teiid.default resourceVersion: "28673" selfLink: /apis/operators.coreos.com/v1/operators/teiid.default uid: a948fa2c-2841-42d0-8ead-56bf9860b332 spec: {} status: components: labelSelector: matchExpressions: - key: operators.coreos.com/teiid.default operator: Exists refs: - apiVersion: apiextensions.k8s.io/v1 conditions: - lastTransitionTime: "2021-03-01T02:38:10Z" message: no conflicts found reason: NoConflicts status: "True" type: NamesAccepted - lastTransitionTime: "2021-03-01T02:38:10Z" message: the initial names have been accepted reason: InitialNamesAccepted status: "True" type: Established kind: CustomResourceDefinition name: virtualdatabases.teiid.io [root@preserve-olm-env 1929335]# [root@preserve-olm-env 1929335]# oc delete crd virtualdatabases.teiid.io customresourcedefinition.apiextensions.k8s.io "virtualdatabases.teiid.io" deleted [root@preserve-olm-env 1929335]# oc get operator teiid.default -o yaml apiVersion: operators.coreos.com/v1 kind: Operator metadata: ... name: teiid.default resourceVersion: "28927" selfLink: /apis/operators.coreos.com/v1/operators/teiid.default uid: a948fa2c-2841-42d0-8ead-56bf9860b332 spec: {} status: components: labelSelector: matchExpressions: - key: operators.coreos.com/teiid.default operator: Exists [root@preserve-olm-env 1929335]# oc delete operator teiid.default operator.operators.coreos.com "teiid.default" deleted [root@preserve-olm-env 1929335]# oc get operator teiid.default -o yaml Error from server (NotFound): operators.operators.coreos.com "teiid.default" not found [root@preserve-olm-env 1929335]# -- 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.20 bug fix 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/RHBA-2021:0674 |