Bug 1033932

Summary: VM stays locked, in being migrated state, even after migration failed.
Product: Red Hat Enterprise Virtualization Manager Reporter: Ilanit Stein <istein>
Component: ovirt-engineAssignee: Arik <ahadas>
Status: CLOSED ERRATA QA Contact: Ilanit Stein <istein>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, ahadas, iheim, lbopf, lpeer, mavital, michal.skrivanek, obasan, Rhev-m-bugs, sherold, yeylon
Target Milestone: ---Keywords: Reopened, ZStream
Target Release: 3.3.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: org.ovirt.engine-root-3.3.0-53 Doc Type: Bug Fix
Doc Text:
A regression that caused virtual machines to remain locked after migration fails has been fixed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-09 11:52:03 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: 1044030    
Attachments:
Description Flags
engine log
none
dest host vdsm log
none
src host vdsm log none

Description Ilanit Stein 2013-11-24 13:28:38 UTC
Description of problem:

When there is an error during migration, the vm stays locked. This lock lead to following migration trials failure, on CanDoAction: Cannot ${action} ${type}. VM ${VmName} is being migrated.

service ovirt-engine restart resolve the problem.

Version-Release number of selected component (if applicable):
is24.1

Steps to Reproduce:
1. Create a problem that will fail migration. (I blocked on destination host storage access iptables -A OUTPUT -d <storage server IP address>  -j DROP
2. Migrate VM (migration is expected to start)
3. Migration VM fail (expected)
4. Fix storage access problem done in 1.
5. Try to migrate VM - and fail, though migrate should succeed.

Additional info:
engine.log error:

2013-11-24 14:14:04,911 WARN  [org.ovirt.engine.core.bll.InternalMigrateVmCommand] (pool-5-thread-41) [eebcd8a] CanDoAction of action InternalMigrateVm failed. Reasons:VAR__ACTION__MIGRATE,VAR__TYPE__VM,ACTION_TYPE_FAILED_VM_IS_BEING_MIGRATED,$VmName test-1

Comment 1 Ilanit Stein 2013-11-24 13:39:43 UTC
Created attachment 828309 [details]
engine log

Comment 2 Ilanit Stein 2013-11-24 13:40:41 UTC
Created attachment 828318 [details]
dest host vdsm log

Comment 3 Ilanit Stein 2013-11-24 13:41:36 UTC
Created attachment 828319 [details]
src host vdsm log

Comment 7 Ilanit Stein 2013-12-09 10:09:34 UTC
Verified on is26.

Followed "Steps to Reproduce:" in description.

Comment 8 Itamar Heim 2014-01-21 22:30:33 UTC
Closing - RHEV 3.3 Released

Comment 9 Itamar Heim 2014-01-21 22:30:33 UTC
Closing - RHEV 3.3 Released

Comment 10 Itamar Heim 2014-01-21 22:33:34 UTC
Closing - RHEV 3.3 Released

Comment 11 Michal Skrivanek 2014-06-09 07:45:30 UTC
we need an additional fix in 3.3.4, note it's already fixed in 3.4 and 3.5/master

Comment 14 Ilanit Stein 2014-06-30 14:23:08 UTC
Verified on is37 (3.3.4).

Followed "Steps to Reproduce:" in description.

Comment 16 errata-xmlrpc 2014-07-09 11:52:03 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.

http://rhn.redhat.com/errata/RHBA-2014-0863.html