Bug 1147874

Summary: Internal Server Error (500) when copying a LUN disk in the REST API
Product: [oVirt] ovirt-engine Reporter: Idan Shaby <ishaby>
Component: RestAPIAssignee: Vered Volansky <vered>
Status: CLOSED CURRENTRELEASE QA Contact: Carlos Mestre González <cmestreg>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: amureini, bugs, ecohen, gklein, juan.hernandez, lsurette, pstehlik, rbalakri, yeylon, ylavi
Target Milestone: ovirt-3.6.0-rcFlags: rule-engine: ovirt-3.6.0+
ylavi: planning_ack+
rule-engine: devel_ack+
rule-engine: testing_ack+
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: 3.6.0-12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1147870 Environment:
Last Closed: 2015-11-04 11:20:39 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: 1147860    

Description Idan Shaby 2014-09-30 08:50:22 UTC
+++ This bug was initially created as a clone of Bug #1147870 +++

+++ This bug was initially created as a clone of Bug #1147861 +++

Description of problem:
When trying to copy a LUN disk in the REST API, a "500 Internal Server Error" is returned.

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

How reproducible:
100%

Steps to Reproduce:
1. Create an external disk.
1. From the REST API, run a POST request with the next pattern:

URL
http://localhost:8080/api/disks/<DISK_ID>/copy

BODY:
<action>
    <storage_domain id="<ANY_STORAGE_DOMAIN_ID>"/>
</action>


Actual results:
A "500 Internal Server Error" is returned.

Expected results:
An informative error message should be returned, or maybe we should even remove the copy option for LUN disks in the REST API.

Additional info:

Comment 1 Carlos Mestre González 2015-09-22 11:08:54 UTC
<fault>
<reason>Operation Failed</reason>
<detail>
[Cannot copy Virtual Machine Disk. Action is unsupported for the specified disk type (LUN).]
</detail>

3.6.0-13

Comment 2 Sandro Bonazzola 2015-11-04 11:20:39 UTC
oVirt 3.6.0 has been released on November 4th, 2015 and should fix this issue.
If problems still persist, please open a new BZ and reference this one.