Running 'oc whoami' results in Error from server (ServiceUnavailable) after OCP 4.x bare metal install

Solution Unverified - Updated -

Issue

  • During a new installation of a 4.x cluster on bare metal, I try to run 'oc whoami' and receive the following error:
# oc whoami
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get users.user.openshift.io ~)

But should be expecting

# oc whoami
system:admin

Environment

OpenShift Container Platform 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content