Skip to content

Commit

Permalink
Merge pull request #459 from fultonj/OSPRH-11915
Browse files Browse the repository at this point in the history
Set Cinder customServiceConfig globally in DCN DT

The customServiceConfig for cinder in the DCN DT is used to set the storage_availability_zone. We wish to do this for all Cinder services in the default site (az0), not just for cinderAPI or cinderBackup as the AZ was missing from the cinder-scheduler. Thus, we will move it to the global section under the cinder template and out of the cinderAPI and cinderBackup since they will inherit it. We still need to set the backend_availability_zone in all cinderVolumes except az0 since it will also inherit the new default value. However, the additional line is kept in az0's customServiceConfig to make the pattern easier to see for az0, az1, az2, etc.
Jira: https://issues.redhat.com/browse/OSPRH-11915

Reviewed-by: Andrew Bays <[email protected]>
Reviewed-by: Marián Krčmárik
Reviewed-by: John Fulton <[email protected]>
  • Loading branch information
softwarefactory-project-zuul[bot] authored Dec 12, 2024
2 parents d82dcc2 + ef1d06f commit 5576566
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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 @@ -148,12 +148,12 @@ replacements:
- source:
kind: ConfigMap
name: service-values
fieldPath: data.cinderAPI.customServiceConfig
fieldPath: data.cinder.customServiceConfig
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.cinder.template.cinderAPI.customServiceConfig
- spec.cinder.template.customServiceConfig
options:
create: true
- source:
Expand Down
7 changes: 3 additions & 4 deletions examples/dt/dcn/service-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ metadata:
data:
preserveJobs: false
cinder:
customServiceConfig: |
[DEFAULT]
storage_availability_zone = az0
uniquePodNames: false
cinderAPI:
replicas: 3
customServiceConfig: |
[DEFAULT]
default_availability_zone = az0
cinderBackup:
replicas: 3
customServiceConfig: |
Expand All @@ -23,7 +23,6 @@ data:
backup_ceph_conf = /etc/ceph/az0.conf
backup_ceph_pool = backups
backup_ceph_user = openstack
storage_availability_zone = az0
cinderVolumes:
az0:
customServiceConfig: |
Expand Down

0 comments on commit 5576566

Please sign in to comment.