<div>Hi Rolandas,</div><div><br></div><div>I've tried to reproduce the bug following your steps, but there must be something else that is triggering it.</div><div><br></div><div>These are the exact commands I have executed, could you please check if I missed something?</div>
<div><br></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">$ oneuser list</font></div><div><font face="courier new, monospace"> ID NAME GROUP AUTH VMS MEMORY CPU</font></div>
<div><font face="courier new, monospace"> 0 oneadmin oneadmin core - - -</font></div><div><font face="courier new, monospace"> 1 serveradmin oneadmin server_c - - -</font></div>
<div><font face="courier new, monospace"> 2 a oneadmin core - - -</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">$ oneimage list</font></div>
<div><font face="courier new, monospace"> ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS</font></div><div><font face="courier new, monospace"> 0 a oneadmin os default 1M OS No used 1</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">$ onevm list</font></div><div><font face="courier new, monospace"> ID USER GROUP NAME STAT UCPU UMEM HOST TIME</font></div>
<div><font face="courier new, monospace"> 0 a oneadmin one-0 runn 0 0K localhost 0d 00h00</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">$ onevm saveas 0 0 "img_saveas"</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">$ onevm cancel 0</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">$ oneimage chown img_saveas oneadmin</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">$ oneimage list</font></div><div><font face="courier new, monospace"> ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS</font></div>
<div><font face="courier new, monospace"> 0 a oneadmin os default 1M OS No rdy 0</font></div><div><font face="courier new, monospace"> 1 oneadmin oneadmin img_saveas default 1M OS No rdy 0</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">$ oneimage delete img_saveas</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">$ onetemplate instantiate 0</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">$ onevm list</font></div><div><font face="courier new, monospace"> ID USER GROUP NAME STAT UCPU UMEM HOST TIME</font></div>
<div><font face="courier new, monospace"> 1 a oneadmin one-1 runn 0 0K localhost 0d 00h00</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">$ onevm saveas 1 0 "img_saveas"</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">$ onevm cancel 1</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">$ oneimage list</font></div>
<div><font face="courier new, monospace"> ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS</font></div><div><font face="courier new, monospace"> 0 a oneadmin os default 1M OS No rdy 0</font></div>
<div><font face="courier new, monospace"> 2 a oneadmin img_saveas default 1M OS No rdy 0</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">$ oneimage chown img_saveas oneadmin</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">$ oneimage list</font></div><div><font face="courier new, monospace"> ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS</font></div>
<div><font face="courier new, monospace"> 0 a oneadmin os default 1M OS No rdy 0</font></div><div><font face="courier new, monospace"> 2 oneadmin oneadmin img_saveas default 1M OS No rdy 0</font></div>
<div><br></div><div><br></div><div><br></div><div>And the templates:</div><div><br></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">$ onetemplate show 0</font></div>
<div><font face="courier new, monospace">TEMPLATE 0 INFORMATION </font></div><div><font face="courier new, monospace">ID : 0 </font></div>
<div><font face="courier new, monospace">NAME : template-0 </font></div><div><font face="courier new, monospace">USER : a </font></div><div><font face="courier new, monospace">GROUP : oneadmin </font></div>
<div><font face="courier new, monospace">REGISTER TIME : 01/22 15:44:24 </font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">PERMISSIONS </font></div>
<div><font face="courier new, monospace">OWNER : um- </font></div><div><font face="courier new, monospace">GROUP : --- </font></div><div><font face="courier new, monospace">OTHER : --- </font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">TEMPLATE CONTENTS </font></div><div><font face="courier new, monospace">CPU="1"</font></div>
<div><font face="courier new, monospace">DISK=[</font></div><div><font face="courier new, monospace"> IMAGE="os" ]</font></div><div><font face="courier new, monospace">MEMORY="128"</font></div><div><font face="courier new, monospace">TEMPLATE_ID="0"</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">$ oneimage show 0</font></div><div><font face="courier new, monospace">IMAGE 0 INFORMATION </font></div>
<div><font face="courier new, monospace">ID : 0 </font></div><div><font face="courier new, monospace">NAME : os </font></div><div><font face="courier new, monospace">USER : a </font></div>
<div><font face="courier new, monospace">GROUP : oneadmin </font></div><div><font face="courier new, monospace">DATASTORE : default </font></div><div><font face="courier new, monospace">TYPE : OS </font></div>
<div><font face="courier new, monospace">REGISTER TIME : 01/22 15:44:12 </font></div><div><font face="courier new, monospace">PERSISTENT : No </font></div><div><font face="courier new, monospace">SOURCE : /var/lib/one/datastores/1/4be57b711606b657765d2c677fdf1767</font></div>
<div><font face="courier new, monospace">PATH : /etc/hosts </font></div><div><font face="courier new, monospace">SIZE : 1M </font></div><div><font face="courier new, monospace">STATE : rdy </font></div>
<div><font face="courier new, monospace">RUNNING_VMS : 0 </font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">PERMISSIONS </font></div>
<div><font face="courier new, monospace">OWNER : um- </font></div><div><font face="courier new, monospace">GROUP : --- </font></div><div><font face="courier new, monospace">OTHER : --- </font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">IMAGE TEMPLATE </font></div><div><font face="courier new, monospace">DEV_PREFIX="hd"</font></div>
<div><br></div><div>Regards</div><div>--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
</div>
<br><br><div class="gmail_quote">On Tue, Jan 22, 2013 at 11:09 AM, Rolandas Naujikas <span dir="ltr"><<a href="mailto:rolandas.naujikas@mif.vu.lt" target="_blank">rolandas.naujikas@mif.vu.lt</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 2013-01-22 09:58, Rolandas Naujikas wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I see that bug <a href="http://dev.opennebula.org/issues/1087" target="_blank">http://dev.opennebula.org/<u></u>issues/1087</a> reappeared in<br>
3.8.3. The sequence to repeat is:<br>
1) create an image as save from VM (as an user in oneadmin group);<br>
2) change owner to oneadmin;<br>
3) delete image;<br>
4) repeat (1) and (2) will fail saying "[ImageChown] USER [0] already<br>
owns IMAGE [N] with NAME XXX", where N - is id of already deleted image.<br>
Restart of one solves temporary problem.<br>
<br>
Also I saw several times that images were in use by nonexistent VM.<br>
onedb fsck will complain and correct that.<br>
</blockquote>
<br></div>
At least I can confirm it with cancel action on VM.<div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Regards, Rolandas Naujikas<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><br>
</div></div></blockquote></div><br>