libvirt: ignore deleted domain while get block dev
The get_all_block_devices could raise libvirtError if domain was deleted
while listing instances. This will cause LibvirtISCSIVolumeDriver to fail
disconnect_volume. This patch ignores the domain that could not be found
to avoid this issue.
Reviewed: https:/ /review. openstack. org/14023 github. com/openstack/ nova/commit/ 5a16b8f3e230cad 0fb8d1278b42e67 54069e8501
Committed: http://
Submitter: Jenkins
Branch: master
commit 5a16b8f3e230cad 0fb8d1278b42e67 54069e8501
Author: MotoKen <email address hidden>
Date: Thu Oct 4 14:37:49 2012 +0800
libvirt: ignore deleted domain while get block dev
The get_all_ block_devices could raise libvirtError if domain was deleted umeDriver to fail volume. This patch ignores the domain that could not be found
while listing instances. This will cause LibvirtISCSIVol
disconnect_
to avoid this issue.
Fixes bug 1060836
Change-Id: I9dc994d8ca7fc0 84830adb4f6f9d3 ca10e0fe577