NetApp Derive vserver name from share server identifier

Instead of using the identifier the migration methods are deriving
the vserver name from the share server id. This causes failure for
migrate a share server that had been migrated before.

Closes-bug: #2037109
Change-Id: Ida13bacab960761bb7cd0708017d864db0d7358f
This commit is contained in:
Kiran Pawar 2023-10-03 12:17:51 +00:00
parent f500c5877a
commit 8615ce2549
3 changed files with 11 additions and 2 deletions

View File

@ -1266,7 +1266,7 @@ class NetAppCmodeMultiSVMFileStorageLibrary(
if (dest_client.is_svm_migrate_supported()
and src_client.is_svm_migrate_supported()):
source_share_server_name = self._get_vserver_name(
source_share_server['id'])
source_share_server['identifier'])
# Check if the migration is supported.
try:
@ -1505,7 +1505,7 @@ class NetAppCmodeMultiSVMFileStorageLibrary(
# Prepare the migration request.
src_cluster_name = src_client.get_cluster_name()
source_share_server_name = self._get_vserver_name(
source_share_server['id'])
source_share_server['identifier'])
# 3. Send the migration request to ONTAP.
try:

View File

@ -571,6 +571,7 @@ NETWORK_INFO_NETMASK = '255.255.255.0'
SHARE_SERVER = {
'id': 'fake_id',
'share_network_id': 'c5b3a865-56d0-4d88-abe5-879965e099c9',
'identifier': 'fake_id',
'backend_details': {
'vserver_name': VSERVER1
},

View File

@ -0,0 +1,8 @@
---
fixes:
- |
NetApp ONTAP driver during migration uses share server id which was causing
failure for migrate a share server that had been migrated before. Fixed it
by using share server identifier instead of id. Please refer to the
`Launchpad bug #2037109 <https://bugs.launchpad.net/manila/+bug/2037109>`_
for more details.