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

Bug 1657134

Summary: RESTAPI Adding a storage domain with an empty description fails with "Storage Domain description must not exceed 4000 characters"
Product: Red Hat Enterprise Virtualization Manager Reporter: Ron van der Wees <rvdwees>
Component: ovirt-engineAssignee: Ahmad Khiet <akhiet>
Status: CLOSED ERRATA QA Contact: Roni <reliezer>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2.5CC: mtessun, reliezer, Rhev-m-bugs, sborella, tnisan, ybenshim
Target Milestone: ovirt-4.3.0Flags: ybenshim: testing_plan_complete+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: VerificationWeek
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
This release allows a storage domain to be created without a description while using the REST API.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-08 12:39:09 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:

Description Ron van der Wees 2018-12-07 08:10:15 UTC
Description of problem:
Sending an empty description field when creating a new storage domain results
in an error about the description field being too long!


Version-Release number of selected component (if applicable):
ovirt-engine-restapi-4.2.5.2-0.1.el7ev.noarch


How reproducible:
Always


Steps to Reproduce:
'/usr/bin/curl' -k --header 'Accept: application/json' --request 'POST' --header 'Content-Type: application/xml' --data '
<storage_domain>
  <name>Newe Storage Domain</name>
  <comment>60002ac0000000000000000a00021e55</comment>
  <description></description>
  <discard_after_delete>true</discard_after_delete>
  <type>data</type>
  <host>
    <name>hostname</name>
  </host>
  <storage>
    <type>fcp</type>
    <volume_group>
      <logical_units>
        <logical_unit id="360002ac0000000000000000a00021e55"/>
      </logical_units>
    </volume_group>
  </storage>
</storage_domain>
' --negotiate -u ':' 'https://rhvm.example.com/ovirt-engine/api/storagedomains'  2>/dev/null



Actual results:
Output of the curl command:
$VAR1 = {
          'detail' => '[Storage Domain description must not exceed 4000 characters, Attribute: privateStorageDomain.description]',
          'reason' => 'Operation Failed'
        };



Expected results:
Storage domain to be created without description


Additional info:
n.a.

Comment 1 Ahmad Khiet 2019-01-01 07:46:58 UTC
The bug has been fixed in the following patch : https://gerrit.ovirt.org/#/c/93971/

from release 4.2.7+ 

moving to modified for QE to verify

Comment 2 RHV bug bot 2019-01-15 23:35:34 UTC
WARN: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:

[Found non-acked flags: '{'rhevm-4.3-ga': '?'}', ]

For more info please contact: rhv-devops: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:

[Found non-acked flags: '{'rhevm-4.3-ga': '?'}', ]

For more info please contact: rhv-devops

Comment 4 Roni 2019-03-07 13:22:57 UTC
Verified: 4.3.2-0.1.el7 
(and also at: 4.2.8.5-0.1.el7ev)

Comment 6 errata-xmlrpc 2019-05-08 12:39:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:1085

Comment 7 Daniel Gur 2019-08-28 13:13:03 UTC
sync2jira

Comment 8 Daniel Gur 2019-08-28 13:17:15 UTC
sync2jira