Bug 756314

Summary: RFE:warning or error message should pop up to remind customer when restore the active guest
Product: Red Hat Enterprise Linux 5 Reporter: Daisy Wu <jwu>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 5.8CC: jwu, mzhan, rwu, zpeng
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-08 15:58:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Daisy Wu 2011-11-23 08:43:05 UTC
Description of problem:
When restore the actived guest, no any responce on GUI.

Version-Release number of selected component (if applicable):
virt-manager-0.6.1-15.el5
libvirt-0.8.2.24.el5
python-virtinst-0.400.3-13.el5
kvm-83-243.el5

# uname -a
Linux wjw.redhat.com 2.6.18-294.el5 #1 SMP Tue Oct 25 16:30:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

How reproducible:
always

Steps to Reproduce:
1). Run guest named '4u9'.
2). Do some operation on guest, for example, add one file /tmp/11.txt.
3). Save the guest.
open the guest->click virtual machine table->click save->type the name of save img and choose the location. (my location /var/lib/libvirt/11-save.img)
4). After save, the guest will change to shutoff status.
5). Click Run button to start the guest, do not restore it, there is OSError message:
6). When the guest is running, find the save img to restore guest '4u9'.
Click local qemu connection->File->Restore saved machine->open /var/lib/libvirt/11-save.img
7). The running guest can not be restored, there is error message in debuginfo, but no any remind info to GUI.
Traceback (most recent call last):
File "/usr/lib64/python2.4/threading.py", line 442, in _bootstrap
self.run()
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 37, in run
threading.Thread.run(self)
File "/usr/lib64/python2.4/threading.py", line 422, in run
self._target(*self.__args, **self.__kwargs)
File "/usr/share/virt-manager/virtManager/manager.py", line 415, in restore_saved_callback
status = self.current_connection().restore(file_to_load)
File "/usr/share/virt-manager/virtManager/connection.py", line 714, in restore
status = self.vmm.restore(frm)
File "/usr/lib64/python2.4/site-packages/libvirt.py", line 1667, in restore
if ret == 1: raise libvirtError ('virDomainRestore() failed', conn=self)
libvirtError: Requested operation is not valid: domain is already active as '4u9'

Actual results:
As above.

Expected results:
RFE:The error or warning message just like "Requested operation is not valid: domain is already active as '4u9'" should pop up on GUI to remind customer.

Comment 1 Cole Robinson 2011-12-08 15:58:51 UTC
Thanks for the report. However at this point in the RHEL5 cycle this bug isn't really worth fixing unless there is a customer report. Closing as WONTFIX for RHEL5