<div dir="ltr"><div>Hi Juan,<br><br>Thanks for your reply.<br><br></div>We are using the storage glusterfs-3.5.1-1.el6.<br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span>-- <br></span>Regards
<br>Shanil
</div></div>
<br><div class="gmail_quote">On Wed, Oct 22, 2014 at 7:26 PM, Juan Hernandez <span dir="ltr"><<a href="mailto:jhernand@redhat.com" target="_blank">jhernand@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 10/22/2014 09:38 AM, Shanil S wrote:<br>
> Hi,<br>
><br>
> I am using the ovirt 3.5 and when i create VM from the template through<br>
> Ovirt web portal, it displays Template is "Clone/Independent"but with<br>
> the same template When i create through REST API, it shows<br>
> "Thin/Dependent"...<br>
><br>
> I Found one email thread (<br>
> <a href="https://www.mail-archive.com/users@ovirt.org/msg21271.html" target="_blank">https://www.mail-archive.com/users@ovirt.org/msg21271.html</a> ) from the<br>
> community for the same issue but even using their method still it<br>
> display the same "Thin/Dependent".<br>
><br>
> I am using the following xml :-<br>
><br>
> <vm><br>
> <name>$name</name><br>
> <cluster><br>
> <name>phase1</name><br>
> </cluster><br>
> <cpu><br>
> <topology cores='$core' sockets='$socket'/><br>
> </cpu><br>
> <memory>$memory</memory><br>
> <template><br>
> <name>$templatetype</name><br>
> </template><br>
> <disks><br>
> <clone>true</clone><br>
> </disks><br>
> </vm><br>
><br>
> I have attached the screen shots , please check it.<br>
><br>
<br>
</div></div>Your XML looks correct. I used it in my 3.5 environment and it works<br>
correctly, creating "Clone/Independent" virtual machines.<br>
<br>
What kind of storage are you using? NFS?<br>
<br>
Can you try the following script and report the results?<br>
<br>
#!/bin/sh -ex<br>
<br>
url="<a href="https://engine.example.com/ovirt-engine/api" target="_blank">https://engine.example.com/ovirt-engine/api</a>";<br>
user="admin@internal"<br>
password="******"<br>
<br>
curl \<br>
--verbose \<br>
--insecure \<br>
--request POST \<br>
--user "${user}:${password}" \<br>
--header "Content-Type: application/xml" \<br>
--header "Accept: application/xml" \<br>
--data "<br>
<vm><br>
<name>myvm</name><br>
<cluster><br>
<name>mycluster</name><br>
</cluster><br>
<template><br>
<name>mytemplate</name><br>
<span class=""> </template><br>
<disks><br>
<clone>true</clone><br>
</disks><br>
</vm><br>
</span>" \<br>
"${url}/vms"<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta<br>
3ºD, 28016 Madrid, Spain<br>
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.<br>
</font></span></blockquote></div><br></div>