Add node daemon confirmation before continue

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:29 -04:00
parent e9f76042bd
commit 7a0c596281
1 changed files with 8 additions and 0 deletions

View File

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