Skip to content

Commit

Permalink
[DCN] Support Manila Shares with Local Ceph Clusters in DCN
Browse files Browse the repository at this point in the history
This update enables deploying three Manila shares, each connected
to its local Ceph cluster within the same availability zone (AZ).
In DCN, each "site" is configured to use its respective local Ceph
cluster.
  • Loading branch information
lkuchlan committed Jan 13, 2025
1 parent 1d34994 commit f3774eb
Show file tree
Hide file tree
Showing 2 changed files with 46 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 @@ -214,12 +214,12 @@ replacements:
- source:
kind: ConfigMap
name: service-values
fieldPath: data.manila.manilaShares.share1.customServiceConfig
fieldPath: data.manila.manilaShares
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.manila.template.manilaShares.share1.customServiceConfig
- spec.manila.template.manilaShares
options:
create: true
- source:
Expand Down
48 changes: 44 additions & 4 deletions examples/dt/dcn/service-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,33 @@ data:
replicas: 1
type: edge
manila:
enabled: false
customServiceConfig: |
[DEFAULT]
storage_availability_zone = az0
enabled: true
manilaAPI:
customServiceConfig: |
[DEFAULT]
enabled_share_protocols=nfs,cephfs
manilaShares:
share1:
az0:
customServiceConfig: |
[DEFAULT]
enabled_share_backends = cephfs
enabled_share_protocols = cephfs
[cephfs]
driver_handles_share_servers = False
share_backend_name = cephfs
share_driver = manila.share.drivers.cephfs.driver.CephFSDriver
cephfs_conf_path = /etc/ceph/az0.conf
cephfs_cluster_name = az0
cephfs_auth_id=openstack
cephfs_volume_mode = 0755
cephfs_protocol_helper_type = CEPHFS
backend_availability_zone = az0
networkAttachments:
- storage
az1:
customServiceConfig: |
[DEFAULT]
enabled_share_backends = cephfs
Expand All @@ -211,11 +231,31 @@ data:
driver_handles_share_servers = False
share_backend_name = cephfs
share_driver = manila.share.drivers.cephfs.driver.CephFSDriver
cephfs_conf_path = /etc/ceph/ceph.conf
cephfs_cluster_name = ceph
cephfs_conf_path = /etc/ceph/az1.conf
cephfs_cluster_name = az1
cephfs_auth_id=openstack
cephfs_volume_mode = 0755
cephfs_protocol_helper_type = CEPHFS
backend_availability_zone = az1
networkAttachments:
- storage
az2:
customServiceConfig: |
[DEFAULT]
enabled_share_backends = cephfs
enabled_share_protocols = cephfs
[cephfs]
driver_handles_share_servers = False
share_backend_name = cephfs
share_driver = manila.share.drivers.cephfs.driver.CephFSDriver
cephfs_conf_path = /etc/ceph/az2.conf
cephfs_cluster_name = az2
cephfs_auth_id=openstack
cephfs_volume_mode = 0755
cephfs_protocol_helper_type = CEPHFS
backend_availability_zone = az2
networkAttachments:
- storage
neutron:
template:
customServiceConfig: |
Expand Down

0 comments on commit f3774eb

Please sign in to comment.