OpenShift 4 UPI installation fails with "x509: certificate is valid for api-int.test.example.com, not api.test.example.com"

Solution Unverified - Updated -

Issue

  • OpenShift 4 UPI installation fails with below error:
#./openshift-install --dir . wait-for bootstrap-complete --log-level=info
INFO Waiting up to 20m0s (until 5:18PM) for the Kubernetes API at https://api.test.example.com:6443...
ERROR Attempted to gather ClusterOperator status after wait failure: listing ClusterOperator objects: Get "https://api.test.example.com:6443/apis/config.openshift.io/v1/clusteroperators": x509: certificate is valid for api-int.test.example.com, not api.test.example.com
INFO Use the following commands to gather logs from the cluster
INFO openshift-install gather bootstrap --help
ERROR Bootstrap failed to complete: Get "https://api.test.example.com:6443/version": x509: certificate is valid for api-int.test.example.com, not api.test.example.com
ERROR Failed waiting for Kubernetes API. This error usually happens when there is a problem on the bootstrap host that prevents creating a temporary control plane.
FATAL Bootstrap failed to complete

Environment

  • Red Hat OpenShift Container Platform (OCP)
    • 4.x
  • HAProxy load balancer

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