Bug 1855088
Summary: | [olm] can't install a CSV with duplicate roles on ocp 4.4.11 | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Matt Dorn <mdorn> |
Component: | OLM | Assignee: | Evan Cordell <ecordell> |
OLM sub component: | OLM | QA Contact: | kuiwang |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | urgent | ||
Priority: | urgent | CC: | ecordell, fshaikh, jiazha, jomckenz, krizza, kwall, mhepburn, michele.sandro.emma, mleonard, nhale, omatskiv, xtian |
Version: | 4.4 | ||
Target Milestone: | --- | ||
Target Release: | 4.6.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: | 2020-10-27 16:13:10 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: | 1858482 |
Description
Matt Dorn
2020-07-08 23:01:13 UTC
This seems to be also reported on GitHub: https://github.com/operator-framework/operator-lifecycle-manager/issues/1625 My team bumped into this issue as well. In the InstallPlan we noticed that two ClusterRoleBindings, each for a different ServiceAccount, share the same name. We found changes related to the CRB/RB names in `pkg/controller/registry/resolver/rbac.go` where in a recent commit[1] there is a change to how name is set: ... - Name: generateName(fmt.Sprintf("%s-%s", role.GetName(), permission.ServiceAccountName)), + Name: generateName(role.GetName(), role), ... [1] https://github.com/operator-framework/operator-lifecycle-manager/commit/a7659db1a4a2ed44c51fa075a4f03e8611e008a3#diff-64691a309491514cf415b817a09535c5 *** Bug 1856413 has been marked as a duplicate of this bug. *** Is there an expected timescale for the fixing of this defect? Knowing this will help us (AMQ Online) plan whether we workaround, or await the 4.4.x/4.5.x erratas. (In reply to Keith Wall from comment #5) > Is there an expected timescale for the fixing of this defect? Knowing this > will help us (AMQ Online) plan whether we workaround, or await the > 4.4.x/4.5.x erratas. I created a PR with a fix, it has been reviewed and approved. There is one automated test on the PR that needs to pass though. I am not very familiar with the release process, but I am sure that OLM team will help me with next steps. AFAIK there will be QE verification and cherry pick to 4.4.z stream. I am not sure if this has a chance to get into next z-stream release, because code freeze is today. verify it on 4.6 cluster. LGTM -- kuiwang@Kuis-MacBook-Pro 1855088 % oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.6.0-0.nightly-2020-07-19-093912 True False 3m48s Cluster version is 4.6.0-0.nightly-2020-07-19-093912 kuiwang@Kuis-MacBook-Pro 1855088 % oc get pod -n openshift-operator-lifecycle-manager NAME READY STATUS RESTARTS AGE catalog-operator-f966c476c-lnldf 1/1 Running 0 38m olm-operator-b56cdfc54-qvz6z 1/1 Running 0 38m packageserver-99bc676-ftwhb 1/1 Running 0 20m packageserver-99bc676-jghn7 1/1 Running 0 20m kuiwang@Kuis-MacBook-Pro 1855088 % oc exec olm-operator-b56cdfc54-qvz6z -n openshift-operator-lifecycle-manager -- olm --version OLM version: 0.16.0 git commit: 171bd7e75f85f08092be14e892c57851a94cb9eb kuiwang@Kuis-MacBook-Pro 1855088 % oc status In project default on server https://api.kuiwang20200720t154113.qe.devcluster.openshift.com:6443 svc/openshift - kubernetes.default.svc.cluster.local svc/kubernetes - 172.30.0.1:443 -> 6443 View details with 'oc describe <resource>/<name>' or list everything with 'oc get all'. kuiwang@Kuis-MacBook-Pro 1855088 % cat og.yaml kind: OperatorGroup apiVersion: operators.coreos.com/v1 metadata: name: og-single namespace: default spec: targetNamespaces: - default kuiwang@Kuis-MacBook-Pro 1855088 % oc apply -f og.yaml operatorgroup.operators.coreos.com/og-single created kuiwang@Kuis-MacBook-Pro 1855088 % cat sub.yaml apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: argocd namespace: default spec: channel: alpha installPlanApproval: Automatic name: argocd-operator source: community-operators sourceNamespace: openshift-marketplace startingCSV: argocd-operator.v0.0.11 kuiwang@Kuis-MacBook-Pro 1855088 % oc apply -f sub.yaml subscription.operators.coreos.com/argocd created kuiwang@Kuis-MacBook-Pro 1855088 % oc get csv NAME DISPLAY VERSION REPLACES PHASE argocd-operator.v0.0.11 Argo CD 0.0.11 Succeeded kuiwang@Kuis-MacBook-Pro 1855088 % oc get csv argocd-operator.v0.0.11 -o yaml|grep -B 15 "serviceAccountName: argocd-redis-ha-haproxy" - rules: - apiGroups: - "" resources: - endpoints verbs: - get serviceAccountName: argocd-redis-ha - rules: - apiGroups: - "" resources: - endpoints verbs: - get serviceAccountName: argocd-redis-ha-haproxy -- *** Bug 1861077 has been marked as a duplicate of this bug. *** Hi team, Any updates on this bug? Any tentative dates for this fix in OCP 4.4.x? Thanks Hi team, Any updates on the progress of this bug? It's been a while. Thanks. 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 GA Images), 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-2020:4196 |