Bug 1053884

Summary: Guest fails to migrate while paused
Product: Red Hat Enterprise Virtualization Manager Reporter: wdaniel
Component: ovirt-engine-webadmin-portalAssignee: Arik <ahadas>
Status: CLOSED ERRATA QA Contact: Artyom <alukiano>
Severity: low Docs Contact:
Priority: medium    
Version: 3.3.0CC: benglish, dfediuck, dsulliva, ecohen, iheim, mavital, michal.skrivanek, rbalakri, Rhev-m-bugs, sbonazzo, sherold, tpoitras, yeylon, ylavi
Target Milestone: ---Keywords: Reopened, ZStream
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, a user-paused virtual machine was unable to be migrated. Now, this issue has been fixed and user-paused virtual machines can migrate.
Story Points: ---
Clone Of:
: 1099506 (view as bug list) Environment:
Last Closed: 2015-02-11 17:57:26 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:
Bug Depends On:    
Bug Blocks: 1099506, 1142923, 1156165    

Comment 1 Michal Skrivanek 2014-01-16 08:32:10 UTC
importnat to note is the VM is paused due to EIO, which should indeed be blocked.
However that NPE is not niceā€¦
Also the current code check for paused state (introduced in 9e7a6163034152ecf9a846c151c7dc95cfcb0e62 by rgolan) is not correct as the user-paused VMs should be able to migrate, only when the reason is EIO we should block

Comment 3 Artyom 2014-03-18 17:04:48 UTC
Verified on is35, checked that nullPointerException not appear under engine.log

Comment 12 Artyom 2014-05-12 16:33:20 UTC
Checked on av9
Scenarion: Run Once vm with "Start in pause mode" enabled, wait until vm state is paused, and migrate it, first migration works fine, but if you migrate it second time it failed, because that:
<status>
<state>paused</state>
<detail>none</detail>
</status>
detail none, so from you patch it will no migrate again, so you or need to save reason why vm paused or change if statement and add possibility to migrate paused vm when <detail>none</detail>

Comment 13 Michal Skrivanek 2014-05-15 08:20:22 UTC
well the code change is still not entirely correct. The only reason when we should not migrate is EIO, all other reasons including other errors, like ENOSPACE are ok

Though we shouldn't "lose" the reason after migration anyway

Comment 17 Artyom 2014-07-14 06:11:16 UTC
Verified on rhevm-3.5.0-0.4.master.el6_5.noarch
Migrate paused vm three times from host to host

Comment 18 Yaniv Lavi 2015-01-19 17:26:43 UTC
Description of original problem:

Customer has stated that when he tries to migrate a VM that is paused, it fails and he notices a NullPointerException in the logs

Comment 21 errata-xmlrpc 2015-02-11 17:57:26 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/RHSA-2015-0158.html

Comment 22 Red Hat Bugzilla 2023-09-14 01:57:11 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days