Add node daemon confirmation before continue
This commit is contained in:
parent
812d23ca7b
commit
60092d363a
|
@ -166,6 +166,14 @@
|
|||
command: pvc storage osd unset noout
|
||||
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
|
||||
command: "pvc node ready {{ ansible_hostname }} --wait"
|
||||
ignore_errors: yes
|
||||
|
|
Loading…
Reference in New Issue