Add node daemon confirmation before continue
This commit is contained in:
parent
e9f76042bd
commit
7a0c596281
|
@ -166,6 +166,14 @@
|
||||||
command: pvc storage osd unset noout
|
command: pvc storage osd unset noout
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
|
- name: make sure node daemon is in run state
|
||||||
|
shell: "pvc node info {{ ansible_hostname }} | grep '^Daemon State' | awk '{ print $NF }'"
|
||||||
|
register: pvcdaemon
|
||||||
|
failed_when: pvcdaemon.stdout != 'run'
|
||||||
|
until: pvcdaemon.stdout == 'run'
|
||||||
|
retries: 180
|
||||||
|
delay: 10
|
||||||
|
|
||||||
- name: unflush node
|
- name: unflush node
|
||||||
command: "pvc node ready {{ ansible_hostname }} --wait"
|
command: "pvc node ready {{ ansible_hostname }} --wait"
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
Loading…
Reference in New Issue