Add extra waits before unsetting maintenance
Avoids issues after restarting the API.
This commit is contained in:
parent
4e59ad5efe
commit
f00b43f20f
|
@ -160,6 +160,12 @@
|
||||||
become_user: root
|
become_user: root
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: wait 15 seconds for system to stabilize
|
||||||
|
pause:
|
||||||
|
seconds: 15
|
||||||
|
become: no
|
||||||
|
connection: local
|
||||||
|
|
||||||
- name: unset PVC maintenance mode
|
- name: unset PVC maintenance mode
|
||||||
command: pvc cluster maintenance off
|
command: pvc cluster maintenance off
|
||||||
run_once: yes
|
run_once: yes
|
||||||
|
|
|
@ -244,6 +244,12 @@
|
||||||
become_user: root
|
become_user: root
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: wait 15 seconds for system to stabilize
|
||||||
|
pause:
|
||||||
|
seconds: 15
|
||||||
|
become: no
|
||||||
|
connection: local
|
||||||
|
|
||||||
- name: unset PVC maintenance mode
|
- name: unset PVC maintenance mode
|
||||||
command: pvc cluster maintenance off
|
command: pvc cluster maintenance off
|
||||||
run_once: yes
|
run_once: yes
|
||||||
|
|
|
@ -145,6 +145,12 @@
|
||||||
- pvcapid
|
- pvcapid
|
||||||
run_once: yes
|
run_once: yes
|
||||||
|
|
||||||
|
- name: wait 15 seconds for system to stabilize
|
||||||
|
pause:
|
||||||
|
seconds: 15
|
||||||
|
become: no
|
||||||
|
connection: local
|
||||||
|
|
||||||
- name: unset PVC maintenance mode on first node
|
- name: unset PVC maintenance mode on first node
|
||||||
command: pvc cluster maintenance off
|
command: pvc cluster maintenance off
|
||||||
run_once: yes
|
run_once: yes
|
||||||
|
|
|
@ -544,10 +544,22 @@
|
||||||
delegate_to: "{{ item }}"
|
delegate_to: "{{ item }}"
|
||||||
loop: "{{ ansible_play_hosts }}"
|
loop: "{{ ansible_play_hosts }}"
|
||||||
|
|
||||||
|
- name: wait 30 seconds for system to stabilize
|
||||||
|
pause:
|
||||||
|
seconds: 30
|
||||||
|
become: no
|
||||||
|
connection: local
|
||||||
|
|
||||||
- name: set first node as primary coordinator
|
- name: set first node as primary coordinator
|
||||||
command: "pvc node primary --wait {{ ansible_play_hosts[0].split('.')[0] }}"
|
command: "pvc node primary --wait {{ ansible_play_hosts[0].split('.')[0] }}"
|
||||||
run_once: yes
|
run_once: yes
|
||||||
delegate_to: "{{ ansible_play_hosts[0] }}"
|
delegate_to: "{{ ansible_play_hosts[0] }}"
|
||||||
|
|
||||||
|
- name: wait 15 seconds for system to stabilize
|
||||||
|
pause:
|
||||||
|
seconds: 15
|
||||||
|
become: no
|
||||||
|
connection: local
|
||||||
|
|
||||||
- name: unset PVC maintenance mode
|
- name: unset PVC maintenance mode
|
||||||
command: pvc cluster maintenance off
|
command: pvc cluster maintenance off
|
||||||
|
|
Loading…
Reference in New Issue