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

Bug 1083096

Summary: Format should not be required when adding direct LUN disk
Product: Red Hat Enterprise Virtualization Manager Reporter: Raz Tamir <ratamir>
Component: ovirt-engine-restapiAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Raz Tamir <ratamir>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: amureini, bazulay, derez, gklein, iheim, juan.hernandez, oramraz, rbalakri, Rhev-m-bugs, scohen, tnisan, yeylon
Target Milestone: ---Flags: amureini: Triaged+
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: vt2.2 Doc Type: Bug Fix
Doc Text:
Upon creating a DirectLUN disk, it was mandatory to supply a disk format (COW/RAW). However, disk format is relevant only for images not DirectLUNs disks; hence, removed disk format validation so specifying it in the request is not required now.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-16 19:08:57 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/vdsm logs none

Description Raz Tamir 2014-04-01 13:20:25 UTC
Created attachment 881349 [details]
engine/vdsm logs

Description of problem:
When adding a Direct LUN through REST api:
<disk>
  <name>test_lun</name>
  <alias>test_lun</alias>
  <interface>virtio</interface>
  <bootable>false</bootable>
  <shareable>false</shareable>
  <wipe_after_delete>false</wipe_after_delete>
  <propagate_errors>false</propagate_errors>
  <lun_storage id="360060160f4a030002635d37fd01be311">
    <logical_unit id="360060160f4a030002635d37fd01be311">
      <serial>SDGC_VRAID_CKM00121000438</serial>
      <vendor_id>DGC</vendor_id>
      <product_id>VRAID</product_id>
      <lun_mapping>3</lun_mapping>
      <disk_id>761f8200-f713-424c-9e7d-cd140426c1c4</disk_id>
    </logical_unit>
  </lun_storage>
</disk>

And not passing disk format (COW, RAW), the response is:
<fault>
   <reason>Incomplete parameters</reason>
   <detail>Disk [format] required for add</detail>
</fault>

And it's should not be required because the lun is already exists. 

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


How reproducible:
100%

Steps to Reproduce:
1. Add direct lun like example above
2. 
3.

Actual results:
<fault>
   <reason>Incomplete parameters</reason>
   <detail>Disk [format] required for add</detail>
</fault>

Expected results:
Response code ok: 200

Additional info:

Comment 1 Allon Mureinik 2014-04-02 08:28:07 UTC
Juan, 

Seems specific to this object - should one of my team members take it off your hand?

Comment 2 Juan Hernández 2014-04-02 09:08:00 UTC
(In reply to Allon Mureinik from comment #1)
> Juan, 
> 
> Seems specific to this object - should one of my team members take it off
> your hand?

Yes, please.

Comment 4 Raz Tamir 2014-09-08 08:09:28 UTC
Verified - vt2.2

<disk>
  <name>test_lun</name>
  <alias>test_lun</alias>
  <interface>virtio</interface>
  <bootable>false</bootable>
  <shareable>false</shareable>
  <wipe_after_delete>false</wipe_after_delete>
  <propagate_errors>false</propagate_errors>
  <lun_storage id="36006016012823000d967a2d139dce311">
    <type>iscsi</type>
    <logical_unit id="36006016012823000d967a2d139dce311">
    <port>3260</port>
    <target>iqn.1992-04.com.emc:cx.ckm00121000438.a6</target>
    <address>10.35.160.104</address>
      <serial>SDGC_VRAID_CKM00121000438</serial>
      <vendor_id>DGC</vendor_id>
      <product_id>VRAID</product_id>
      <lun_mapping>3</lun_mapping>
    
      <disk_id>761f8200-f713-424c-9e7d-cd140426c1c4</disk_id>
    </logical_unit>
  </lun_storage>
</disk>

Comment 5 Tal Nisan 2014-11-26 11:25:53 UTC
Please supply doc text

Comment 6 Allon Mureinik 2015-02-16 19:08:57 UTC
RHEV-M 3.5.0 has been released, closing this bug.