<div dir="ltr"><div>Hi Juan,<br><br></div>Yes, now, its working fine.. Thanks for your help.. :)<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 Thu, Oct 23, 2014 at 7:12 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"><span class="">On 10/23/2014 05:11 AM, Shanil S wrote:<br>
> Hi Juan,<br>
><br>
> Thanks for your reply.<br>
><br>
> We are using the storage glusterfs-3.5.1-1.el6.<br>
><br>
<br>
</span>I can't reproduce this, not even with the same storage that you used.<br>
Can you please try with the simple script that I suggested in the<br>
previous message and report the results?<br>
<span class="im HOEnZb"><br>
><br>
> On Wed, Oct 22, 2014 at 7:26 PM, Juan Hernandez <<a href="mailto:jhernand@redhat.com">jhernand@redhat.com</a><br>
</span><div class="HOEnZb"><div class="h5">> <mailto:<a href="mailto:jhernand@redhat.com">jhernand@redhat.com</a>>> wrote:<br>
><br>
> 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<br>
> 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>
> 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>
> </template><br>
> <disks><br>
> <clone>true</clone><br>
> </disks><br>
> </vm><br>
> " \<br>
> "${url}/vms"<br>
><br>
><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>
</div></div></blockquote></div><br></div>