Bug 1121232 - RFE: make some install steps more robust
Summary: RFE: make some install steps more robust
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 2.1.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: Luke Meyer
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2014-07-18 17:20 UTC by Luke Meyer
Modified: 2014-07-24 15:15 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-07-24 15:15:13 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Luke Meyer 2014-07-18 17:20:07 UTC
Description of problem:
We have a PR to address two issues to make the install a bit more robust in failure situations.
1. If anything goes wrong with yum, the install aborts immediately. The PR is to retry 3 times in case the failure is just something temporary.
2. If the rsync ssh key download fails, perhaps due to a timing issue, then the admin probably won't notice that it didn't work until they try to move a gear. The PR is to retry for 10 minutes.

Comment 1 Luke Meyer 2014-07-18 17:20:32 UTC
Please test https://github.com/openshift/openshift-extras/pull/397

Comment 3 Yanping Zhang 2014-07-21 12:18:35 UTC
There is a mistake in openshift.sh from https://github.com/openshift/openshift-extras/pull/397, so transfer the bug status to ASSIGNED.
Additional info:
In function install_rsync_pub_key(), the while loop isn't executed due to wrong syntax in "while [ `date +%s` < $END ];". 
I tested It should be "while [[ `date +%s` < $END ]]",then the loop can make sense.

Comment 4 Luke Meyer 2014-07-21 13:30:34 UTC
Thanks, sorry about that.

Comment 5 Miciah Dashiel Butler Masters 2014-07-21 13:33:31 UTC
Also, -lt is the correct operator to use here.

Comment 6 Luke Meyer 2014-07-23 16:56:36 UTC
PR updated, please re-try.

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