Add node daemon confirmation before continue

This commit is contained in:
Joshua Boniface 2023-02-23 13:54:22 -05:00
parent 812d23ca7b
commit 60092d363a
1 changed files with 8 additions and 0 deletions

View File

@ -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