Skip to content

Commit d685ec0

Browse files
toskyopenshift-cherrypick-robot
authored andcommitted
cinder: backend_host and volume_backend_name from 17.1
This change makes sure that - makes sure that volume_backend_name has the same value as the overall section, matching the value from 17.1; - adds backend_host=hostgroup to the templates for the cinder volume configuration which were missing it. If these keys are not assigned the same value as in 17.1, cinder won't be able to manage the volumes created before the adoption, because they will be assigned a new value for os-vol-host-attr:host, and the value for volume_backend_name set so far did not match the old value. Signed-off-by: Luigi Toscano <ltoscano@redhat.com>
1 parent 15b007f commit d685ec0

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

tests/roles/cinder_adoption/templates/cinder_volume_netapp_iscsi.yaml.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ spec:
77
- storage
88
customServiceConfig: |
99
[{{ cinder_netapp_backend }}]
10-
volume_backend_name=ontap-iscsi
10+
backend_host=hostgroup
11+
volume_backend_name={{ cinder_netapp_backend }}
1112
volume_driver=cinder.volume.drivers.netapp.common.NetAppDriver
1213
netapp_storage_protocol=iscsi
1314
netapp_storage_family=ontap_cluster

tests/roles/cinder_adoption/templates/cinder_volume_netapp_nfs.yaml.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ spec:
77
- storage
88
customServiceConfig: |
99
[{{ cinder_netapp_backend }}]
10-
volume_backend_name=ontap-nfs
10+
backend_host=hostgroup
11+
volume_backend_name={{ cinder_netapp_backend }}
1112
volume_driver=cinder.volume.drivers.netapp.common.NetAppDriver
1213
netapp_storage_protocol=nfs
1314
netapp_storage_family=ontap_cluster

tests/roles/cinder_adoption/templates/cinder_volume_pure_fc.yaml.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ spec:
77
- storage
88
customServiceConfig: |
99
[{{ cinder_pure_backend }}]
10-
volume_backend_name=pure-fc
10+
backend_host=hostgroup
11+
volume_backend_name={{ cinder_pure_backend }}
1112
volume_driver=cinder.volume.drivers.pure.PureFCDriver
1213
consistencygroup_support=True
1314
customServiceConfigSecrets:

0 commit comments

Comments
 (0)