Bug 854485 - [RESTAPI] Can't create a VM cloned from template
Summary: [RESTAPI] Can't create a VM cloned from template
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-restapi
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Michael Pasternak
QA Contact: Attila Darazs
URL:
Whiteboard: virt
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-05 07:04 UTC by Michael Pasternak
Modified: 2014-01-13 00:37 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-10-03 07:39:25 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Michael Pasternak 2012-09-05 07:04:19 UTC
On 09/04/2012 06:15 PM, Simon Grinberg wrote:
> 13. CLI: Can't create a VM cloned from template, --disks-clone accepts any value and then ignores it.
> 
> [241] create vm --template-name BaseRHEL6 --name myRHELCloned1 --cluster-name Default --disks-clone
> [246] create vm --template-name BaseRHEL6 --name myRHELCloned --cluster-name Default --disks-clone thin
> [247] create vm --template-name BaseRHEL6 --name myRHELCloned4 --cluster-name Default --disks-clone true 
> [248] create vm --template-name BaseRHEL6 --name myRHELCloned5 --cluster-name Default --disks-clone True
> 
> All accepted and ignored, VM is always a snapshot from the template, no problem with doing clone from Template in the GUI.

Comment 2 Michael Pasternak 2012-10-03 07:39:25 UTC
i cannot reproduce this

[oVirt shell (connected)]# add vm --template-name iscsi_desktop_tmpl --cluster-name Default_iscsi --name aaa --disks-clone true

produce correct xml.

<vm>\n
    <name>aaa</name>\n
    <cluster>\n
        <name>Default_iscsi</name>\n
    </cluster>\n
    <template>\n
        <name>iscsi_desktop_tmpl</name>\n
    </template>\n
    <disks>\n
        <clone>true</clone>\n
    </disks>\n
</vm>\n'


Note You need to log in before you can comment on or make changes to this bug.