Bug 1552548 - Webadmin- trying to extend a disk with MaxBlockDiskSize (8192G) with a value of '0' wrong error appears ' Cannot create disk more than ${max}_disk_size GB'
Summary: Webadmin- trying to extend a disk with MaxBlockDiskSize (8192G) with a value ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.2.2
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ovirt-4.3.0
: 4.3.0
Assignee: Ahmad Khiet
QA Contact: Elad
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-07 10:18 UTC by Avihai
Modified: 2019-02-13 07:46 UTC (History)
2 users (show)

Fixed In Version: ovirt-engine-4.3.0_alpha
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-13 07:46:49 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.3+


Attachments (Terms of Use)
Print screens of the issue (120.34 KB, image/png)
2018-03-07 10:18 UTC, Avihai
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 94204 0 master MERGED webadmin: fix extend disk error message 2018-09-12 09:47:35 UTC

Description Avihai 2018-03-07 10:18:35 UTC
Created attachment 1405224 [details]
Print screens of the issue

Description of problem:
Via Webadmin try to extend a disk with MaxBlockDiskSize (8192G) with a value of '0' -> wrong error message appears:
' Cannot create disk more than ${max}_disk_size GB'

${max}_disk_size GB should be thee MaxBlockDiskSize value (currently 8192GB), please change it so it will match it.

Version-Release number of selected component (if applicable):
4.2.2.2-0.1.el7

How reproducible:
100%

Steps to Reproduce:
1. Create a disk(block SD) with MaxBlockDiskSize (8192G) & attach it to a VM1
2. Via VM1 window edit the disk & try to extend it by '0' 

Actual results:
a wrong error message appears (${max}_disk_size should not be there):
' Cannot create disk more than ${max}_disk_size GB'

Expected results:
the expected error message:
'Cannot create disk more than 8192 GB'

Additional info:
print screen attahced.

Comment 1 Elad 2018-12-26 11:56:28 UTC
- In Webadmin, inserting a disk size larger than 8192G is blocked with a highlighted disk size field "this field must contain an integer number less than or equal to 0" (the disk size was 8192). 
- Via REST, the response body for update disk provisioned_size property is:
<fault>
<detail>[Cannot create disk more than 8192 GB]</detail>
<reason>Operation Failed</reason>
</fault>


The PUT request is:
URL = https://engine_addr/ovirt-engine/api/vms/%vm_id%/diskattachments/%disk_id%

<disk_attachment>
  <disk>
    <provisioned_size>8996093022208</provisioned_size>
  </disk>
</disk_attachment>


=====================
Used:
ovirt-engine-4.3.0-0.6.alpha2.el7.noarch

Comment 2 Sandro Bonazzola 2019-02-13 07:46:49 UTC
This bugzilla is included in oVirt 4.3.0 release, published on February 4th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.0 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.