Currently the libvirt code will always logout of the iscsi target
during detach error, but the exception will cause the volume to
remain in an attached state. This needs to be more consistent, so
This patch checks specifically for not found and logs a warning
and explicitly detaches. Any other exception will leave iscsi
logged in and leave the volume in the attached state.
Reviewed: https:/ /review. openstack. org/16675 github. com/openstack/ nova/commit/ bd11d15e510175a 2f61e8bf6f8cea5 83bf8c7519
Committed: http://
Submitter: Jenkins
Branch: stable/folsom
commit bd11d15e510175a 2f61e8bf6f8cea5 83bf8c7519
Author: Vishvananda Ishaya <email address hidden>
Date: Thu Sep 27 20:38:59 2012 +0000
libvirt: continue detach if instance not found
Currently the libvirt code will always logout of the iscsi target
during detach error, but the exception will cause the volume to
remain in an attached state. This needs to be more consistent, so
This patch checks specifically for not found and logs a warning
and explicitly detaches. Any other exception will leave iscsi
logged in and leave the volume in the attached state.
Fixes bug 1057756
Change-Id: I23bb7f27e8a9b2 0fdbf62b0629ca8 cc448f427c5 b776158dab06b06 f24a25cbfb)
(cherry picked from commit cc02f6a5604892f