Bug 1732214
Summary: | catalog-operator panic on labelling ClusterRole/ClusterRoleBinding | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Christoph Blecker <cblecker> |
Component: | OLM | Assignee: | Evan Cordell <ecordell> |
OLM sub component: | OLM | QA Contact: | Jian Zhang <jiazha> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | medium | CC: | bandrade, ecordell, jfan, scolange |
Version: | 4.1.z | ||
Target Milestone: | --- | ||
Target Release: | 4.1.z | ||
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: | 2019-08-28 19:54:49 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1732911 |
Description
Christoph Blecker
2019-07-23 03:25:02 UTC
Hi, Christoph Thanks for your report, I create bug 1732302 for 4.1.z version. @Evan Do we need to submit another fixed PR to release-4.1 branch? Or just cherry-pick this fixed PR to it from the master branch? I cherry picked the master pr to 4.1, should merge after approval. *** Bug 1733324 has been marked as a duplicate of this bug. *** LGTM, steps as below: Cluster version is 4.1.0-0.nightly-2019-08-19-173358 OLM version: io.openshift.build.commit.url=https://github.com/operator-framework/operator-lifecycle-manager/commit/e782ca5034ae1fc706145ffd4634ebdffb58b2ba io.openshift.build.source-location=https://github.com/operator-framework/operator-lifecycle-manager 1) Create a CatalogSource which contains additional Clusterrole/ClusterRoleBinding files. mac:~ jianzhang$ cat cs-bug.yaml apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: name: etcd-bug-operator namespace: openshift-marketplace spec: sourceType: grpc image: quay.io/jiazha/etcd-operator:bug-1732302 displayName: ETCD Bug Operators publisher: jian mac:~ jianzhang$ oc create -f cs-bug.yaml catalogsource.operators.coreos.com/etcd-bug-operator created mac:~ jianzhang$ oc get catalogsource -n openshift-marketplace NAME NAME TYPE PUBLISHER AGE certified-operators Certified Operators grpc Red Hat 139m community-operators Community Operators grpc Red Hat 139m etcd-bug-operator ETCD Bug Operators grpc jian 17s redhat-operators Red Hat Operators grpc Red Hat 139m 2) Create that static ClusterRole/ClusterRoleBinding objects. mac:operator-registry jianzhang$ oc create -f manifests/etcd/etcdclusterrole.yaml clusterrole.rbac.authorization.k8s.io/etcdoperator.v0.9.4-clusterwide-test created mac:operator-registry jianzhang$ oc create -f manifests/etcd/etcdclusterrolebinding.yaml clusterrolebinding.rbac.authorization.k8s.io/etcdoperator.v0.9.4-clusterrolebinding-test created mac:operator-registry jianzhang$ oc get clusterrolebinding |grep etcd etcdoperator.v0.9.4-clusterrolebinding-test 12s mac:operator-registry jianzhang$ oc get clusterrole |grep etcd etcdoperator.v0.9.4-clusterwide-test 43s 3) Create a OperatorGroup in openshift-marketplace project. mac:~ jianzhang$ oc get og -n openshift-marketplace NAME AGE bug-og 32s 4) Subscribe this test operator. mac:~ jianzhang$ cat sub-bug.yaml apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: generateName: etcd-bug- namespace: openshift-marketplace spec: source: etcd-bug-operator sourceNamespace: openshift-marketplace name: etcd startingCSV: etcdoperator.v0.9.4-clusterwide channel: clusterwide-alpha mac:~ jianzhang$ oc get csv -n openshift-marketplace NAME DISPLAY VERSION REPLACES PHASE etcdoperator.v0.9.4-clusterwide etcd 0.9.4-clusterwide Succeeded mac:~ jianzhang$ oc get pods -n openshift-marketplace NAME READY STATUS RESTARTS AGE certified-operators-68f759cbc7-v4q4r 1/1 Running 0 154m community-operators-6c5ffdc5f-ldg5f 1/1 Running 0 154m etcd-bug-operator-gqkqf 1/1 Running 0 15m etcd-operator-bf4866946-m7vdz 3/3 Running 0 47s marketplace-operator-5fc975bc86-c9qsv 1/1 Running 0 154m redhat-operators-775568dd5-ckb5k 1/1 Running 0 154m 5) Check the OLM pods status. mac:~ jianzhang$ oc get pods -n openshift-operator-lifecycle-manager NAME READY STATUS RESTARTS AGE catalog-operator-5d48c4d4bc-xmg5t 1/1 Running 0 164m olm-operator-7f66446cfb-cb9zq 1/1 Running 0 164m olm-operators-jcqbz 1/1 Running 0 160m packageserver-5c6d7445df-45j9v 1/1 Running 0 160m packageserver-5c6d7445df-sd8hj 1/1 Running 0 160m 6) Re-run above steps 1,2,4,5 with a new registry image(quay.io/jiazha/etcd-operator:bug2-1732302) which no `clusterPermission` configured in the csv. mac:~ jianzhang$ cat cs-bug.yaml apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: name: etcd-bug-operator namespace: openshift-marketplace spec: sourceType: grpc image: quay.io/jiazha/etcd-operator:bug2-1732302 displayName: ETCD Bug Operators publisher: jian mac:~ jianzhang$ oc create -f cs-bug.yaml catalogsource.operators.coreos.com/etcd-bug-operator created mac:~ jianzhang$ oc get catalogsource -n openshift-marketplace NAME NAME TYPE PUBLISHER AGE certified-operators Certified Operators grpc Red Hat 160m community-operators Community Operators grpc Red Hat 160m etcd-bug-operator ETCD Bug Operators grpc jian 5s redhat-operators Red Hat Operators grpc Red Hat 160m mac:~ jianzhang$ oc get sub -n openshift-marketplace NAME PACKAGE SOURCE CHANNEL etcd-bug-4ls2t etcd etcd-bug-operator clusterwide-alpha mac:~ jianzhang$ oc get csv -n openshift-marketplace NAME DISPLAY VERSION REPLACES PHASE etcdoperator.v0.9.4-clusterwide etcd 0.9.4-clusterwide Succeeded mac:~ jianzhang$ oc get pods -n openshift-marketplace NAME READY STATUS RESTARTS AGE certified-operators-68f759cbc7-v4q4r 1/1 Running 0 162m community-operators-6c5ffdc5f-ldg5f 1/1 Running 0 162m etcd-bug-operator-w2jb9 1/1 Running 0 119s etcd-operator-bf4866946-vrwfj 3/3 Running 0 79s marketplace-operator-5fc975bc86-c9qsv 1/1 Running 0 162m redhat-operators-775568dd5-ckb5k 1/1 Running 0 162m mac:~ jianzhang$ oc get pods -n openshift-operator-lifecycle-manager NAME READY STATUS RESTARTS AGE catalog-operator-5d48c4d4bc-xmg5t 1/1 Running 0 169m olm-operator-7f66446cfb-cb9zq 1/1 Running 0 169m olm-operators-jcqbz 1/1 Running 0 165m packageserver-5c6d7445df-45j9v 1/1 Running 0 165m packageserver-5c6d7445df-sd8hj 1/1 Running 0 165m 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, 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-2019:2547 |