From 3001bd27502806a4293d0dab9e502cd6456de7b1 Mon Sep 17 00:00:00 2001 From: Gage Hugo Date: Sun, 23 Oct 2022 20:12:09 -0500 Subject: [PATCH] Deploy placement before nova With the placement db migrate job removed, we can now deploy placement ahead of nova. This fixes issues of several nova pods failing due to placement not being up before nova is. This change moves the placement service to deploy before nova in the compute-kit script. Depends-on: https://review.opendev.org/c/openstack/openstack-helm/+/860975 Change-Id: I62f82224e898761d5b388867c63a259967601d45 --- .../component/compute-kit/compute-kit.sh | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tools/deployment/component/compute-kit/compute-kit.sh b/tools/deployment/component/compute-kit/compute-kit.sh index d9d2f0b152..585e0dcac3 100755 --- a/tools/deployment/component/compute-kit/compute-kit.sh +++ b/tools/deployment/component/compute-kit/compute-kit.sh @@ -22,6 +22,16 @@ if openstack service list -f value -c Type | grep -q "^volume" && \ CEPH_ENABLED=true fi +# Get overrides +: ${OSH_EXTRA_HELM_ARGS_PLACEMENT:="$(./tools/deployment/common/get-values-overrides.sh placement)"} + +# Lint and package +make placement + +# Deploy placement +helm upgrade --install placement ./placement --namespace=openstack \ + ${OSH_EXTRA_HELM_ARGS:=} ${OSH_EXTRA_HELM_ARGS_PLACEMENT} + #NOTE: Get the over-rides to use : ${OSH_EXTRA_HELM_ARGS_NOVA:="$(./tools/deployment/common/get-values-overrides.sh nova)"} @@ -50,16 +60,6 @@ else ${OSH_EXTRA_HELM_ARGS_NOVA} fi -# Get overrides -: ${OSH_EXTRA_HELM_ARGS_PLACEMENT:="$(./tools/deployment/common/get-values-overrides.sh placement)"} - -# Lint and package -make placement - -# Deploy placement -helm upgrade --install placement ./placement --namespace=openstack \ - ${OSH_EXTRA_HELM_ARGS:=} ${OSH_EXTRA_HELM_ARGS_PLACEMENT} - #NOTE: Get the over-rides to use : ${OSH_EXTRA_HELM_ARGS_NEUTRON:="$(./tools/deployment/common/get-values-overrides.sh neutron)"}