HI below the step 1. [scolange@scolange .kube]$ oc adm policy add-cluster-role-to-user cluster-reader testuser-0 --as system:admin clusterrole.rbac.authorization.k8s.io/cluster-reader added: "testuser-0" 2. [scolange@scolange .kube]$ oc get operatorhubs --all-namespaces NAME AGE cluster 66m 3. [scolange@scolange .kube]$ oc get machineautoscalers --all-namespaces No resources found 4. [scolange@scolange .kube]$ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.4.0-0.nightly-2020-02-11-035407 True False 31m Cluster version is 4.4.0-0.nightly-2020-02-11-035407
Hi I check in another cluster and i have the error again : step : 1. log as testuser-1 [scolange@scolange ~]$ oc login Authentication required for https://api.rbrattai-ovn44.qe.devcluster.openshift.com:6443 (openshift) Username: testuser-1 Password: Login successful. You don't have any projects. You can try to create a new project, by running oc new-project <projectname> 2. get info not admin user [scolange@scolange ~]$ oc get operatorhubs.config.openshift.io Error from server (Forbidden): operatorhubs.config.openshift.io is forbidden: User "testuser-1" cannot list resource "operatorhubs" in API group "config.openshift.io" at the cluster scope [scolange@scolange ~]$ oc get machineautoscalers --all-namespaces Error from server (Forbidden): machineautoscalers.autoscaling.openshift.io is forbidden: User "testuser-1" cannot list resource "machineautoscalers" in API group "autoscaling.openshift.io" at the cluster scope 3. login as admin [scolange@scolange ~]$ oc login Authentication required for https://api.rbrattai-ovn44.qe.devcluster.openshift.com:6443 (openshift) Username: kubeadmin Password: Login successful. You have access to 59 projects, the list has been suppressed. You can list all projects with 'oc projects' Using project "default". 4. give the admin privilege [scolange@scolange ~]$ oc adm policy add-cluster-role-to-user cluster-reader testuser-1 --as system:admin clusterrole.rbac.authorization.k8s.io/cluster-reader added: "testuser-1" 5. login as testuser-1 again [scolange@scolange ~]$ oc login Authentication required for https://api.rbrattai-ovn44.qe.devcluster.openshift.com:6443 (openshift) Username: testuser-1 Password: Login successful. You have access to 59 projects, the list has been suppressed. You can list all projects with 'oc projects' Using project "default". 6. get info [scolange@scolange ~]$ oc get operatorhubs.config.openshift.io NAME AGE cluster 100m [scolange@scolange ~]$ oc get machineautoscalers --all-namespaces Error from server (Forbidden): machineautoscalers.autoscaling.openshift.io is forbidden: User "testuser-1" cannot list resource "machineautoscalers" in API group "autoscaling.openshift.io" at the cluster scope [scolange@scolange ~]$ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.4.0-0.nightly-2020-02-13-103342 True False 78m Cluster version is 4.4.0-0.nightly-2020-02-13-103342
We fixed the issue for the component that we own (in this case, the operatorhub api), which in your report works fine. There is another bug tracking the machineautoscalers issue: https://bugzilla.redhat.com/show_bug.cgi?id=1796412 that is correctly not fixed. Given that this just seems like a small mix up in where we're tracking things, I will go ahead and return this to Verified, and please correct me if that's not the right move to make.
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-2020:0581