From c4c80371f9a36ec01dd23edb460e63542cf14a0c Mon Sep 17 00:00:00 2001 From: Vladimir Kozhukalov Date: Thu, 20 Jun 2024 06:05:23 -0500 Subject: [PATCH] Do not attach PVC to glance-storage-init job When PVC is used as glance storage backend we don't need to attach it to the storage init pod because anyway the init script does nothing with the PVC. On the other hand when PVC is used as the backend there is a race condition when this PVC is attached to the API pod and to the storage init pod. It breaks the deployment because storage init pod never starts and API pod waits for the storage init job to finish. Also this PR adds the test job that deploys compute-kit with Ceph as storageclass backend. In this job Mariadb, Rabbit, Glance, Cinder all use Ceph while usually we test charts with in-memory volumes. This job is heavy and we run it periodically. Change-Id: I7fd1a4a47472bd81cda43cb50b1e3dc448619598 --- glance/Chart.yaml | 2 +- glance/templates/job-storage-init.yaml | 9 ----- releasenotes/notes/glance.yaml | 1 + tools/deployment/component/common/mariadb.sh | 3 +- .../deployment/component/common/openstack.sh | 2 +- tools/deployment/component/common/rabbitmq.sh | 2 +- tools/deployment/component/glance/glance.sh | 2 +- zuul.d/2024.1.yaml | 10 +++++ zuul.d/base.yaml | 25 ++++++++++++ zuul.d/nodesets.yaml | 40 +++++++++++++++++++ zuul.d/project.yaml | 1 + 11 files changed, 82 insertions(+), 15 deletions(-) diff --git a/glance/Chart.yaml b/glance/Chart.yaml index c5adfefad9..53e5e43b0a 100644 --- a/glance/Chart.yaml +++ b/glance/Chart.yaml @@ -14,7 +14,7 @@ apiVersion: v1 appVersion: v1.0.0 description: OpenStack-Helm Glance name: glance -version: 0.4.23 +version: 0.4.24 home: https://docs.openstack.org/glance/latest/ icon: https://www.openstack.org/themes/openstack/images/project-mascots/Glance/OpenStack_Project_Glance_vertical.png sources: diff --git a/glance/templates/job-storage-init.yaml b/glance/templates/job-storage-init.yaml index d8aee23789..f2890df425 100644 --- a/glance/templates/job-storage-init.yaml +++ b/glance/templates/job-storage-init.yaml @@ -164,10 +164,6 @@ spec: readOnly: true {{ end }} {{ end }} - {{- if eq .Values.storage "pvc" }} - - name: glance-images - mountPath: {{ .Values.conf.glance.glance_store.filesystem_store_datadir }} - {{ end }} {{- dict "enabled" .Values.manifests.certificates "name" .Values.secrets.tls.image.api.internal | include "helm-toolkit.snippets.tls_volume_mount" | indent 12 }} volumes: - name: pod-tmp @@ -189,10 +185,5 @@ spec: secretName: {{ .Values.ceph_client.user_secret_name }} {{ end }} {{ end }} - {{- if eq .Values.storage "pvc" }} - - name: glance-images - persistentVolumeClaim: - claimName: glance-images - {{ end }} {{- dict "enabled" .Values.manifests.certificates "name" .Values.secrets.tls.image.api.internal | include "helm-toolkit.snippets.tls_volume" | indent 8 }} {{- end }} diff --git a/releasenotes/notes/glance.yaml b/releasenotes/notes/glance.yaml index 3456e15c7d..9bdd7e33b4 100644 --- a/releasenotes/notes/glance.yaml +++ b/releasenotes/notes/glance.yaml @@ -57,4 +57,5 @@ glance: - 0.4.21 Use uWSGI - 0.4.22 Enable custom annotations for Openstack secrets - 0.4.23 Update images used by default + - 0.4.24 Do not attach backend pvc to storage init pod ... diff --git a/tools/deployment/component/common/mariadb.sh b/tools/deployment/component/common/mariadb.sh index b33ff9d4f7..db4c35ab3b 100755 --- a/tools/deployment/component/common/mariadb.sh +++ b/tools/deployment/component/common/mariadb.sh @@ -22,9 +22,8 @@ set -xe #NOTE: Deploy command helm upgrade --install mariadb ${OSH_INFRA_HELM_REPO}/mariadb \ --namespace=openstack \ - --set volume.use_local_path_for_single_pod_cluster.enabled=true \ - --set volume.enabled=false \ --set pod.replicas.server=1 \ + ${VOLUME_HELM_ARGS:="--set volume.use_local_path_for_single_pod_cluster.enabled=true --set volume.enabled=false"} \ ${OSH_EXTRA_HELM_ARGS:=} \ ${OSH_EXTRA_HELM_ARGS_MARIADB} diff --git a/tools/deployment/component/common/openstack.sh b/tools/deployment/component/common/openstack.sh index b5138d9691..a617f666b9 100755 --- a/tools/deployment/component/common/openstack.sh +++ b/tools/deployment/component/common/openstack.sh @@ -30,7 +30,7 @@ tee /tmp/glance.yaml <