[IBM DS8000] Fixed Detach for multi-attach volumes
During detach operation for Multi attach type volumes
the first detach from the host is successful.
In the second detach operation the volume remains in
detaching state.
Fixed the above issue by adding a check for multi-attach
volumes and get the host mapping info of a volume.
If the volume is attached to multiple hosts, then skip
the delete host operation and return.
Reviewed: https:/ /review. opendev. org/c/openstack /cinder/ +/837699 /opendev. org/openstack/ cinder/ commit/ 56d27404c7f8030 b359d63ef5f823d a16588d2cc
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 56d27404c7f8030 b359d63ef5f823d a16588d2cc
Author: haailani <email address hidden>
Date: Wed Apr 13 08:02:38 2022 +0000
[IBM DS8000] Fixed Detach for multi-attach volumes
During detach operation for Multi attach type volumes
the first detach from the host is successful.
In the second detach operation the volume remains in
detaching state.
Fixed the above issue by adding a check for multi-attach
volumes and get the host mapping info of a volume.
If the volume is attached to multiple hosts, then skip
the delete host operation and return.
Closes-bug: #1951046
Change-Id: I8f4586292d1310 d6f7bd9fd22b987 15f3414d23c