Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-13054

Normal users have no way to get the OpenShift version

XMLWordPrintable

    • Moderate
    • Unspecified
    • If docs needed, set a value

      Cluster administrators can get the OpenShift version by looking at the ClusterVersion resource. Normal users have no way to get the OpenShift version, however (that I could find), only the k8s version. This makes it difficult to report bugs, know what features are available, or know what version of the documentation to reference.

      Running `oc version` doesn't show the OpenShift version to a normal user. I see this error when increasing the log level:

      I0624 11:58:12.876647 34052 request.go:968] Response Body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"clusteroperators.config.openshift.io \"openshift-apiserver\" is forbidden: User \"test\" cannot get resource \"clusteroperators\" in API group \"config.openshift.io\" at the cluster scope","reason":"Forbidden","details":

      {"name":"openshift-apiserver","group":"config.openshift.io","kind":"clusteroperators"}

      ,"code":403}
      I0624 11:58:12.876971 34052 version.go:137] OpenShift Version not found (must be logged in to cluster as admin): clusteroperators.config.openshift.io "openshift-apiserver" is forbidden: User "test" cannot get resource "clusteroperators" in API group "config.openshift.io" at the cluster scope

            aguclu@redhat.com Arda Guclu
            delgurth Wessel van Norel (Inactive)
            ying zhou ying zhou
            Red Hat Employee
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: