Skip to content

Commit af029f5

Browse files
committed
Cinder adoption iscsi steps
As done for NetApp NFS, this patch adds the steps required for iscsi protocol, which is already tested via test suite. In addition, it removes the iSCSI limitation that shouldn't be Tech preview anymore. Signed-off-by: Francesco Pantano <[email protected]>
1 parent 0525c3e commit af029f5

File tree

2 files changed

+58
-4
lines changed

2 files changed

+58
-4
lines changed

docs_user/modules/con_adoption-limitations.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Technology Preview::
1111
The following features are Technology Previews and have not been tested within the context of the {rhos_long_noacro} adoption:
1212
+
1313
* NFS Ganesha back end for {rhos_component_storage_file_first_ref}
14-
* iSCSI and FC-based drivers for {block_storage_first_ref}
14+
* FC-based drivers for {block_storage_first_ref}
1515
* {block_storage} back end for the {image_service_first_ref}
1616
+
1717
The following {compute_service_first_ref} features are Technology Previews:

docs_user/modules/proc_adopting-the-block-storage-service.adoc

Lines changed: 57 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,8 @@ Ensure that you use the same configuration group name for the driver that you us
168168
====
169169
+
170170
. Configure the NetApp NFS Block Storage volume service:
171-
.. Create secrets that include sensitive information such as hostnames, passwords, and usernames to access the third-party NetApp NFS storage. You can find the credentials in the `cinder.conf` file that was generated from the {OpenStackPreviousInstaller} deployment.
171+
.. Create a secret that includes sensitive information such as hostnames, passwords, and usernames to access the third-party NetApp NFS storage. You can find the credentials in the `cinder.conf` file that was generated from the {OpenStackPreviousInstaller} deployment:
172172
+
173-
[source,yaml]
174173
----
175174
$ oc apply -f - <<EOF
176175
apiVersion: v1
@@ -198,7 +197,9 @@ EOF
198197
$ oc patch openstackcontrolplane openstack --type=merge --patch-file=<cinder_netappNFS.patch>
199198
----
200199
+
201-
* The following example shows a `cinder_netappNFS.patch` file that configures a NetApp NFS Block Storage volume service:
200+
* Replace `<cinder_netappNFS.patch>` with the name of the patch file for your NetApp NFS Block Storage volume back end.
201+
+
202+
The following example shows a `cinder_netappNFS.patch` file that configures a NetApp NFS Block Storage volume service:
202203
+
203204
[source,yaml]
204205
----
@@ -224,6 +225,59 @@ spec:
224225
customServiceConfigSecrets:
225226
- cinder-volume-ontap-secrets
226227
----
228+
+
229+
. Configure the NetApp iSCSI Block Storage volume service:
230+
.. Create a secret that includes sensitive information such as hostnames, passwords, and usernames to access the third-party NetApp iSCSI storage. You can find the credentials in the `cinder.conf` file that was generated from the {OpenStackPreviousInstaller} deployment:
231+
+
232+
----
233+
$ oc apply -f - <<EOF
234+
apiVersion: v1
235+
kind: Secret
236+
metadata:
237+
labels:
238+
service: cinder
239+
component: cinder-volume
240+
name: cinder-volume-ontap-secrets
241+
type: Opaque
242+
stringData:
243+
ontap-cinder-secrets: |
244+
[tripleo_netapp]
245+
netapp_server_hostname = netapp_host
246+
netapp_login = netapp_username
247+
netapp_password = netapp_password
248+
netapp_vserver = netapp_vserver
249+
netapp_pool_name_search_pattern=(netapp_poolpattern)
250+
EOF
251+
----
252+
. Patch the `OpenStackControlPlane` custom resource (CR) to deploy the NetApp iSCSI Block Storage volume back end:
253+
+
254+
----
255+
$ oc patch openstackcontrolplane openstack --type=merge --patch-file=<cinder_netappISCSI.patch>
256+
----
257+
+
258+
* Replace `<cinder_netappISCSI.patch>` with the name of the patch file for your NetApp iSCSI Block Storage volume back end.
259+
+
260+
The following example shows a `cinder_netappISCSI.patch` file that configures a NetApp iSCSI Block Storage volume service:
261+
+
262+
----
263+
spec:
264+
cinder:
265+
enabled: true
266+
template:
267+
cinderVolumes:
268+
ontap-iscsi:
269+
networkAttachments:
270+
- storage
271+
customServiceConfig: |
272+
[tripleo_netapp]
273+
volume_backend_name=ontap-iscsi
274+
volume_driver=cinder.volume.drivers.netapp.common.NetAppDriver
275+
netapp_storage_protocol=iscsi
276+
netapp_storage_family=ontap_cluster
277+
consistencygroup_support=True
278+
customServiceConfigSecrets:
279+
- cinder-volume-ontap-secrets
280+
----
227281
. Check if all the services are up and running:
228282
+
229283
----

0 commit comments

Comments
 (0)