Unable to login to the cluster due to api server EOF in RHOCP 4

Solution Verified - Updated -

Issue

  • Unable to login to the cluster by oc login. It shows below error while trying to login

    $ oc login -u username -p XXXXXXX --loglevel=10
    
    I0520 11:18:58.988231 1491418 round_trippers.go:553] HEAD https://api.<clustername>.<domain>:6443/  in 1006 milliseconds
    I0520 11:18:58.988270 1491418 round_trippers.go:570] HTTP Statistics: DNSLookup 2 ms Dial 0 ms TLSHandshake 1001 ms Duration 1                                                                                                               
    error: EOF
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4

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