From 1c6418077ba19aaf66e5f6160e6874deed3ad73c Mon Sep 17 00:00:00 2001 From: John Fulton Date: Fri, 25 Oct 2024 11:19:50 -0400 Subject: [PATCH] Glance DCN: Remove unnecessary configuration and default to az0 - Remove the `customServiceConfig` from the Glance template since it's different for each Glance API pod. - Remove undefined backends from `enabled_backends` in az1 and az2 - Call the glance backend at AZ0 `az0` instead of `default`. Signed-off-by: John Fulton --- .../edpm-post-ceph/nodeset/kustomization.yaml | 4 ++-- examples/dt/dcn/service-values.yaml | 18 ++++-------------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/dt/dcn/edpm-post-ceph/nodeset/kustomization.yaml b/dt/dcn/edpm-post-ceph/nodeset/kustomization.yaml index 0629a943c..97c32a137 100644 --- a/dt/dcn/edpm-post-ceph/nodeset/kustomization.yaml +++ b/dt/dcn/edpm-post-ceph/nodeset/kustomization.yaml @@ -125,12 +125,12 @@ replacements: - source: kind: ConfigMap name: service-values - fieldPath: data.glance.customServiceConfig + fieldPath: data.glance.keystoneEndpoint targets: - select: kind: OpenStackControlPlane fieldPaths: - - spec.glance.template.customServiceConfig + - spec.glance.template.keystoneEndpoint options: create: true - source: diff --git a/examples/dt/dcn/service-values.yaml b/examples/dt/dcn/service-values.yaml index 35298e02b..805ec6696 100644 --- a/examples/dt/dcn/service-values.yaml +++ b/examples/dt/dcn/service-values.yaml @@ -66,19 +66,9 @@ data: rbd_cluster_name = az2 backend_availability_zone = az2 glance: - customServiceConfig: | - [DEFAULT] - enabled_backends = default_backend:rbd - [glance_store] - default_backend = default_backend - [default_backend] - rbd_store_ceph_conf = /etc/ceph/az0.conf - store_description = "RBD backend" - rbd_store_pool = images - rbd_store_user = openstack - rbd_thin_provisioning = True + keystoneEndpoint: az0 glanceAPIs: - default: + az0: customServiceConfig: | [DEFAULT] enabled_import_methods = [web-download,copy-image,glance-direct] @@ -121,7 +111,7 @@ data: customServiceConfig: | [DEFAULT] enabled_import_methods = [web-download,copy-image,glance-direct] - enabled_backends = az0:rbd,az1:rbd,az2:rbd + enabled_backends = az0:rbd,az1:rbd [glance_store] default_backend = az1 [az1] @@ -154,7 +144,7 @@ data: customServiceConfig: | [DEFAULT] enabled_import_methods = [web-download,copy-image,glance-direct] - enabled_backends = az0:rbd,az1:rbd,az2:rbd + enabled_backends = az0:rbd,az2:rbd [glance_store] default_backend = az2 [az2]