Skip to content

Commit

Permalink
Merge pull request #427 from fultonj/dcn_glance_stores
Browse files Browse the repository at this point in the history
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.

Reviewed-by: Francesco Pantano <[email protected]>
  • Loading branch information
softwarefactory-project-zuul[bot] authored Oct 28, 2024
2 parents 2b53bd2 + 1c64180 commit 16541a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
4 changes: 2 additions & 2 deletions dt/dcn/edpm-post-ceph/nodeset/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
18 changes: 4 additions & 14 deletions examples/dt/dcn/service-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 16541a1

Please sign in to comment.