Bug 1078156

Summary: Saving Virtual Machine Process window will hang and could not quit when force off vm during saving.
Product: Red Hat Enterprise Linux 7 Reporter: zhengqin <zsong>
Component: virt-managerAssignee: Pavel Hrdina <phrdina>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: dyuan, gscrivan, mzhan, phrdina, tzheng
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: virt-manager-1.1.0-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 05:22:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
hang none

Description zhengqin 2014-03-19 09:44:00 UTC
Description of problem:
From virt-manager, when force off vm during saving, Saving Virtual
Machine Process window will hang and could not quit.


Version-Release number of selected component:
virt-manager-0.10.0-18.el7.noarch

How reproducible:
100%

Steps to Reproduce:
1. Start virt-manager with --debug and prepare a running guest with GUI and big disk image which would take a long time to save.
2. "Save" this guest by selecting "Shut Down" -> "Save" and Click
"Yes" button for confirm window,  Quickly force off this guest during
saving process.
3. Error shutting down domain window will pop up, and click "Close" button




Actual result:
1. Saving Virtual Machine Process window will hang, and could not quit even
if quit virt-manager.

2.  Here is --debug output:
-----------------------------------------------
2014-03-19 16:21:52,388 (engine:869): Destroying vm 'rhel6u5-clone4'
2014-03-19 16:21:52,389 (asyncjob:190): Creating async job for
function cb=<function tmpcb at 0x2501578>
2014-03-19 16:21:52,491 (error:81): error dialog message:
summary=Error shutting down domain: Requested operation is not valid:
domain is not running
details=Error shutting down domain: Requested operation is not valid:
domain is not running

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 100, in
cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 122, in
tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1201, in
destroy
    self._backend.destroy()
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 750, in
destroy
    if ret == -1: raise libvirtError ('virDomainDestroy() failed',
dom=self)
libvirtError: Requested operation is not valid: domain is not running
-----------------------------------------------


Expected results:
1. Saving Virtual Machine Process window should be quit, OR, Could not force
off vm during saving process.


Additional info:
1. This issue does not occur on RHEL6

Comment 1 zhengqin 2014-03-19 09:47:08 UTC
Created attachment 876279 [details]
hang

See attached screen shot for saving Virtual Machine Process window which hangs.

Comment 4 Pavel Hrdina 2015-07-13 14:39:46 UTC
This bug was fixed by rebase in RHEL-7.1 to virt-manager-1.1.0.  Now the Saving Virtual Machine Process window is closed and an error message window is displayed.

Comment 8 fwu 2015-07-16 06:49:48 UTC
I can reproduce this bug on the following version:
virt-manager-0.10.0-18.el7.noarch
virt-install-0.10.0-18.el7.noarch

Steps are the same as Comment 0 shows.

Then verify with the latest package:
virt-manager-1.2.1-2.el7.noarch
virt-install-1.2.1-2.el7.noarch

Steps:
1. Start virt-manager and prepare a running guest with GUI and big disk image which would take a long time to save.
2. "Save" this guest by selecting "Shut Down" -> "Save",  Quickly force off this guest during saving process.
3. Error shutting down domain window will pop up, and click "Close" button.

Results:
During Step 3, the 'Saving Virtual Machine Process' window is closed and an error message window is displayed. After the 'Close' button was clicked, no hang-up window appears.

According to the result shown above, move this bug from ON_QA to VERIFIED.

Comment 10 errata-xmlrpc 2015-11-19 05:22:25 UTC
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.

https://rhn.redhat.com/errata/RHBA-2015-2206.html