Description of problem: When getting cluster resources in a project, the error message is confusing. $ oc get pv No resources found in openshift-csi-snapshot-controller namespace. Version-Release number of selected component (if applicable): $ rpm -q openshift-clients openshift-clients-4.4.0-202001310654.git.1.e04481f.el7.x86_64 $ oc version -o yaml --client clientVersion: buildDate: "" compiler: gc gitCommit: "" gitTreeState: "" gitVersion: unknown goVersion: go1.13.4 major: "" minor: "" platform: linux/amd64 How reproducible: Always Steps to Reproduce: 1. Login in as admin. 2. Switch to any project. 3. Try to get cluster resources. E.g, oc get pv Actual results: $ oc get pv No resources found in openshift-csi-snapshot-controller namespace. Expected results: The error message should be "No resources found" as PV is a cluster resource. Additional info:
This was fixed in https://github.com/kubernetes/kubernetes/pull/89861 and will be brought with the next k8s bump, iow. 1.19. So this is 4.6 bug.
Should be fixed in https://github.com/openshift/oc/pull/409
[root@dhcp-140-138 ~]# oc get storagestates.migration.k8s.io No resources found [root@dhcp-140-138 ~]# oc project Using project "zhouy" on server "https://api.qe-groupd-0509.qe.devcluster.openshift.com:6443". [root@dhcp-140-138 ~]# oc version Client Version: 4.5.0-202005072157-f415627 Server Version: 4.5.0-0.nightly-2020-05-08-200452 Kubernetes Version: v1.18.0-rc.1
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:2409