Can not connect oc command line through the master public url

Solution Verified - Updated -

Issue

  • The users are not able to connect to openshift master from client systems via masterPublicURL
  • Users are able to connect to the same via masterURL
  • When captured the logs while login, it has shown the logs which were not clear to check the communication between client system and openshift cluster
#oc login --loglevel=10 -u ***** https://master.openshift.com:443

I0313 11:24:51.123030   15384 debugging.go:101] curl -k -v -XGET  -H "User-Agent: C:\\windows\\win32\\bin\\oc.exe/v3.0.1
.0 (windows/386) openshift/7cc6deb" https://master.openshift.com:443/osapi
I0313 11:24:51.679510   15384 debugging.go:120] GET https://master.openshift.com:443/osapi 404 Not Found in 552 millise
conds
I0313 11:24:51.680514   15384 debugging.go:126] Response Headers:
I0313 11:24:51.681516   15384 debugging.go:129]     Cache-Control: no-store
I0313 11:24:51.681516   15384 debugging.go:129]     Content-Type: application/json
I0313 11:24:51.682518   15384 debugging.go:129]     Date: Tue, 13 Mar 2018 16:24:51 GMT
I0313 11:24:51.682518   15384 debugging.go:129]     Content-Length: 138
I0313 11:24:51.683521   15384 debugging.go:129]     Set-Cookie: BIGipServerpool_masterX_8443=1363806889.64288.0000
; path=/; Httponly; Secure
I0313 11:24:51.683521   15384 request.go:777] Response Body: {
  "paths": [
    "/apis",
    "/apis/",
    "/apis/apiextensions.k8s.io",
    "/apis/apiextensions.k8s.io/v1beta1",
    "/version"
  ]
}
I0313 11:24:51.684529   15384 request.go:834] Response Body: {
  "paths": [
    "/apis",
    "/apis/",
    "/apis/apiextensions.k8s.io",
    "/apis/apiextensions.k8s.io/v1beta1",
    "/version"
  ]
}
I0313 11:24:51.685526   15384 helpers.go:170] server response object: [{
  "metadata": {},
  "status": "Failure",
  "message": "the server could not find the requested resource",
  "reason": "NotFound",
  "details": {
    "causes": [
      {
        "reason": "UnexpectedServerResponse",
        "message": "unknown"
      }
    ]
  },
  "code": 404
}]
F0313 11:24:51.699570   15384 helpers.go:72] Error from server: the server could not find the requested resource

Environment

  • Openshift Container Platform
    • 3.7

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