Fix backup delete issue when source and destination vserver are same

Added the logic in resource cleanup part to delete the vserver
peering when source and destination vserver are not same.

Closes-bug: #2058642
Change-Id: I02a70642a22095ab202f5846fff04d25321c4c1c
This commit is contained in:
agireesh 2024-04-03 21:52:06 +05:30
parent c78ce51654
commit aa8695716a
2 changed files with 11 additions and 1 deletions

View File

@ -4951,7 +4951,9 @@ class NetAppCmodeFileStorageLibrary(object):
# Delete the vserver peering
try:
src_vserver_client.delete_vserver_peer(src_vserver, des_vserver)
if src_vserver != des_vserver:
src_vserver_client.delete_vserver_peer(src_vserver,
des_vserver)
except netapp_api.NaApiError:
pass

View File

@ -0,0 +1,8 @@
---
fixes:
- |
NetApp driver `bug #2058642
<https://bugs.launchpad.net/tempest/+bug/2058642>`_:
Fix the backup delete issue for NetApp driver when source and destination
vserver are same. Added the logic in resource cleanup part to delete
the vserver peering when source and destination vserver are not same.