Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 980849

Summary: storage-live-migration: Migration tasks hang in finalized state
Product: Red Hat Enterprise Virtualization Manager Reporter: Jakub Libosvar <jlibosva>
Component: ovirt-engineAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Meital Bourvine <mbourvin>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, amureini, iheim, jkt, lnatapov, lpeer, nlevinki, Rhev-m-bugs, scohen, yeylon
Target Milestone: ---Keywords: TestBlocker
Target Release: 3.3.0Flags: scohen: Triaged+
Hardware: All   
OS: Linux   
Whiteboard: storage
Fixed In Version: is2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 985043, 985735    
Bug Blocks:    
Attachments:
Description Flags
vdsm, engine logs, db dump none

Description Jakub Libosvar 2013-07-03 10:54:35 UTC
Created attachment 768195 [details]
vdsm, engine logs, db dump

Description of problem:
When migrating disk of running vm, after migration is completed, task still hangs on vdsm side. They are not in DB.

End of the task is
2013-07-03 10:41:10,716 INFO  [org.ovirt.engine.core.bll.lsm.LiveMigrateDiskCommand] (pool-4-thread-48) [4acbc6dc] Ending command successfully: org.ovirt.engine.core.bll.lsm.LiveMigrateDiskCommand
2013-07-03 10:41:10,716 ERROR [org.ovirt.engine.core.bll.CommandsFactory] (pool-4-thread-45) [145eb464] CommandsFactory [parameter: VdcActionParametersBase]: Failed to get type information using reflection for Action: LiveMigrateDisk: java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedConstructorAccessor144.newInstance(Unknown Source) [:1.7.0_11-icedtea]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_11-icedtea]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [rt.jar:1.7.0_11-icedtea]
    at org.ovirt.engine.core.bll.CommandsFactory.CreateCommand(CommandsFactory.java:45) [engine-bll.jar:]
    at org.ovirt.engine.core.bll.Backend.endAction(Backend.java:377) [engine-bll.jar:]
    at sun.reflect.GeneratedMethodAccessor409.invoke(Unknown Source) [:1.7.0_11-icedtea]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt

Version-Release number of selected component (if applicable):
rhevm-3.2.1-0.31.el6ev.noarch
vdsm-4.10.2-23.0.el6ev.x86_64

How reproducible:
30%

Steps to Reproduce:
1. Migrate a vm (I have attached hotplug disk, which is inactived, then disk of vm (one that was NOT used by hotplug) migrated)
2. Wait until migration completes
3. Check running tasks on host

Actual results:
s[root@slot-5 ~]# vdsClient 0 getAllTasksStatuses 
{'status': {'message': 'OK', 'code': 0}, 'allTasksStatus': {'52cc2412-2c93-462e-a854-a3098b4fe9ab': {'message': '1 jobs completed successfully', 'code': 0, 'taskID': '52cc2412-2c93-462e-a854-a3098b4fe9ab', 'taskResult': 'success', 'taskState': 'finished'}, '60dfdf54-0794-40a0-95ad-4358f94a452d': {'message': 'Task is initializing', 'code': 0, 'taskID': '60dfdf54-0794-40a0-95ad-4358f94a452d', 'taskResult': '', 'taskState': 'running'}, 'b6993f9b-bde5-4afd-aa2b-1a2c7803775c': {'message': '1 jobs completed successfully', 'code': 0, 'taskID': 'b6993f9b-bde5-4afd-aa2b-1a2c7803775c', 'taskResult': 'success', 'taskState': 'finished'}}}


Expected results:
{'status': {'message': 'OK', 'code': 0}, 'allTasksStatus': {}}


Additional info:
It breaks the cleanup because DC cannot be moved to maintenance while there are running tasks
Block storage live migration sanity

Comment 4 Leonid Natapov 2013-10-03 11:53:52 UTC
is2. task is cleaned after disk migration.

Comment 5 Itamar Heim 2014-01-21 22:24:50 UTC
Closing - RHEV 3.3 Released

Comment 6 Itamar Heim 2014-01-21 22:25:33 UTC
Closing - RHEV 3.3 Released

Comment 7 Itamar Heim 2014-01-21 22:29:10 UTC
Closing - RHEV 3.3 Released