Description of problem: The open shift 4.1 CLI can't get SecurityContextConstraints from 3.11 openshift. # oc get SecurityContextConstraints restricted -o name error: attempt to print an ungroupified object: /v1, Kind=SecurityContextConstraints oc version Client Version: version.Info{Major:"4", Minor:"1+", GitVersion:"v4.1.18-201909201915+53a7fbd-dirty", GitCommit:"53a7fbd", GitTreeState:"dirty", BuildDate:"2019-09-21T03:15:55Z", GoVersion:"go1.11.13", Compiler:"gc", Platform:"darwin/amd64"} Server Version: version.Info{Major:"1", Minor:"11+", GitVersion:"v1.11.0+d4cacc0", GitCommit:"d4cacc0", GitTreeState:"clean", BuildDate:"2019-09-12T23:41:09Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"} Actual results: Error is encountered. Expected results: # oc get SecurityContextConstraints restricted -o name securitycontextconstraints.security.openshift.io/restricted Additional info:
The PR merged, moving to MODIFIED.
Confirmed with 4.3 oc , the issue has fixed: [zhouying@dhcp-140-138 Glai]$ oc get SecurityContextConstraints restricted -o name Error from server (Forbidden): securitycontextconstraints "restricted" is forbidden: User "zhouy" cannot get securitycontextconstraints at the cluster scope: RBAC: [clusterrole.rbac.authorization.k8s.io "system:admin" not found, clusterrole.rbac.authorization.k8s.io "clusteradmin" not found] [zhouying@dhcp-140-138 Glai]$ oc get SecurityContextConstraints restricted -o name securitycontextconstraints.security.openshift.io/restricted [zhouying@dhcp-140-138 Glai]$ oc version Client Version: v4.3.0 Kubernetes Version: v1.11.0+d4cacc0
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:0062
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days