[SVF]:Fix clone fcmap not being deleted in cleanup
[Spectrum Virtualize Family] check_vdisk_fc_mappings is not deleting
clone fc maps, if the flashcopy status is in copying autodelete is set
to on and copy progress is 100%. when multiple clones and snapshots
are created using common source volume, deleting the source volume
is not removing all the fcmaps involved in mapping with source volume.
This patch fixes the issue by removing the clone fcmap and then
removing the snapshot fcmap when the source has more than one fcmap.
Closes-Bug: #1890254
Change-Id: I84629cde6d27d6889a30d7c13d99f57c660adde7
(cherry picked from commit 3570a79a16127fd42216aa40b4f492e40533f0ed)
(cherry picked from commit 6e592a8dd49a85f8658ffeeb8c95a9d39f1d8507)
(cherry picked from commit c469c1294d5a09f926905414f505d6e84ebaf506)
Reviewed: https:/ /review. opendev. org/c/openstack /cinder/ +/779141 /opendev. org/openstack/ cinder/ commit/ 1d10e63bdf38fd1 74a2e367abc12e9 8bb415fae5
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/train
commit 1d10e63bdf38fd1 74a2e367abc12e9 8bb415fae5
Author: GirishChilukuri <email address hidden>
Date: Tue Oct 6 19:09:34 2020 +0000
[SVF]:Fix clone fcmap not being deleted in cleanup
[Spectrum Virtualize Family] check_vdisk_ fc_mappings is not deleting
clone fc maps, if the flashcopy status is in copying autodelete is set
to on and copy progress is 100%. when multiple clones and snapshots
are created using common source volume, deleting the source volume
is not removing all the fcmaps involved in mapping with source volume.
This patch fixes the issue by removing the clone fcmap and then
removing the snapshot fcmap when the source has more than one fcmap.
Closes-Bug: #1890254
Change-Id: I84629cde6d27d6 889a30d7c13d99f 57c660adde7 42216aa40b4f492 e40533f0ed) 8658ffeeb8c95a9 d39f1d8507) 926905414f505d6 e84ebaf506)
(cherry picked from commit 3570a79a16127fd
(cherry picked from commit 6e592a8dd49a85f
(cherry picked from commit c469c1294d5a09f