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/16663 github. com/openstack/ nova/commit/ ff776d4ec4620de 2e9d765fd1a3183 4c30f0e1fe
Committed: http://
Submitter: Jenkins
Branch: stable/folsom
commit ff776d4ec4620de 2e9d765fd1a3183 4c30f0e1fe
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 0fb8d1278b42e67 54069e8501)
(cherry picked from commit 5a16b8f3e230cad