<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">&lt;<a href="mailto:jhernand@redhat.com" target="_blank">jhernand@redhat.com</a>&gt;</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>
&gt;  Hi,<br>
&gt;<br>
&gt; I am using the ovirt 3.5 and when i create VM from the template through<br>
&gt; Ovirt web portal, it displays Template is &quot;Clone/Independent&quot;but with<br>
&gt; the same template When i create through REST API, it shows<br>
&gt; &quot;Thin/Dependent&quot;...<br>
&gt;<br>
&gt; I Found one email thread (<br>
&gt; <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>
&gt; community for the same issue but even using their method still it<br>
&gt; display the same &quot;Thin/Dependent&quot;.<br>
&gt;<br>
&gt; I am using the following xml :-<br>
&gt;<br>
&gt; &lt;vm&gt;<br>
&gt;  &lt;name&gt;$name&lt;/name&gt;<br>
&gt;    &lt;cluster&gt;<br>
&gt;      &lt;name&gt;phase1&lt;/name&gt;<br>
&gt;    &lt;/cluster&gt;<br>
&gt;    &lt;cpu&gt;<br>
&gt;         &lt;topology cores=&#39;$core&#39; sockets=&#39;$socket&#39;/&gt;<br>
&gt;       &lt;/cpu&gt;<br>
&gt;    &lt;memory&gt;$memory&lt;/memory&gt;<br>
&gt;    &lt;template&gt;<br>
&gt;      &lt;name&gt;$templatetype&lt;/name&gt;<br>
&gt;    &lt;/template&gt;<br>
&gt;   &lt;disks&gt;<br>
&gt;       &lt;clone&gt;true&lt;/clone&gt;<br>
&gt;    &lt;/disks&gt;<br>
&gt; &lt;/vm&gt;<br>
&gt;<br>
&gt; I have attached the screen shots , please check it.<br>
&gt;<br>
<br>
</div></div>Your XML looks correct. I used it in my 3.5 environment and it works<br>
correctly, creating &quot;Clone/Independent&quot; 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=&quot;<a href="https://engine.example.com/ovirt-engine/api" target="_blank">https://engine.example.com/ovirt-engine/api</a>&quot;;<br>
user=&quot;admin@internal&quot;<br>
password=&quot;******&quot;<br>
<br>
curl \<br>
--verbose \<br>
--insecure \<br>
--request POST \<br>
--user &quot;${user}:${password}&quot; \<br>
--header &quot;Content-Type: application/xml&quot; \<br>
--header &quot;Accept: application/xml&quot; \<br>
--data &quot;<br>
&lt;vm&gt;<br>
  &lt;name&gt;myvm&lt;/name&gt;<br>
  &lt;cluster&gt;<br>
    &lt;name&gt;mycluster&lt;/name&gt;<br>
  &lt;/cluster&gt;<br>
  &lt;template&gt;<br>
    &lt;name&gt;mytemplate&lt;/name&gt;<br>
<span class="">  &lt;/template&gt;<br>
  &lt;disks&gt;<br>
    &lt;clone&gt;true&lt;/clone&gt;<br>
  &lt;/disks&gt;<br>
&lt;/vm&gt;<br>
</span>&quot; \<br>
&quot;${url}/vms&quot;<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>