installer: Openshift 4.3.8 -- x509: certificate has expired or is not yet valid
I am trying to stand up an Openshift 4.3 cluster using the following machines. Bootstrap node successfully gets installed and then I start the master nodes. The master node gets installed with RHELCOS and then reboots, but at the reboot time it shows the following error on the master console. I have also attached the log bundle.
ignition[798] Get error: Get https://api-int.ocp4.contoso.com:22263/config/master: x509: certificate has expired or is not yet valid.
``
Basion= running (dns, dhcp, tftp, haproxy)
bootstrap
3 masters
4 workers
I have ensured that the DNS is configured correctly and name resolution is happening correctly. When I curl into "curl -vv api-int.ocp4.contoso.com:22623", I receive the following out put.
---------------
* Rebuilt URL to: api-int.ocp4.contoso.com:22623/
* Trying 172.16.1.10...
* TCP_NODELAY set
* Connected to api-int.ocp4.contoso.com (172.16.1.10) port 22623 (#0)
> GET / HTTP/1.1
> Host: api-int.ocp4.contoso.com:22623
> User-Agent: curl/7.61.1
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 400 Bad Request
<
Client sent an HTTP request to an HTTPS server.
* Closing connection 0
----------------
[log-bundle-20200423235736.zip](https://github.com/openshift/installer/files/4526661/log-bundle-20200423235736.zip)

# Version
```console
$ openshift-install version
./openshift-install 4.3.8
built from commit f7a2f7cf9ec3201bb8c9ebb677c05d21c72e3cc5
release image quay.io/openshift-release-dev/ocp-release@sha256:a414f6308db72f88e9d2e95018f0cc4db71c6b12b2ec0f44587488f0a16efc42
Platform:
What happened?
Following is the log from approve-csr.log
-- Logs begin at Thu 2020-04-23 23:47:55 UTC, end at Thu 2020-04-23 23:57:36 UTC. --
Apr 23 23:49:55 bootstrap.ocp4.contoso.com systemd[1]: Started Approve CSRs during bootstrap phase.
Apr 23 23:49:55 bootstrap.ocp4.contoso.com approve-csr.sh[2291]: Approving all CSR requests until bootstrapping is complete...
Apr 23 23:49:56 bootstrap.ocp4.contoso.com approve-csr.sh[2291]: The connection to the server localhost:6443 was refused - did you specify the right host or port?
Apr 23 23:50:16 bootstrap.ocp4.contoso.com approve-csr.sh[2291]: The connection to the server localhost:6443 was refused - did you specify the right host or port?
Apr 23 23:50:36 bootstrap.ocp4.contoso.com approve-csr.sh[2291]: The connection to the server localhost:6443 was refused - did you specify the right host or port?
Apr 23 23:50:56 bootstrap.ocp4.contoso.com approve-csr.sh[2291]: The connection to the server localhost:6443 was refused - did you specify the right host or port?
Apr 23 23:51:16 bootstrap.ocp4.contoso.com approve-csr.sh[2291]: The connection to the server localhost:6443 was refused - did you specify the right host or port?
Apr 23 23:51:36 bootstrap.ocp4.contoso.com approve-csr.sh[2291]: The connection to the server localhost:6443 was refused - did you specify the right host or port?
Apr 23 23:51:57 bootstrap.ocp4.contoso.com approve-csr.sh[2291]: The connection to the server localhost:6443 was refused - did you specify the right host or port?
Apr 23 23:52:17 bootstrap.ocp4.contoso.com approve-csr.sh[2291]: The connection to the server localhost:6443 was refused - did you specify the right host or port?
Apr 23 23:52:37 bootstrap.ocp4.contoso.com approve-csr.sh[2291]: The connection to the server localhost:6443 was refused - did you specify the right host or port?
Apr 23 23:52:57 bootstrap.ocp4.contoso.com approve-csr.sh[2291]: The connection to the server localhost:6443 was refused - did you specify the right host or port?
Apr 23 23:53:17 bootstrap.ocp4.contoso.com approve-csr.sh[2291]: The connection to the server localhost:6443 was refused - did you specify the right host or port?
Apr 23 23:53:37 bootstrap.ocp4.contoso.com approve-csr.sh[2291]: error: the server doesn't have a resource type "csr"
Apr 23 23:53:57 bootstrap.ocp4.contoso.com approve-csr.sh[2291]: error: the server doesn't have a resource type "csr"
Following is the log from bootkube.log
Apr 23 23:52:49 bootstrap.ocp4.contoso.com bootkube.sh[2288]: Rendering CCO manifests…
Apr 23 23:53:12 bootstrap.ocp4.contoso.com podman[4469]: 2020-04-23 23:53:12.719216007 +0000 UTC m=+22.943947290 image pull
Apr 23 23:53:12 bootstrap.ocp4.contoso.com podman[4469]: 2020-04-23 23:53:12.73412813 +0000 UTC m=+22.958859371 container create f1acf14bdf601dbd6761ac43a5df2c2330a7b8d3d530a5bc5e0f33f40c1ab15e (image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e15e7a730451443a0829b11e8f82bcc11d1ab09a954a1c77d1223470466020bd, name=pedantic_maxwell)
Apr 23 23:53:13 bootstrap.ocp4.contoso.com podman[4469]: 2020-04-23 23:53:13.017773283 +0000 UTC m=+23.242504565 container init f1acf14bdf601dbd6761ac43a5df2c2330a7b8d3d530a5bc5e0f33f40c1ab15e (image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e15e7a730451443a0829b11e8f82bcc11d1ab09a954a1c77d1223470466020bd, name=pedantic_maxwell)
Apr 23 23:53:13 bootstrap.ocp4.contoso.com podman[4469]: 2020-04-23 23:53:13.038219131 +0000 UTC m=+23.262950373 container start f1acf14bdf601dbd6761ac43a5df2c2330a7b8d3d530a5bc5e0f33f40c1ab15e (image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e15e7a730451443a0829b11e8f82bcc11d1ab09a954a1c77d1223470466020bd, name=pedantic_maxwell)
Apr 23 23:53:13 bootstrap.ocp4.contoso.com podman[4469]: 2020-04-23 23:53:13.038294459 +0000 UTC m=+23.263025692 container attach f1acf14bdf601dbd6761ac43a5df2c2330a7b8d3d530a5bc5e0f33f40c1ab15e (image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e15e7a730451443a0829b11e8f82bcc11d1ab09a954a1c77d1223470466020bd, name=pedantic_maxwell)
Apr 23 23:53:13 bootstrap.ocp4.contoso.com bootkube.sh[2288]: time=“2020-04-23T23:53:13Z” level=info msg=“Rendering files to /assets/cco-bootstrap”
Apr 23 23:53:13 bootstrap.ocp4.contoso.com podman[4469]: 2020-04-23 23:53:13.094996733 +0000 UTC m=+23.319727974 container died f1acf14bdf601dbd6761ac43a5df2c2330a7b8d3d530a5bc5e0f33f40c1ab15e (image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e15e7a730451443a0829b11e8f82bcc11d1ab09a954a1c77d1223470466020bd, name=pedantic_maxwell)
Apr 23 23:53:13 bootstrap.ocp4.contoso.com bootkube.sh[2288]: Starting etcd certificate signer…
Apr 23 23:53:27 bootstrap.ocp4.contoso.com podman[4744]: 2020-04-23 23:53:27.109887959 +0000 UTC m=+13.996250617 image pull
Apr 23 23:53:27 bootstrap.ocp4.contoso.com podman[4744]: 2020-04-23 23:53:27.124965764 +0000 UTC m=+14.011328415 container create b19a39f082b28b7d21f71e5340d729812be53d04a74b0d06dac2b95ba6db97ed (image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:9160d52b7b0ddb43679b489f04ab99ca8ee56b98a14e4d1a35564d22c3ae76cc, name=etcd-signer)
Apr 23 23:53:27 bootstrap.ocp4.contoso.com podman[4744]: 2020-04-23 23:53:27.428007824 +0000 UTC m=+14.314370476 container init b19a39f082b28b7d21f71e5340d729812be53d04a74b0d06dac2b95ba6db97ed (image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:9160d52b7b0ddb43679b489f04ab99ca8ee56b98a14e4d1a35564d22c3ae76cc, name=etcd-signer)
Apr 23 23:53:27 bootstrap.ocp4.contoso.com podman[4744]: 2020-04-23 23:53:27.439753962 +0000 UTC m=+14.326116613 container start b19a39f082b28b7d21f71e5340d729812be53d04a74b0d06dac2b95ba6db97ed (image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:9160d52b7b0ddb43679b489f04ab99ca8ee56b98a14e4d1a35564d22c3ae76cc, name=etcd-signer)
Apr 23 23:53:27 bootstrap.ocp4.contoso.com bootkube.sh[2288]: b19a39f082b28b7d21f71e5340d729812be53d04a74b0d06dac2b95ba6db97ed
Apr 23 23:53:27 bootstrap.ocp4.contoso.com bootkube.sh[2288]: Waiting for etcd cluster…
Apr 23 23:53:51 bootstrap.ocp4.contoso.com podman[4833]: 2020-04-23 23:53:51.619603418 +0000 UTC m=+24.162943662 image pull
Apr 23 23:53:51 bootstrap.ocp4.contoso.com podman[4833]: 2020-04-23 23:53:51.632825641 +0000 UTC m=+24.176165853 container create 26ec972499dbcf93dcf9f9d6c7655e06568125d8755f72d582303bb4734e889a (image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e9a7267ad2a1146abdfd69eff5a9ccb5cb1c4b06ad92404b97fa34ecebd31a05, name=etcdctl)
Apr 23 23:53:51 bootstrap.ocp4.contoso.com podman[4833]: 2020-04-23 23:53:51.900992891 +0000 UTC m=+24.444333123 container init 26ec972499dbcf93dcf9f9d6c7655e06568125d8755f72d582303bb4734e889a (image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e9a7267ad2a1146abdfd69eff5a9ccb5cb1c4b06ad92404b97fa34ecebd31a05, name=etcdctl)
Apr 23 23:53:51 bootstrap.ocp4.contoso.com podman[4833]: 2020-04-23 23:53:51.920688181 +0000 UTC m=+24.464028385 container start 26ec972499dbcf93dcf9f9d6c7655e06568125d8755f72d582303bb4734e889a (image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e9a7267ad2a1146abdfd69eff5a9ccb5cb1c4b06ad92404b97fa34ecebd31a05, name=etcdctl)
Apr 23 23:53:51 bootstrap.ocp4.contoso.com podman[4833]: 2020-04-23 23:53:51.920760801 +0000 UTC m=+24.464101003 container attach 26ec972499dbcf93dcf9f9d6c7655e06568125d8755f72d582303bb4734e889a (image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e9a7267ad2a1146abdfd69eff5a9ccb5cb1c4b06ad92404b97fa34ecebd31a05, name=etcdctl)
Apr 23 23:53:56 bootstrap.ocp4.contoso.com bootkube.sh[2288]: {“level”:“warn”,“ts”:“2020-04-23T23:53:56.938Z”,“caller”:“clientv3/retry_interceptor.go:61”,“msg”:“retrying of unary invoker failed”,“target”:“endpoint://client-1de76475-cc6c-4304-b302-c5a283a47bff/etcd-2.ocp4.contoso.com:2379”,“attempt”:0,“error”:“rpc error: code = DeadlineExceeded desc = latest connection error: connection error: desc = "transport: Error while dialing dial tcp 172.16.1.22:2379: connect: no route to host"”}
Apr 23 23:53:56 bootstrap.ocp4.contoso.com bootkube.sh[2288]: {“level”:“warn”,“ts”:“2020-04-23T23:53:56.938Z”,“caller”:“clientv3/retry_interceptor.go:61”,“msg”:“retrying of unary invoker failed”,“target”:“endpoint://client-00e5b0f2-ea29-4e53-a3c9-ce01c69b0b1d/etcd-1.ocp4.contoso.com:2379”,“attempt”:0,“error”:“rpc error: code = DeadlineExceeded desc = latest connection error: connection error: desc = "transport: Error while dialing dial tcp 172.16.1.21:2379: connect: no route to host"”}
Apr 23 23:53:56 bootstrap.ocp4.contoso.com bootkube.sh[2288]: {“level”:“warn”,“ts”:“2020-04-23T23:53:56.938Z”,“caller”:“clientv3/retry_interceptor.go:61”,“msg”:“retrying of unary invoker failed”,“target”:“endpoint://client-288d91a1-5559-48be-a4c2-8632018bffea/etcd-0.ocp4.contoso.com:2379”,“attempt”:0,“error”:“rpc error: code = DeadlineExceeded desc = latest connection error: connection error: desc = "transport: Error while dialing dial tcp 172.16.1.20:2379: connect: connection refused"”}
Apr 23 23:53:56 bootstrap.ocp4.contoso.com bootkube.sh[2288]: https://etcd-2.ocp4.contoso.com:2379 is unhealthy: failed to commit proposal: context deadline exceeded
Apr 23 23:53:56 bootstrap.ocp4.contoso.com bootkube.sh[2288]: https://etcd-1.ocp4.contoso.com:2379 is unhealthy: failed to commit proposal: context deadline exceeded
Apr 23 23:53:56 bootstrap.ocp4.contoso.com bootkube.sh[2288]: https://etcd-0.ocp4.contoso.com:2379 is unhealthy: failed to commit proposal: context deadline exceeded
Apr 23 23:53:56 bootstrap.ocp4.contoso.com bootkube.sh[2288]: Error: unhealthy cluster
Apr 23 23:53:56 bootstrap.ocp4.contoso.com podman[4833]: 2020-04-23 23:53:56.983334987 +0000 UTC m=+29.526675215 container died 26ec972499dbcf93dcf9f9d6c7655e06568125d8755f72d582303bb4734e889a (image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e9a7267ad2a1146abdfd69eff5a9ccb5cb1c4b06ad92404b97fa34ecebd31a05, name=etcdctl)
Apr 23 23:53:57 bootstrap.ocp4.contoso.com podman[4833]: 2020-04-23 23:53:57.052297691 +0000 UTC m=+29.595637933 container remove 26ec972499dbcf93dcf9f9d6c7655e06568125d8755f72d582303bb4734e889a (image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e9a7267ad2a1146abdfd69eff5a9ccb5cb1c4b06ad92404b97fa34ecebd31a05, name=etcdctl)
Apr 23 23:53:57 bootstrap.ocp4.contoso.com bootkube.sh[2288]: etcdctl failed. Retrying in 5 seconds…
Apr 23 23:54:02 bootstrap.ocp4.contoso.com podman[4967]: 2020-04-23 23:54:02.184548403 +0000 UTC m=+0.116139596 container create 94fbfb2b531c107d86c08a225e2bc71a87b297995bf8f7dc7e56ea37392e99ae (image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e9a7267ad2a1146abdfd69eff5a9ccb5cb1c4b06ad92404b97fa34ecebd31a05, name=etcdctl)
Apr 23 23:54:02 bootstrap.ocp4.contoso.com podman[4967]: 2020-04-23 23:54:02.430144404 +0000 UTC m=+0.361735603 container init 94fbfb2b531c107d86c08a225e2bc71a87b297995bf8f7dc7e56ea37392e99ae (image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e9a7267ad2a1146abdfd69eff5a9ccb5cb1c4b06ad92404b97fa34ecebd31a05, name=etcdctl)
Apr 23 23:54:02 bootstrap.ocp4.contoso.com podman[4967]: 2020-04-23 23:54:02.443327094 +0000 UTC m=+0.374918285 container start 94fbfb2b531c107d86c08a225e2bc71a87b297995bf8f7dc7e56ea37392e99ae (image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e9a7267ad2a1146abdfd69eff5a9ccb5cb1c4b06ad92404b97fa34ecebd31a05, name=etcdctl)
Apr 23 23:54:02 bootstrap.ocp4.contoso.com podman[4967]: 2020-04-23 23:54:02.44346274 +0000 UTC m=+0.375053943 container attach 94fbfb2b531c107d86c08a225e2bc71a87b297995bf8f7dc7e56ea37392e99ae (image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e9a7267ad2a1146abdfd69eff5a9ccb5cb1c4b06ad92404b97fa34ecebd31a05, name=etcdctl)
What you expected to happen?
I have been expecting that the bootstrap node bootstrap the masters and build the control plane, but it has not been successful. I have created all the machines using VMware workstation and have followed all the steps in the following two links to stand the cluster up.
https://www.techbeatly.com/2019/07/openshift-4-libvirt-upi-installation.html#.Xm3r50oTFhF https://www.openshift.com/blog/openshift-4-bare-metal-install-quickstart
Anything else we need to know?
Enter text here.
References
- enter text here.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (9 by maintainers)
@Pooriya-a can you make sure that the machine that you are running the installer from and all of your ESXi hosts are configured and running NTP?
Also make sure
.openshift_install_state.jsonis deleted before each install attempt.See: https://docs.openshift.com/container-platform/4.3/installing/installing_vsphere/installing-vsphere.html#installation-vsphere-infrastructure_installing-vsphere at the bottom of that section has the link to VMware’s documentation about NTP.