Bug 1172130

Summary: Disks may remain in status LOCKED instead of ILLEGAL
Product: Red Hat Enterprise Virtualization Manager Reporter: Liron Aravot <laravot>
Component: ovirt-engineAssignee: Liron Aravot <laravot>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: acanan, ecohen, gklein, iheim, lpeer, lsurette, rbalakri, Rhev-m-bugs, scohen, tnisan, yeylon
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: org.ovirt.engine-root-3.5.0-25 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-16 19:09:46 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:
Bug Depends On:    
Bug Blocks: 1164308, 1164311    

Description Liron Aravot 2014-12-09 13:05:57 UTC
Description of problem:
When disk is created, if it's not created successfully we could either mark it as ILLEGAL or to remove the created disk.
In the OVF stores creation scenario, the disks that fail to be created should be left in ILLEGAL status, currently they remain LOCKED instead.

How reproducible:
Always

Steps to Reproduce:
1. Create a NFS Storage Domain and attach it to a datacenter (without acitivating it)
2. prevent access to it's images dir (mv it)
3. activate it
4. Wait for OvfDataUpdater to run (you can modify the wait time through the OvfUpdateIntervalInMinutes config value)
.

Actual results:
ovf stores creation on that domain will fail, disks will remain locked

Expected results:
disks should remain in illegal status.

Additional info:

Comment 1 Elad 2014-12-16 14:38:05 UTC
OVF_STORE disks, created for a domain which cannot be reached during their creation, remain in status Illegal.

 imagestatus |  disk_description   
-------------+---------------------
             | Hosted Engine Image
           1 | OVF_STORE
           1 | OVF_STORE
           1 | OVF_STORE
           1 | OVF_STORE
           1 | 
           1 | OVF_STORE
           1 | OVF_STORE
           1 | 
           1 | 
           1 | 
           4 | OVF_STORE
           4 | OVF_STORE

Verified using rhev 3.5 vt13.3
rhevm-3.5.0-0.25.el6ev.noarch

Comment 2 Allon Mureinik 2015-02-16 19:09:46 UTC
RHEV-M 3.5.0 has been released, closing this bug.