From b395f47852590e25086f1aab66d81390dcf61b5e Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 20 Aug 2024 09:23:37 -0400 Subject: [PATCH] Ensure pvcapid is restarted after migrations --- oneshot/update-pvc-daemons.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/oneshot/update-pvc-daemons.yml b/oneshot/update-pvc-daemons.yml index 3a8f244..96b42bc 100644 --- a/oneshot/update-pvc-daemons.yml +++ b/oneshot/update-pvc-daemons.yml @@ -125,7 +125,6 @@ service: name: "{{ item }}" state: restarted - enabled: yes with_items: - pvcworkerd - pvchealthd @@ -138,6 +137,14 @@ command: /usr/share/pvc/pvc-api-db-upgrade run_once: yes + - name: restart API daemon to apply database migrations + service: + name: "{{ item }}" + state: restarted + with_items: + - pvcapid + run_once: yes + - name: unset PVC maintenance mode on first node command: pvc cluster maintenance off run_once: yes