diff --git a/roles/cluster_upgrade/README.md b/roles/cluster_upgrade/README.md index 8a17c050..f7c25de6 100644 --- a/roles/cluster_upgrade/README.md +++ b/roles/cluster_upgrade/README.md @@ -20,6 +20,7 @@ Role Variables | healing_in_progress_checks | 6 | Maximum number of attempts to check if gluster healing is still in progress. | | healing_in_progress_check_delay | 300 | The delay in seconds between each attempt to check if gluster healing is still in progress. | | wait_to_finish_healing | 5 | Delay in minutes to wait to finish gluster healing process after successful host upgrade. | +| wait_before_next_upgrade| 5 | Delay in minutes to wait for the currrent patched host to get to a good state, before continuing with the next | | engine_correlation_id | UNDEF | The correlation id with which be the role run. | Example Playbook diff --git a/roles/cluster_upgrade/defaults/main.yml b/roles/cluster_upgrade/defaults/main.yml index 25c50b80..d7892b46 100644 --- a/roles/cluster_upgrade/defaults/main.yml +++ b/roles/cluster_upgrade/defaults/main.yml @@ -14,3 +14,4 @@ pinned_vms_names: [] healing_in_progress_checks: 6 healing_in_progress_check_delay: 300 wait_to_finish_healing: 5 +wait_before_next_upgrade: 5 diff --git a/roles/cluster_upgrade/tasks/upgrade.yml b/roles/cluster_upgrade/tasks/upgrade.yml index aaa2c13f..32dde9a6 100644 --- a/roles/cluster_upgrade/tasks/upgrade.yml +++ b/roles/cluster_upgrade/tasks/upgrade.yml @@ -133,6 +133,12 @@ - cluster_info.ovirt_clusters[0].gluster_service | bool - host_info.ovirt_hosts | length > 1 + - name: Delay in minutes to wait to upgraded host getting good state + pause: + minutes: "{{ wait_before_next_upgrade }}" + when: + - host_info.ovirt_hosts | length > 1 + - name: progress - host upgrade complete (host 100% complete) include_tasks: log_progress.yml vars: