Bug 1657134 - RESTAPI Adding a storage domain with an empty description fails with "Storage Domain description must not exceed 4000 characters"
Summary: RESTAPI Adding a storage domain with an empty description fails with "Storage...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.2.5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ovirt-4.3.0
: ---
Assignee: Ahmad Khiet
QA Contact: Roni
URL:
Whiteboard: VerificationWeek
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-07 08:10 UTC by Ron van der Wees
Modified: 2019-11-27 15:46 UTC (History)
6 users (show)

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.
Clone Of:
Environment:
Last Closed: 2019-05-08 12:39:09 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:
ybenshim: testing_plan_complete+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3743171 0 None None None 2018-12-07 08:24:50 UTC
Red Hat Product Errata RHEA-2019:1085 0 None None None 2019-05-08 12:39:19 UTC

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


Note You need to log in before you can comment on or make changes to this bug.