Skip to content
Open
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
1 change: 1 addition & 0 deletions roles/cluster_upgrade/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions roles/cluster_upgrade/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions roles/cluster_upgrade/tasks/upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down