forked from openstack-k8s-operators/cinder-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Samples: Add Dell PowerMax ISCSI backend samples (openstack-k8s-opera…
…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
1 parent
f6a7cc0
commit 43226b6
Showing
4 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
16 changes: 16 additions & 0 deletions
16
config/samples/backends/dell/powermax/iscsi/cinder-volume-powermax-secrets.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
7 changes: 7 additions & 0 deletions
7
config/samples/backends/dell/powermax/iscsi/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |