Bug 1914970 - Unable to install operator using a non cluster-admin user
Summary: Unable to install operator using a non cluster-admin user
Keywords:
Status: CLOSED DUPLICATE of bug 1913085
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.5
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Evan Cordell
QA Contact: Jian Zhang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-11 15:53 UTC by Arnab Ghosh
Modified: 2021-01-12 15:56 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-12 15:56:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Arnab Ghosh 2021-01-11 15:53:14 UTC
Description of problem:
AMQ-stream operator installation is failing while a non cluster-admin user trying to install the operator. Could see below error in operator status.

~~~
conditions:
    - lastTransitionTime: "2021-01-05T14:05:21Z"
      message: all available catalogsources are healthy
      reason: AllCatalogSourcesHealthy
      status: "False"
      type: CatalogSourcesUnhealthy
    - lastTransitionTime: "2021-01-05T14:24:22Z"
      reason: InstallComponentFailed
      status: "True"
      type: InstallPlanFailed
    currentCSV: amqstreams.v1.6.0

catalogSources:
  - redhat-operators
  conditions:
  - lastTransitionTime: "2021-01-05T14:05:20Z"
    lastUpdateTime: "2021-01-05T14:31:06Z"
    message: 'customresourcedefinitions.apiextensions.k8s.io is forbidden: User "system:serviceaccount:scoped:operator-installer"
      cannot create resource "customresourcedefinitions" in API group "apiextensions.k8s.io"
      at the cluster scope'
    reason: InstallComponentFailed
    status: "False"
    type: Installed
  phase: Failed
  plan:
  - resolving: amqstreams.v1.6.0
    resource:
      group: operators.coreos.com
      kind: ClusterServiceVersion
~~~

In the document[1] it has been mentioned that cluster-admin permission should not be granted to service account mentioned in operator group resource but looking at the error message it seems a clusterrole must be required to get past this error.

[1] - https://docs.openshift.com/container-platform/4.5/operators/admin/olm-creating-policy.html#olm-policy-understanding_olm-creating-policy

Version-Release number of selected component (if applicable):
OpenShift 4.5

How reproducible:
Always

Steps to Reproduce:
1. Follow document[1] to let a non cluster-admin install operators from oOperatorhub.
2. Try to install AMQ stream operator
3.

Actual results:
Operator installation is failing with a non cluster-admin user

Expected results:
Non cluster-admin user should be able to install operator by following instructions mentioned in document[1].

Additional info:
PFA

Comment 8 Ankita Thomas 2021-01-12 15:56:42 UTC
This is a known issue being tracked by https://bugzilla.redhat.com/show_bug.cgi?id=1913085.

Closing this out as a duplicate

*** This bug has been marked as a duplicate of bug 1913085 ***


Note You need to log in before you can comment on or make changes to this bug.