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

Bug 833536

Summary: ovirt-engine-backend [Import More than Once]: start import more than once and remove vm from the export domain will leave imported vm in image locked
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: medium    
Version: 3.1.0CC: abaron, amureini, dfediuck, dyasny, iheim, lpeer, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---   
Target Release: 3.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: SI8 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:
Attachments:
Description Flags
logs none

Description Dafna Ron 2012-06-19 17:18:23 UTC
Created attachment 593020 [details]
logs

Description of problem:

import a vm more than once and remove the vm from the export domain will fail the import in vdsm with 'Internal block device write failure'
Task will be removed from db but the vm will remain in image lock

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

si6

How reproducible:

100%

Steps to Reproduce:
1. import a vm 
2. import the vm again and after copy starts remove vm from export domain 
3.
  
Actual results:

vdsm will fail with 'Internal block device write failure' and task will be removed from db but vm will remain in image locked

Expected results:

we should rollback on command and remove vm from setup


Additional info:logs

task is bfe240fc-ba18-46e4-a28d-f93833553eb9


2012-06-19 19:58:46,699 ERROR [org.ovirt.engine.core.bll.SPMAsyncTask] (QuartzScheduler_Worker-29) [486b5d70] BaseAsyncTask::LogEndTaskFailure: Task 570319a3-c88b-48ce-b1a8-52d9389100b7 (Parent Command ImportVm, Parameters Type org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters) ended with failure:
-- Result: cleanSuccess
-- Message: VDSGenericException: VDSErrorException: Failed to HSMGetAllTasksStatusesVDS, error = Error while processing volume meta data,
-- Exception: VDSGenericException: VDSErrorException: Failed to HSMGetAllTasksStatusesVDS, error = Error while processing volume meta data

Comment 2 Dafna Ron 2012-07-02 13:00:27 UTC
verified on si8