Bug 728155
Summary: | [virt-manager]can't delete guest from virt-manager when guest have save file | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | zhe peng <zpeng> |
Component: | virt-manager | Assignee: | Cole Robinson <crobinso> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2 | CC: | dyuan, eblake, hjiang, mzhan, rwu, syeghiay |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | virt-manager-0.9.0-6.el6 | Doc Type: | Bug Fix |
Doc Text: |
No description necessary
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2011-12-06 16:15:06 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
zhe peng
2011-08-04 08:39:25 UTC
Does virsh undefine have the same problem? I think I recall a similar libvirt issue, so reassigning there. Libvirt had a problem where it allowed deletion without removing the save file, and it was fixed in virsh at the series ending here: commit 83e849c197caf09373d1ff7337d9e2b487ad905c Author: Osier Yang <jyang> Date: Wed Jul 20 11:12:46 2011 +0800 undefine: Extend virsh undefine to support the new flag If the domain has managed save image, and --managed-save is not specified, then it fails with an error telling the user that a managed save image still exists. virt-manager needs to be taught the same logic as virsh. It is unsafe to undefine a domain with managed save data, since stranding that managed save data would interfere with the creation of a new domain by the same name. When managing older libvirt, virt-manager must manually check for managed save data first; when managing newer libvirt, virt-manager can use the new flag. Reassigning to virt-manager - the change in libvirt was intentional to forbid undefining of domains with save data, so virt-manager need to make it easier to automatically remove the save data before undefining domains, and to provide the safety check that is guaranteed by newer libvirt but missing in older libvirt. Thanks for the info Eric, fixed upstream with a couple commits: http://git.fedorahosted.org/git?p=virt-manager.git;a=commit;h=db21a2a8331c8518f27b136d0013a56cf84df7e6 http://git.fedorahosted.org/git?p=virt-manager.git;a=commit;h=b36ec4b8c2ec7ed72404db7f71cadfaecfea719e Fixed in virt-manager-0.9.0-6.el6 Reproduce with the following packages: virt-manager-0.9.0-5.el6.x86_64 libvirt-0.9.4-9.el6.x86_64 Verified with the following packages: virt-manager-0.9.0-6.el6.x86_64 libvirt-0.9.4-9.el6.x86_64 kernel-2.6.32-191.el6.x86_64 qemu-kvm-0.12.1.2-2.184.el6.x86_64 python-virtinst-0.600.0-3.el6.noarch Steps: 1.lunch virt-manager, #virt-manager --debug 2.install a guest ,make sure the guest running 3.click guest name to open guest graphics console 3.click "Virtual Machine"->"Shut Down"->"Save" 4.after save complete,the guest will shutoff,switch to virt-manager main page,and delete the guest The guest could be deleted. So move the status of this bug from "ON_QA" to "Verified". Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: No description necessary Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1642.html |