Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1696342 - [UPI] openshift-install upi finish fails searching for a file which is not found
Summary: [UPI] openshift-install upi finish fails searching for a file which is not found
Keywords:
Status: ON_QA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.1.0
Assignee: Abhinav Dahiya
QA Contact: Johnny Liu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-04 15:04 UTC by David Sanz
Modified: 2019-04-12 09:15 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description David Sanz 2019-04-04 15:04:58 UTC
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:

Comment 1 Johnny Liu 2019-04-09 08:05:36 UTC
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

Comment 2 Abhinav Dahiya 2019-04-10 22:15:29 UTC
https://github.com/openshift/installer/pull/1592

Comment 4 Gaoyun Pei 2019-04-12 07:39:25 UTC
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

Comment 5 David Sanz 2019-04-12 09:15:02 UTC
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


Note You need to log in before you can comment on or make changes to this bug.