From ce82f7224164e1d4307ccfb1d2443d7bcb42d112 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 29 Aug 2024 02:57:12 -0400 Subject: [PATCH] Ensure schema updates are run after upgrade --- oneshot/upgrade-pvc-cluster_deb12.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/oneshot/upgrade-pvc-cluster_deb12.yml b/oneshot/upgrade-pvc-cluster_deb12.yml index a0e2cbd..107ab24 100644 --- a/oneshot/upgrade-pvc-cluster_deb12.yml +++ b/oneshot/upgrade-pvc-cluster_deb12.yml @@ -512,6 +512,17 @@ name: patroni state: started masked: no + + - name: wait 15 seconds for system to stabilize + pause: + seconds: 15 + become: no + connection: local + + - name: apply schema updates + shell: /usr/share/pvc/pvc-api-db-upgrade + ignore_errors: yes + run_once: yes delegate_to: "{{ patroni_leader }}"