Skip to content

Commit

Permalink
Samples: Add Dell PowerMax ISCSI backend samples (openstack-k8s-opera…
Browse files Browse the repository at this point in the history
…tors#331)

* Samples: Add Dell PowerMax ISCSI backend samples

* Samples: Add Dell PowerMax ISCSI backend samples

* Update cinder-volume-powermax-secrets.yaml

Remove empty line.
  • Loading branch information
jproque-dell authored Feb 20, 2024
1 parent f6a7cc0 commit 43226b6
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/samples/backends/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Currently available samples are:
- Pure Storage iSCSI
- Pure Storage FC
- Pure Storage NVMe-RoCE
- Dell PowerMax iSCSI

**NOTE**: These examples are designed to be applied one at time. If you attempt
to add a second backend by applying a second example it will result in the
Expand Down
30 changes: 30 additions & 0 deletions config/samples/backends/dell/powermax/iscsi/backend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# To be able to use this sample it is necessary to:
# - Have a Dell PowerMax backend with iSCSI support
# - Have the Unisphere for PowerMax credentials in cinder-volume-powermax-secrets.yaml
# - Having iscsid and multpathd running on the host (automatically done by this sample)
#
# The correct way to configure and run the daemons is using `MachineConfig` as shown in `iscsid.yaml` and `multipathd.yaml`, like this sample does.
#
# ATTENTION: After applying this OpenShift nodes will reboot, because of the `MachineConfig` changes and will take a while to recover.

apiVersion: core.openstack.org/v1beta1
kind: OpenStackControlPlane
metadata:
name: openstack
spec:
cinder:
template:
cinderVolumes:
powermax-iscsi:
networkAttachments:
- storage
customServiceConfigSecrets:
- cinder-volume-powermax-secrets
customServiceConfig: |
[powermax-iscsi]
volume_backend_name=powermax
volume_driver = cinder.volume.drivers.dell_emc.powermax.iscsi.PowerMaxISCSIDriver
powermax_port_groups = [OS-ISCSI-PG]
powermax_array = 000120001607
powermax_srp = SRP_1
image_volume_cache_enabled = True
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Define the "cinder-volume-powermax-secrets" Secret that contains sensitive
# information pertaining to the [powermax-iscsi] backend.
apiVersion: v1
kind: Secret
metadata:
labels:
service: cinder
component: cinder-volume
name: cinder-volume-powermax-secrets
type: Opaque
stringData:
powermax-secrets.conf: |
[powermax-iscsi]
san_ip = 10.225.104.114
san_login = smc
san_password = smc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
resources:
- ../../../bases/iscsid
- ../../../bases/multipathd
- ../../../bases/openstack
- cinder-volume-powermax-secrets.yaml
patches:
- path: backend.yaml

0 comments on commit 43226b6

Please sign in to comment.