Bug 1416346
| Summary: | REST: add disk request doesn't support initial size, causing disk uploads using the API to be limited to 1GB | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Tal Nisan <tnisan> |
| Component: | ovirt-engine | Assignee: | Liron Aravot <laravot> |
| Status: | CLOSED ERRATA | QA Contact: | Natalie Gavrielov <ngavrilo> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.0.3 | CC: | bugs, gklein, laravot, lsurette, ngavrilo, ratamir, rbalakri, Rhev-m-bugs, srevivo, tnisan, trichard, ykaul, ylavi |
| Target Milestone: | ovirt-4.0.7 | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: |
This release adds support for specifying the initial size through the API when creating a thin provisioned disk on block storage.
|
Story Points: | --- |
| Clone Of: | 1400296 | Environment: | |
| Last Closed: | 2017-03-16 15:32:23 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: | |||
| Bug Depends On: | 1400296 | ||
| Bug Blocks: | 1337077 | ||
|
Description
Tal Nisan
2017-01-25 10:38:18 UTC
Scenario performed:
1. Create a thin-provision image on a storage domain - but with initial_size = disk size in bytes.
2. Upload a qcow2 (0.10) disk using python sdk.
this is the body for the rest api disk creation:
<disk>
<alias>upload-qcow</alias>
<format>cow</format>
<sparse>true</sparse>
<initial_size>1923940352</initial_size>
<provisioned_size>8589934592</provisioned_size>
<storage_domains>
<storage_domain>
<name>iscsi_0</name>
</storage_domain>
</storage_domains>
</disk>
Verified using:
ovirt-engine-4.0.7-0.1.el7ev.noarch
ovirt-imageio-common-0.3.0-0.el7ev.noarch
ovirt-imageio-proxy-0.4.0-0.el7ev.noarch
vdsm-4.18.22-1.el7ev.x86_64
ovirt-imageio-daemon-0.4.0-0.el7ev.noarch
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://rhn.redhat.com/errata/RHBA-2017-0542.html |