Bug 980849 - storage-live-migration: Migration tasks hang in finalized state
Summary: storage-live-migration: Migration tasks hang in finalized state
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.2.0
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
: 3.3.0
Assignee: Daniel Erez
QA Contact: Meital Bourvine
URL:
Whiteboard: storage
Depends On: 985043 985735
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-03 10:54 UTC by Jakub Libosvar
Modified: 2016-02-10 19:25 UTC (History)
10 users (show)

Fixed In Version: is2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: Storage
Target Upstream Version:
Embargoed:
scohen: Triaged+


Attachments (Terms of Use)
vdsm, engine logs, db dump (3.57 MB, application/gzip)
2013-07-03 10:54 UTC, Jakub Libosvar
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 15133 0 None None None Never

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


Note You need to log in before you can comment on or make changes to this bug.