Bug 1548496 - Wrong error message when creating disks in API
Summary: Wrong error message when creating disks in API
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: future
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.2.3
: ---
Assignee: Ori Liel
QA Contact: Radim Hrazdil
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-23 16:52 UTC by jniederm
Modified: 2018-05-10 06:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-10 06:27:34 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 88790 0 master MERGED Fix Error Message On Create Disk 2018-03-19 08:31:34 UTC
oVirt gerrit 89752 0 ovirt-engine-4.2 MERGED Fix Error Message On Create Disk 2018-04-03 12:50:39 UTC

Description jniederm 2018-02-23 16:52:43 UTC
Description of problem:
Parameter validation of disk creation suggests "Disk [provisionedSize|size, format] required for add". However there doesn't seem to be any "size" attribute of "disk" entity according to both org.ovirt.engine.api.model.Disk and http://ovirt.github.io/ovirt-engine-api-model/master/#types/disk.

Version-Release number of selected component (if applicable):
current master, commit eb4619a16f

How reproducible:
100%

Steps to Reproduce:
1. Fire api request
    POST /ovirt-engine/api/disks/
    Filter: true
    Accept: application/json
    Content-Type: application/json

    {}


Actual results:
Response body:
{
    "detail": "Disk [provisionedSize|size, format] required for add",
    "reason": "Incomplete parameters"
}

Expected results:
The error message suggestion matches actually required attributes.

Additional info:
https://github.com/oVirt/ovirt-engine/search?utf8=%E2%9C%93&q=provisionedSize%7Csize&type=

Comment 1 Radim Hrazdil 2018-04-13 08:10:57 UTC
Verified that Response body reflects the model.

<fault>
    <detail>Disk [provisionedSize, format] required for add</detail>
    <reason>Incomplete parameters</reason>
</fault>

Version 4.3.0-0.0.master.20180411184915

Comment 2 Sandro Bonazzola 2018-05-10 06:27:34 UTC
This bugzilla is included in oVirt 4.2.3 release, published on May 4th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.3 release, it has been closed with a resolution of CURRENT RELEASE.

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


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