Skip to content

Commit 40981e8

Browse files
Merge pull request #1018 from tosky/cinder-netapp-backend
cinder netapp+doc: use the source configuration group name
2 parents 8d2efbd + 4641d1f commit 40981e8

4 files changed

Lines changed: 23 additions & 12 deletions

File tree

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

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ spec:
161161
report_discard_supported=True
162162
----
163163
+
164+
[NOTE]
165+
====
166+
Ensure that you use the same configuration group name for the driver that you used in the source cluster. In this example, the driver configuration group in `customServiceConfig` is called `tripleo_ceph` because it reflects the value of the configuration group name in the `cinder.conf` file of the source OpenStack cluster.
167+
====
168+
+
164169
. Configure the NetApp NFS Block Storage volume service:
165170
.. 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.
166171
+
@@ -177,7 +182,7 @@ metadata:
177182
type: Opaque
178183
stringData:
179184
ontap-cinder-secrets: |
180-
[ontap-nfs]
185+
[tripleo_netapp]
181186
netapp_login= netapp_username
182187
netapp_password= netapp_password
183188
netapp_vserver= netapp_vserver
@@ -205,7 +210,7 @@ spec:
205210
networkAttachments:
206211
- storage
207212
customServiceConfig: |
208-
[ontap-nfs]
213+
[tripleo_netapp]
209214
volume_backend_name=ontap-nfs
210215
volume_driver=cinder.volume.drivers.netapp.common.NetAppDriver
211216
nfs_snapshot_support=true
@@ -223,13 +228,13 @@ spec:
223228
----
224229
$ openstack volume service list
225230
226-
+------------------+------------------------+------+---------+-------+----------------------------+
227-
| Binary | Host | Zone | Status | State | Updated At |
228-
+------------------+------------------------+------+---------+-------+----------------------------+
229-
| cinder-volume | hostgroup@tripleo_ceph | nova | enabled | up | 2023-06-28T17:00:03.000000 |
230-
| cinder-scheduler | cinder-scheduler-0 | nova | enabled | up | 2023-06-28T17:00:02.000000 |
231-
| cinder-backup | cinder-backup-0 | nova | enabled | up | 2023-06-28T17:00:01.000000 |
232-
+------------------+------------------------+------+---------+-------+----------------------------+
231+
+------------------+--------------------------+------+---------+-------+----------------------------+
232+
| Binary | Host | Zone | Status | State | Updated At |
233+
+------------------+--------------------------+------+---------+-------+----------------------------+
234+
| cinder-volume | hostgroup@tripleo_netapp | nova | enabled | up | 2023-06-28T17:00:03.000000 |
235+
| cinder-scheduler | cinder-scheduler-0 | nova | enabled | up | 2023-06-28T17:00:02.000000 |
236+
| cinder-backup | cinder-backup-0 | nova | enabled | up | 2023-06-28T17:00:01.000000 |
237+
+------------------+--------------------------+------+---------+-------+----------------------------+
233238
----
234239

235240
. Apply the DB data migrations:

tests/roles/cinder_adoption/tasks/cinder_volume_netapp_nfs.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@
3232
- 'Missing required Netapp input'
3333

3434
- name: Render Netapp OpenShift Secret template
35+
ansible.builtin.template:
36+
src: "{{ role_path }}/templates/cinder_volume_netapp_nfs.yaml.j2"
37+
dest: /tmp/cinder_volume_netapp_nfs.yaml
38+
mode: "0600"
39+
40+
- name: Render cinder netapp NFS OpenShift patch file template
3541
ansible.builtin.template:
3642
src: "{{ role_path }}/templates/cinder-volume-ontap-secrets.yaml.j2"
3743
dest: /tmp/cinder-volume-ontap-secrets.yaml
@@ -47,4 +53,4 @@
4753
ansible.builtin.shell: |
4854
{{ shell_header }}
4955
{{ oc_header }}
50-
oc patch openstackcontrolplane openstack --type=merge --patch-file={{ role_path }}/files/cinder_volume_netapp_nfs.yaml
56+
oc patch openstackcontrolplane openstack --type=merge --patch-file=/tmp/cinder_volume_netapp_nfs.yaml

tests/roles/cinder_adoption/templates/cinder-volume-ontap-secrets.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ metadata:
1010
type: Opaque
1111
stringData:
1212
ontap-cinder-secrets: |
13-
[ontap-nfs]
13+
[{{ cinder_netapp_backend }}]
1414
netapp_server_hostname = {{ cinder_volume_netapp_config.netapp_server_hostname }}
1515
netapp_login = {{ cinder_volume_netapp_config.netapp_login }}
1616
netapp_password = {{ cinder_volume_netapp_config.netapp_password }}

tests/roles/cinder_adoption/files/cinder_volume_netapp_nfs.yaml renamed to tests/roles/cinder_adoption/templates/cinder_volume_netapp_nfs.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ spec:
66
networkAttachments:
77
- storage
88
customServiceConfig: |
9-
[ontap-nfs]
9+
[{{ cinder_netapp_backend }}]
1010
volume_backend_name=ontap-nfs
1111
volume_driver=cinder.volume.drivers.netapp.common.NetAppDriver
1212
netapp_storage_protocol=nfs

0 commit comments

Comments
 (0)