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:
parent
f500c5877a
commit
8615ce2549
@ -1266,7 +1266,7 @@ class NetAppCmodeMultiSVMFileStorageLibrary(
|
|||||||
if (dest_client.is_svm_migrate_supported()
|
if (dest_client.is_svm_migrate_supported()
|
||||||
and src_client.is_svm_migrate_supported()):
|
and src_client.is_svm_migrate_supported()):
|
||||||
source_share_server_name = self._get_vserver_name(
|
source_share_server_name = self._get_vserver_name(
|
||||||
source_share_server['id'])
|
source_share_server['identifier'])
|
||||||
|
|
||||||
# Check if the migration is supported.
|
# Check if the migration is supported.
|
||||||
try:
|
try:
|
||||||
@ -1505,7 +1505,7 @@ class NetAppCmodeMultiSVMFileStorageLibrary(
|
|||||||
# Prepare the migration request.
|
# Prepare the migration request.
|
||||||
src_cluster_name = src_client.get_cluster_name()
|
src_cluster_name = src_client.get_cluster_name()
|
||||||
source_share_server_name = self._get_vserver_name(
|
source_share_server_name = self._get_vserver_name(
|
||||||
source_share_server['id'])
|
source_share_server['identifier'])
|
||||||
|
|
||||||
# 3. Send the migration request to ONTAP.
|
# 3. Send the migration request to ONTAP.
|
||||||
try:
|
try:
|
||||||
|
@ -571,6 +571,7 @@ NETWORK_INFO_NETMASK = '255.255.255.0'
|
|||||||
SHARE_SERVER = {
|
SHARE_SERVER = {
|
||||||
'id': 'fake_id',
|
'id': 'fake_id',
|
||||||
'share_network_id': 'c5b3a865-56d0-4d88-abe5-879965e099c9',
|
'share_network_id': 'c5b3a865-56d0-4d88-abe5-879965e099c9',
|
||||||
|
'identifier': 'fake_id',
|
||||||
'backend_details': {
|
'backend_details': {
|
||||||
'vserver_name': VSERVER1
|
'vserver_name': VSERVER1
|
||||||
},
|
},
|
||||||
|
@ -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.
|
Loading…
Reference in New Issue
Block a user