Hide Forgot
Description of problem: Final step on a UPI installation is to execute "openshift-install upi finish" and wait until it ends. It finish when find a stable version on "oc clusterversion" but tries to search for a file, and this file is not found: [root@dell-r730-069 baremetal-0404]# /root/bin/openshift-install-4.0.0-0.nightly-2019-04-04-030930 --dir /root/installation/baremetal-0404 upi finish INFO Waiting up to 30m0s for the cluster at https://api.morenod-baremetal.ogtlabs.es:6443 to initialize... INFO Waiting up to 10m0s for the openshift-console route to be created... FATAL open /root/installation/baremetal-0404/auth/kubeadmin-password: no such file or directory [root@dell-r730-069 baremetal-0404]# pwd /root/installation/baremetal-0404 [root@dell-r730-069 baremetal-0404]# ls auth bootstrap.ign master.ign metadata.json worker.ign [root@dell-r730-069 baremetal-0404]# ls -l auth/ total 16 -rw-r--r--. 1 root root 13436 abr 4 09:47 kubeconfig [root@dell-r730-069 baremetal-0404]# Version-Release number of the following components: # /root/bin/openshift-install-4.0.0-0.nightly-2019-04-04-030930 --dir /root/installation/baremetal-0404 version /root/bin/openshift-install-4.0.0-0.nightly-2019-04-04-030930 v4.0.22-201904032147-dirty built from commit b6625b4084fb01ffbe190f1c74208ea00b4b7d9b release image registry.svc.ci.openshift.org/openshift/origin-release:v4.0 How reproducible: Steps to Reproduce: 1.Install baremetal cluster following the UPI guide 2.Execute openshft-install upi finish and wait until cluster is correctly installed Actual results: Command fails trying to access a file not generated Expected results: Command ends ans shows the file. Additional info:
The same issue also reproduced in upi-on-aws install. # ./openshift-install user-provided-infrastructure finish --dir upi_2019-04-07-22-52-02/ INFO Waiting up to 30m0s for the cluster at https://api.jialiuuuu1.qe1.devcluster.openshift.com:6443 to initialize... INFO Waiting up to 10m0s for the openshift-console route to be created... FATAL open /root/ocp-4.0/20190408/upi_2019-04-07-22-52-02/auth/kubeadmin-password: no such file or directory payload version: registry.svc.ci.openshift.org/ocp/release:4.0.0-0.nightly-2019-04-05-165550
https://github.com/openshift/installer/pull/1592
The same issue in upi-on-vsphere with payload registry.svc.ci.openshift.org/ocp/release:4.0.0-0.nightly-2019-04-10-182914 # ./openshift-install wait-for cluster-ready INFO Waiting up to 30m0s for the cluster at https://api.gpei-vsp-0412.qe.devcluster.openshift.com:6443 to initialize... INFO Waiting up to 10m0s for the openshift-console route to be created... FATAL open /root/vmware_launcher/0412/vsphere/auth/kubeadmin-password: no such file or directory
Using 4.1.0-0.nightly-2019-04-12-071533 for baremetal upi File is present: # ls auth bootstrap.ign master.ign metadata.json worker.ign # ls -l auth/ total 16 -rw-r--r--. 1 root root 23 abr 12 04:38 kubeadmin-password -rw-r--r--. 1 root root 10476 abr 12 04:38 kubeconfig # cat auth/kubeadmin-password VyK************X-SMRbg
Verified on unreleased-master-811-g5a3c57cb37b0f175c2ae33e64cd9a6947bd1d567-dirty
Verified this bug with 4.1.0-0.nightly-2019-04-18-210657, and PASS. # ./openshift-install version ./openshift-install v4.1.0-201904181302-dirty built from commit b79562d600f72d0f70aa1514b01e6c07da4dcc8a release image registry.svc.ci.openshift.org/ocp/release:4.1.0-0.nightly-2019-04-18-210657 # ./openshift-install wait-for install-complete --dir ./upi_2019-04-19-03-38-01 INFO Waiting up to 30m0s for the cluster at https://api.jialiu-upi1.qe1.devcluster.openshift.com:6443 to initialize... INFO Waiting up to 10m0s for the openshift-console route to be created... INFO Install complete! INFO To access the cluster as the system:admin user when using 'oc', run 'export KUBECONFIG=/root/ocp-4.0/20190419/upi_2019-04-19-03-38-01/auth/kubeconfig' INFO Access the OpenShift web-console here: https://console-openshift-console.apps.jialiu-upi1.qe1.devcluster.openshift.com INFO Login to the console with user: kubeadmin, password: hgd37-UfgGt-LZ4Lj-w28cK # tree upi_2019-04-19-03-38-01/ upi_2019-04-19-03-38-01/ ├── auth │ ├── kubeadmin-password │ └── kubeconfig ├── bootstrap.ign ├── master.ign ├── metadata.json └── worker.ign 1 directory, 6 files
Works well for upi-on-vsphere with 4.1.0-0.nightly-2019-04-22-005054 # ./openshift-install version ./openshift-install v4.1.0-201904211700-dirty built from commit f3b726cc151f5a3d66bc7e23e81b3013f1347a7e release image registry.svc.ci.openshift.org/ocp/release@sha256:3f3628cd9b694705cb0627ce72e61932df5d9938a291fabba1ed691230f7b548 # ./openshift-install wait-for install-complete INFO Waiting up to 30m0s for the cluster at https://api.gpei-0423.qe.devcluster.openshift.com:6443 to initialize... INFO Waiting up to 10m0s for the openshift-console route to be created... INFO Install complete! INFO To access the cluster as the system:admin user when using 'oc', run 'export KUBECONFIG=/root/vmware_launcher/0423/vsphere/auth/kubeconfig' INFO Access the OpenShift web-console here: https://console-openshift-console.apps.gpei-0423.qe.devcluster.openshift.com INFO Login to the console with user: kubeadmin, password: JhMCs-BDzhV-Bhikj-Uthy3 # cat auth/kubeadmin-password JhMCs-BDzhV-Bhikj-Uthy3
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:0758