Description of problem: When run `oc adm must-gather` command, see errors like: unable to gather container /healthz: forbidden: User "system:anonymous" cannot get path "/healthz/log", unable to gather container /metrics: forbidden: Use r "system:anonymous" cannot get path "/metrics" Version-Release number of selected component (if applicable): [root@dhcp-140-138 ose]# oc version --short Client Version: v4.1.4 Server Version: v1.13.4+c3b23cb Payload: 4.1.0-0.nightly-2019-07-02-101812 How reproducible: Always Steps to Reproduce: 1. Export the KUBECONFIG; 2. Run command `oc adm must-gather` command; Actual results: 2. Will see errors like : [unable to gather container /healthz: forbidden: User "system:anonymous" cannot get path "/healthz/log", unable to gather container /metrics: forbidden: User "system:anonymous" cannot get path "/metrics"], one o r more errors ocurred while gathering pod-specific data for namespace: openshift-apiserver Expected results: 2. No errors. Additional info:
Created attachment 1586980 [details] full err info
can you verify you are logged in? (I am not sure which of those endpoints are authenticated from top of my head) `oc whoami`?
[root@dhcp-140-138 ~]# oc whoami kube:admin
I think this should be working fine by now, moving to qa for verification.
Confirmed with latest oc client, can't reproduce the issue now: [root@dhcp-140-138 ~]# oc version -o yaml clientVersion: buildDate: "2020-02-21T10:22:28Z" compiler: gc gitCommit: 9353dc4631653a8de08d4b2508f1820a1fd0f15e gitTreeState: clean gitVersion: v4.4.0 goVersion: go1.13.4 major: "" minor: "" platform: linux/amd64
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