Change in ovirt-engine[ovirt-engine-3.6]: restapi: Import VM - support volume type/format

tnisan at redhat.com tnisan at redhat.com
Mon Nov 16 13:28:15 UTC 2015


Tal Nisan 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

  <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>
    <snapshots>
     <collapse_snapshots>true</collapse_snapshots>
    </snapshots>
   </vm>
  </action>

Change-Id: I0cd0dc95bfb938d66e8e1ba1ad56116e4dc173f3
Bug-Url: https://bugzilla.redhat.com/998607
Signed-off-by: Fred Rolland <frolland at redhat.com>
---
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
2 files changed, 70 insertions(+), 2 deletions(-)

Approvals:
  Juan Hernandez: Looks good to me, approved
  Jenkins CI: Passed CI tests
  Allon Mureinik: Looks good to me, but someone else must approve
  Freddy Rolland: Verified



-- 
To view, visit https://gerrit.ovirt.org/48488
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I0cd0dc95bfb938d66e8e1ba1ad56116e4dc173f3
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.6
Gerrit-Owner: Freddy Rolland <frolland at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Freddy Rolland <frolland at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list