Bug 830561

Summary: ovirt-engine-backend: after import more than once vm failed because of vdsm restart we rolled back but failed to unlock the vm
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engineAssignee: Gilad Chaplik <gchaplik>
Status: CLOSED CURRENTRELEASE QA Contact: Dafna Ron <dron>
Severity: medium Docs Contact:
Priority: high    
Version: 3.1.0CC: acathrow, dfediuck, dyasny, iheim, lpeer, Rhev-m-bugs, yeylon, ykaul, yzaslavs
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: infra virt
Fixed In Version: si8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 19:58:36 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
logs none

Description Dafna Ron 2012-06-10 16:30:03 UTC
Description of problem:

import more than once a vm failed because of vdsm restart
backend rolled back on task but failed to unlock the vm:

2012-06-07 19:16:08,186 ERROR [org.ovirt.engine.core.bll.VmHandler] (pool-10-thread-48) [1d397b11] Trying to unlock vm A in status Down - not moving to down!


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

si4

How reproducible:

100%

Steps to Reproduce:
1. import vm more than once 
2. restart vdsm 
3.
  
Actual results:

vm is stuck in image lock without disks

Expected results:

we should be able to unlock vm status

Additional info: backend and vdsm logs attached


2012-06-07 19:16:08,150 INFO  [org.ovirt.engine.core.bll.EntityAsyncTask] (pool-10-thread-48) [1d397b11] EntityAsyncTask::EndCommandAction [within thread]context: Attempting to 
EndAction ImportVm
2012-06-07 19:16:08,178 ERROR [org.ovirt.engine.core.bll.ImportVmCommand] (pool-10-thread-48) [1d397b11] Ending command with failure: org.ovirt.engine.core.bll.ImportVmCommand
2012-06-07 19:16:08,186 ERROR [org.ovirt.engine.core.bll.VmHandler] (pool-10-thread-48) [1d397b11] Trying to unlock vm A in status Down - not moving to down!
2012-06-07 19:16:08,189 ERROR [org.ovirt.engine.core.bll.SPMAsyncTask] (QuartzScheduler_Worker-57) [1d397b11] BaseAsyncTask::LogEndTaskFailure: Task 63229ad4-929e-40d9-a3b6-b998
edbb76e9 (Parent Command ImportVm, Parameters Type org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters) ended with failure:
-- Result: cleanSuccess
-- Message: VDSGenericException: VDSTaskResultNotSuccessException: TaskState contained successful return code, but a non-success result ('cleanSuccess').,
-- Exception: VDSGenericException: VDSTaskResultNotSuccessException: TaskState contained successful return code, but a non-success result ('cleanSuccess').
2012-06-07 19:16:08,193 INFO  [org.ovirt.engine.core.bll.EntityAsyncTask] (QuartzScheduler_Worker-57) [1d397b11] EntityAsyncTask::EndActionIfNecessary: All tasks of entity 06511
288-36e7-4293-a7de-1cf47dbb422a has ended -> executing EndAction

Comment 1 Dafna Ron 2012-06-10 16:32:18 UTC
Created attachment 590764 [details]
logs

Comment 3 Dafna Ron 2012-07-01 15:50:09 UTC
verified on si8 - vm was removed once we recovered