Bug 2094303
Summary: | If og is configured with sa, operator installation will be failed. | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | xzha |
Component: | OLM | Assignee: | Vu Dinh <vdinh> |
OLM sub component: | OLM | QA Contact: | xzha |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | urgent | ||
Priority: | urgent | CC: | agreene, jiazha, tflannag, tyslaton, vdinh, vsolanki, vsolasa |
Version: | 4.11 | Keywords: | Triaged |
Target Milestone: | --- | Flags: | agreene:
needinfo-
agreene: needinfo- |
Target Release: | 4.11.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: | 2022-08-10 11:16:50 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
xzha
2022-06-07 11:12:45 UTC
If the OperatorGroup doesn't refer to a SA, it works well. Like below: mac:operator-framework-olm jianzhang$ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.11.0-0.nightly-2022-06-06-025509 True False 11h Cluster version is 4.11.0-0.nightly-2022-06-06-025509 mac:operator-framework-olm jianzhang$ oc get og operator-sdk-og -o yaml apiVersion: operators.coreos.com/v1 kind: OperatorGroup metadata: annotations: olm.providedAPIs: Nginx.v1.helmdemo.example.com creationTimestamp: "2022-06-07T09:48:33Z" generation: 1 name: operator-sdk-og namespace: default resourceVersion: "528053" uid: 15f8e283-e084-475d-be62-2ea4f91317db spec: upgradeStrategy: Default status: lastUpdated: "2022-06-07T09:48:33Z" namespaces: - "" mac:operator-framework-olm jianzhang$ oc get sub NAME PACKAGE SOURCE CHANNEL nginx-v0-0-1-sub nginx nginx-catalog alpha mac:operator-framework-olm jianzhang$ oc get ip NAME CSV APPROVAL APPROVED install-7j8vg nginx.v0.0.1 Manual true mac:operator-framework-olm jianzhang$ oc get csv NAME DISPLAY VERSION REPLACES PHASE nginx.v0.0.1 nginx 0.0.1 Succeeded mac:operator-framework-olm jianzhang$ oc get sa NAME SECRETS AGE builder 1 12h default 1 12h deployer 1 12h garbage 1 4h57m nginx-controller-manager 1 100m nginx-sample 1 70m mac:operator-framework-olm jianzhang$ oc get sa nginx-controller-manager -o yaml apiVersion: v1 imagePullSecrets: - name: nginx-controller-manager-dockercfg-d8rsq kind: ServiceAccount metadata: creationTimestamp: "2022-06-07T09:49:07Z" labels: operators.coreos.com/nginx.default: "" name: nginx-controller-manager namespace: default ownerReferences: - apiVersion: operators.coreos.com/v1alpha1 blockOwnerDeletion: false controller: false kind: ClusterServiceVersion name: nginx.v0.0.1 uid: 30124412-b2fe-483e-b526-533f596883a8 resourceVersion: "528156" uid: 77df0b99-bfd9-4208-b422-3c5cf2a8e82b secrets: - name: nginx-controller-manager-dockercfg-d8rsq mac:operator-framework-olm jianzhang$ oc get secret nginx-controller-manager-dockercfg-d8rsq -o=jsonpath={.type} kubernetes.io/dockercfg verify: zhaoxia@xzha-mac ocp-41174 % oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.11.0-0.ci.test-2022-06-20-070726-ci-ln-m8gl1b2-latest True False 39m Cluster version is 4.11.0-0.ci.test-2022-06-20-070726-ci-ln-m8gl1b2-latest zhaoxia@xzha-mac ocp-41174 % oc exec catalog-operator-6c8cc9465-842c6 -- olm --version OLM version: 0.19.0 git commit: 496e4d7b3baa9e8b1e0201eed0838cd5297bb6e2 1, zhaoxia@xzha-mac ocp-41174 % oc new-project test-41174 2, create og, sa, role, rolebinding zhaoxia@xzha-mac ocp-41174 % oc apply -f ogwithsa.yaml operatorgroup.operators.coreos.com/og created zhaoxia@xzha-mac ocp-41174 % oc create sa scoped -n test-41174 serviceaccount/scoped created zhaoxia@xzha-mac ocp-41174 % oc apply -f role.yaml role.rbac.authorization.k8s.io/scoped created rolebinding.rbac.authorization.k8s.io/scoped-bindings created 3, create sub zhaoxia@xzha-mac ocp-41174 % oc apply -f sub.yaml subscription.operators.coreos.com/etcd-operator created zhaoxia@xzha-mac ocp-41174 % cat sub.yaml apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: etcd-operator namespace: test-41174 spec: channel: singlenamespace-alpha installPlanApproval: Automatic name: etcd source: community-operators sourceNamespace: openshift-marketplace 4, check csv zhaoxia@xzha-mac ocp-41174 % oc get csv -n test-41174 NAME DISPLAY VERSION REPLACES PHASE etcdoperator.v0.9.4 etcd 0.9.4 etcdoperator.v0.9.2 Succeeded LGTM, verified. verify: zhaoxia@xzha-mac ocp-41174 % oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.11.0-0.nightly-2022-06-21-040754 True False 5m38s Cluster version is 4.11.0-0.nightly-2022-06-21-040754 zhaoxia@xzha-mac ocp-41174 % oc adm release info registry.ci.openshift.org/ocp/release:4.11.0-0.nightly-2022-06-21-040754 --commits|grep operator-lifecycle-manager operator-lifecycle-manager https://github.com/openshift/operator-framework-olm a8dabfadab5ed258254c4f55309dcd9ee39679df 1, oc new-project test-41174 2, create og, sa, role, rolebinding zhaoxia@xzha-mac ocp-41174 % oc apply -f ogwithsa.yaml operatorgroup.operators.coreos.com/og created zhaoxia@xzha-mac ocp-41174 % oc create sa scoped -n test-41174 serviceaccount/scoped created zhaoxia@xzha-mac ocp-41174 % oc apply -f role.yaml role.rbac.authorization.k8s.io/scoped created rolebinding.rbac.authorization.k8s.io/scoped-bindings created 3, create sub zhaoxia@xzha-mac ocp-41174 % oc apply -f sub.yaml subscription.operators.coreos.com/etcd-operator created zhaoxia@xzha-mac ocp-41174 % cat sub.yaml apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: etcd-operator namespace: test-41174 spec: channel: singlenamespace-alpha installPlanApproval: Automatic name: etcd source: community-operators sourceNamespace: openshift-marketplace 4, check csv zhaoxia@xzha-mac ocp-41174 % oc get csv NAME DISPLAY VERSION REPLACES PHASE etcdoperator.v0.9.4 etcd 0.9.4 etcdoperator.v0.9.2 Succeeded LGTM, verified. 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 (Important: OpenShift Container Platform 4.11.0 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-2022:5069 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |