Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-4.16] OCPBUGS-48743: Raise the default greenboot timeout to 600s #4448

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/contributor/greenboot.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ boot_indeterminate=0
boot_counter=2
...
...
Waiting 300s for MicroShift service to be active and not failed
Waiting 600s for MicroShift service to be active and not failed
FAILURE
...
...
Expand Down Expand Up @@ -181,7 +181,7 @@ Running Required Health Check Scripts...
STARTED
...
...
Waiting 300s for 1 pod(s) from the 'openshift-ingress' namespace to be in 'Ready' state
Waiting 600s for 1 pod(s) from the 'openshift-ingress' namespace to be in 'Ready' state
FAILURE
...
...
Expand Down
4 changes: 2 additions & 2 deletions packaging/greenboot/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ function get_wait_timeout() {
[ -f "${conf_file}" ] && source ${conf_file}

# Read and verify the wait timeout value, allowing for the [60..9999] range
local base_timeout=${MICROSHIFT_WAIT_TIMEOUT_SEC:-300}
local base_timeout=${MICROSHIFT_WAIT_TIMEOUT_SEC:-600}
local reSecs='^[1-9]{1}[0-9]{0,3}$'
if [[ ! ${base_timeout} =~ ${reSecs} ]] ; then
base_timeout=300
base_timeout=600
>&2 echo "Could not parse MICROSHIFT_WAIT_TIMEOUT_SEC value '${MICROSHIFT_WAIT_TIMEOUT_SEC}': using '${base_timeout}' instead"
fi
if [[ ${base_timeout} -lt 60 ]] ; then
Expand Down
6 changes: 0 additions & 6 deletions test/kickstart-templates/includes/post-greenboot.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions test/kickstart-templates/kickstart-centos.ks.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@
%include /post-network.cfg

%include /post-cos9rpm.cfg
# Greenboot configuration must come after RPM install to avoid
# /etc/greenboot/greenboot.conf overwrite by the package update
%include /post-greenboot.cfg

%end