libvirt: disconnect volume from host during detach
Under certain failure scenarios it may be that although the libvirt
definition for the volume has been removed for the instance that the
associated storage lun on the compute server may not have been fully
cleaned up yet.
In case users try an other attempt to detach volume we should not stop
the process whether the device is not found in domain definition but
try to disconnect the logical device from host.
This commit makes the process to attempt a disconnect volume even if
the device is not attached to the guest.
Reviewed: https:/ /review. openstack. org/546655 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=d6a072b5c5a 3ff9de7f4b42cda 517ead17efe561
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit d6a072b5c5a3ff9 de7f4b42cda517e ad17efe561
Author: Sahid Orentino Ferdjaoui <email address hidden>
Date: Wed Oct 25 05:57:11 2017 -0400
libvirt: disconnect volume from host during detach
Under certain failure scenarios it may be that although the libvirt
definition for the volume has been removed for the instance that the
associated storage lun on the compute server may not have been fully
cleaned up yet.
In case users try an other attempt to detach volume we should not stop
the process whether the device is not found in domain definition but
try to disconnect the logical device from host.
This commit makes the process to attempt a disconnect volume even if
the device is not attached to the guest.
Closes-Bug: #1727260 ffb1c97d2de9bdc a58982289d8 b9043ddde8e80ac 99cd193660)
Change-Id: I4182642aab3fd2
Signed-off-by: Sahid Orentino Ferdjaoui <email address hidden>
(cherry picked from commit ce531dd1b763704