Bug 857687

Summary: engine: can't import a vm while its template is in image lock state
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engineAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED DUPLICATE QA Contact: Dafna Ron <dron>
Severity: high Docs Contact:
Priority: high    
Version: 3.1.0CC: amureini, dyasny, iheim, lpeer, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---Keywords: Regression
Target Release: 3.3.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-17 08:30:07 UTC 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
engine log none

Description Dafna Ron 2012-09-16 08:16:50 UTC
Created attachment 613383 [details]
engine log

Description of problem:

trying to import a vm while its template is in image lock give a CanDoAction 
Error while executing action: Template's Image is locked (temporarily).

this means that I cannot import a vm to my setup if I am creating a vm using clone (this can sometimes take a long time - depending on the size of the disks and if I am using thin or preallocated copy). 

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

si18

How reproducible:

100%

Steps to Reproduce:
1. import a template to your setup
2. create a vm with clone from the template
3. import a vm based on the template
  
Actual results:

we are failing with CanDoAction because the template image is locked

Expected results:

we should not fail since we are not reading from the template. 

Additional info: engine log