Bug 851099

Summary: RESTAPI: Allow copying template's disks to another storage domain
Product: Red Hat Enterprise Virtualization Manager Reporter: Michael Pasternak <mpastern>
Component: ovirt-engine-restapiAssignee: Michael Pasternak <mpastern>
Status: CLOSED CURRENTRELEASE QA Contact: Jakub Libosvar <jlibosva>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: amureini, bazulay, dconsoli, dyasny, ecohen, hateya, iheim, mkenneth, mpastern, Rhev-m-bugs, sgrinber, ykaul
Target Milestone: ---   
Target Release: 3.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: si21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 20:01:19 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:    
Bug Blocks: 860095    

Description Michael Pasternak 2012-08-23 08:57:43 UTC
Description of problem:

api should allow copying template's disks to another storage domain

Comment 1 Oded Ramraz 2012-08-23 09:09:07 UTC
Isn't it duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=660218 which closed as wontfix ?

Comment 2 Michael Pasternak 2012-08-23 09:21:07 UTC
No, as it for coping disk/s and not entire template.

Comment 3 Miki Kenneth 2012-08-23 11:56:54 UTC
so what will the process to copy template with 3 disk from one domain to another?

Comment 4 Michael Pasternak 2012-08-23 12:19:11 UTC
loop over all template's disks calling /copy routine, of course it make sense
providing copy-at-once interface, and we will, but only if backend will
implemented it, cause such action has to be executed in atomic context,
as no client can/should maintain roll-back on failure.

Comment 6 Michael Pasternak 2012-09-02 07:22:32 UTC
*** Bug 853136 has been marked as a duplicate of this bug. ***

Comment 8 Michael Pasternak 2012-10-09 12:44:18 UTC
implemented as:

POST /api/templates/xxx/disks/yyy/copy

<action>
 <storage_domain id="zzz"/>
</action>

http://gerrit.ovirt.org/8428

Comment 10 Jakub Libosvar 2012-10-24 13:46:09 UTC
Verified rhevm-restapi-3.1.0-22.el6ev.noarch