From 94e9bf9133d5ffdeb11baae2d0d9a57d90424b0d Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:27 -0400 Subject: [PATCH] Ignore errors during flush commands These might inexplicably fail, but that is fine. --- oneshot/update-pvc-cluster.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oneshot/update-pvc-cluster.yml b/oneshot/update-pvc-cluster.yml index e10c06e..337a89c 100644 --- a/oneshot/update-pvc-cluster.yml +++ b/oneshot/update-pvc-cluster.yml @@ -67,6 +67,7 @@ - name: flush node command: "pvc node flush {{ ansible_hostname }} --wait" + ignore_errors: yes - name: make sure node is in flushed state shell: "pvc node info {{ ansible_hostname }} | grep '^Domain State' | awk '{ print $NF }'" @@ -172,6 +173,7 @@ - name: unflush node command: "pvc node ready {{ ansible_hostname }} --wait" + ignore_errors: yes - name: make sure all VMs have returned shell: "pvc node info {{ ansible_hostname }} | grep '^Domain State' | awk '{ print $NF }'"