hasManagedSaveImage is not implmented in the LXC libvirt driver, resulting
in the following error when a vm is deleted "Error from libvirt during saved
instance removal. Code=3 Error=this function is not supported by the
connection driver: virDomainHasManagedSaveImage"
This commit replaces the use of hasManagedSaveImage, managedSaveRemove and
undefine with undefineFlags which does the work of all 3 calls and is
implemented in versions of libvirt > 0.9.4. We also revert back to calling
undefine if undefineFlags raises an error.
Reviewed: https:/ /review. openstack. org/12275 github. com/openstack/ nova/commit/ aeacea16a30f85d fb307803a4b46a6 02cabc8eb5
Committed: http://
Submitter: Jenkins
Branch: master
commit aeacea16a30f85d fb307803a4b46a6 02cabc8eb5
Author: Derek Higgins <email address hidden>
Date: Tue Sep 4 11:50:36 2012 +0100
Fixing call to hasManagedSaveImage
Fixes bug #1044090
hasManagedS aveImage is not implmented in the LXC libvirt driver, resulting agedSaveImage"
in the following error when a vm is deleted "Error from libvirt during saved
instance removal. Code=3 Error=this function is not supported by the
connection driver: virDomainHasMan
This commit replaces the use of hasManagedSaveI mage, managedSaveRemove and
undefine with undefineFlags which does the work of all 3 calls and is
implemented in versions of libvirt > 0.9.4. We also revert back to calling
undefine if undefineFlags raises an error.
Change-Id: Ib8d451aeff7767 f835c3c1aab99ee 4ab5e299852