From 60092d363a34a19447f2d089bbec53cb3fbad396 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Thu, 23 Feb 2023 13:54:22 -0500 Subject: [PATCH] Add node daemon confirmation before continue --- oneshot/update-pvc-cluster.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/oneshot/update-pvc-cluster.yml b/oneshot/update-pvc-cluster.yml index 0c7f9e4..ab5ca32 100644 --- a/oneshot/update-pvc-cluster.yml +++ b/oneshot/update-pvc-cluster.yml @@ -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