Juan Hernandez has submitted this change and it was merged.
Change subject: restapi: Import VM - support volume type/format
......................................................................
restapi: Import VM - support volume type/format
Adding support for changing the allocation policy of disks imported from
an export domain as part of importing a VM.
The caller can specify for each disks the format and allocation policy.
Note that "collapse_snapshots" should be true.
For example, to force one of the disks to be preallocated:
POST
/storagedomains/{storagedomain:id}/vms/{vm:id}/import;collapse_snapshots=true
<action>
<storage_domain>
<name>mydata</name>
</storage_domain>
<cluster>
<name>mycluster</name>
</cluster>
<vm>
<disks>
<disk id="792f8ca8-3932-429b-9660-006ba144bc72">
<format>raw</format>
<sparse>false</sparse>
</disk>
</disks>
</vm>
</action>
Change-Id: I0cd0dc95bfb938d66e8e1ba1ad56116e4dc173f3
Bug-Url:
https://bugzilla.redhat.com/998607
Signed-off-by: Fred Rolland <frolland(a)redhat.com>
---
M backend/manager/modules/restapi/README.md
M
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendStorageDomainVmResource.java
M
backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendStorageDomainVmResourceTest.java
3 files changed, 104 insertions(+), 2 deletions(-)
Approvals:
Juan Hernandez: Looks good to me, approved
Jenkins CI: Passed CI tests
Freddy Rolland: Verified
--
To view, visit
https://gerrit.ovirt.org/48017
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0cd0dc95bfb938d66e8e1ba1ad56116e4dc173f3
Gerrit-PatchSet: 6
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Freddy Rolland <frolland(a)redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini(a)redhat.com>
Gerrit-Reviewer: Daniel Erez <derez(a)redhat.com>
Gerrit-Reviewer: Fred Rolland <frolland(a)redhat.com>
Gerrit-Reviewer: Freddy Rolland <frolland(a)redhat.com>
Gerrit-Reviewer: Idan Shaby <ishaby(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Liron Aravot <laravot(a)redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipchuk(a)redhat.com>
Gerrit-Reviewer: Ori Liel <oliel(a)redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org