Bug 1114431

Summary: OVF_STORE disks shows wrong Error msg on remove
Product: [Retired] oVirt Reporter: Gal Amado <gamado>
Component: ovirt-engine-coreAssignee: Liron Aravot <laravot>
Status: CLOSED CURRENTRELEASE QA Contact: Gal Amado <gamado>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5CC: amureini, berrange, bugs, gklein, gscrivan, iheim, kgoldbla, rbalakri, yeylon
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: ovirt-3.5.0_rc1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-17 12:38:32 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 file none

Description Gal Amado 2014-06-30 05:20:57 UTC
Created attachment 913251 [details]
engine log file

Description of problem:
When trying to remove a OVF_STORE disk:

from the web-GUI, the operation fails, and "removing disk" window is running forever.

From rest API, we get an irrelevant error msg.   


Version-Release number of selected component (if applicable):oVirt Engine Version: 3.5.0-0.0.master.20140605145557.git3ddd2de.el6

How reproducible: happens all the time 


Steps to Reproduce:

web GUI :
1.basic configuration of Datacenter , clusture , storage , disks and a vm.
2.from disk tab chose one of the "OVF_STORE" disk .
3.right click -> click remove.
4. the window run forever.

REST API:
1.basic configuration of Datacenter , clusture , storage , disks and a vm.
2.send a DELETE command to /api/disks/{diskID}.

Actual results:
[Cannot remove Virtual Machine Disk. The operation can be performed only for disks that are in OK status.]</detail>

when sending GET command to /api/disks/{diskID} we get "ok" status:
<status>
<state>ok</state>
</status>


Expected results:
Some other meaningful msg, since the status is OK

Additional info:

Comment 1 Liron Aravot 2014-07-21 14:24:40 UTC
*** Bug 1115354 has been marked as a duplicate of this bug. ***

Comment 2 Gal Amado 2014-08-07 13:18:14 UTC
oVirt Engine Version: 3.5.0-0.0.master.20140804172041.git23b558e.el6

Got a proper error msg,

from GUI : 
Error while executing action: Cannot remove Virtual Machine Disk. The operation can be performed only for OVF disks that are in ILLEGAL status.

From rest :
<fault>
<reason>Operation Failed</reason>
<detail>[Cannot remove Virtual Machine Disk. The operation can be performed only for OVF disks that are in ILLEGAL status.]</detail>
</fault>

Comment 3 Sandro Bonazzola 2014-10-17 12:38:32 UTC
oVirt 3.5 has been released and should include the fix for this issue.