Bug 1698573

Summary: wait-for bootstrap-complete and install-complete should be level driven
Product: OpenShift Container Platform Reporter: Scott Dodson <sdodson>
Component: InstallerAssignee: Matthew Staebler <mstaeble>
Installer sub component: openshift-installer QA Contact: Johnny Liu <jialiu>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: high CC: mstaeble, sponnaga, wking
Version: 4.1.0   
Target Milestone: ---   
Target Release: 4.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-04 10:47:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Scott Dodson 2019-04-10 16:11:29 UTC
Because events are TTL'd they'll vanish after two hours. If an admin runs `openshift-installer wait-for bootstrap-complete` after that point it won't know whether bootstrap has completed or not and would need to check on a different long lived condition.

Comment 3 Johnny Liu 2019-04-19 07:27:01 UTC
Verified this bug with 4.0.0-0.nightly-2019-04-18-190537, and PASS.

# ./20190419_1/openshift-install version
./20190419_1/openshift-install v4.1.0-201904181302-dirty
built from commit b79562d600f72d0f70aa1514b01e6c07da4dcc8a
release image registry.svc.ci.openshift.org/ocp/release:4.0.0-0.nightly-2019-04-18-190537

# ./20190419_1/openshift-install wait-for bootstrap-complete --dir ./20190419_1/demo1
INFO Waiting up to 30m0s for the Kubernetes API at https://api.qe-jialiu.qe.devcluster.openshift.com:6443... 
INFO API v1.13.4+ff82892 up                       
INFO Waiting up to 30m0s for bootstrapping to complete... 
INFO It is now safe to remove the bootstrap resources 


Reproduced on old version:
After installation is completed, run again the command, the command would be pending there.
# ./20190412/openshift-install version
./20190412/openshift-install v4.1.0-201904101232-dirty
built from commit 741d4db20a2d673eb79cf6dbd076001c9cb65753
release image registry.svc.ci.openshift.org/ocp/release:4.0.0-0.nightly-2019-04-10-182914

# ./20190412/openshift-install wait-for bootstrap-complete --dir 20190419_1/demo1
INFO Waiting up to 30m0s for the Kubernetes API at https://api.qe-jialiu.qe.devcluster.openshift.com:6443... 
INFO API v1.13.4+ff82892 up                       
INFO Waiting up to 30m0s for the bootstrap-complete event... 
^C

Comment 5 errata-xmlrpc 2019-06-04 10:47:22 UTC
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