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-engine | Assignee: | Ahmad Khiet <akhiet> |
| Status: | CLOSED ERRATA | QA Contact: | Roni <reliezer> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.2.5 | CC: | mtessun, reliezer, Rhev-m-bugs, sborella, tnisan, ybenshim |
| Target Milestone: | ovirt-4.3.0 | Flags: | 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: | |||
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 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
Verified: 4.3.2-0.1.el7 (and also at: 4.2.8.5-0.1.el7ev) 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 sync2jira sync2jira |
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.