Hi Emmanuel,<div><br></div><div>I'm trying to reproduce the problem but the fact is that the image doesn't go to LOCK state, but rather to USED, if it is attached to a VM. After a correct detachment, the core should put it in READY.</div>

<div><br></div><div>Maybe we have a bug, consisting in the user being able to do an attach of an image in LOCK state. Could you confirm that the image was in READY state prior to the attachment, or was it LOCK?</div><div>

<br></div><div>Best regards,</div><div><br></div><div>-Tino </div><div><br clear="all">--<br>Constantino Vázquez Blanco, MSc <br>Project Engineer<br>OpenNebula - The Open-Source Solution for Data Center Virtualization<br>

<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @tinova79 | @OpenNebula <br>
<br><br><div class="gmail_quote">On Wed, Sep 19, 2012 at 10:12 AM, Emmanuel Mathot <span dir="ltr"><<a href="mailto:emmanuel.mathot@terradue.com" target="_blank">emmanuel.mathot@terradue.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word"><div>I detached the disk from a running VM and everything went fine:</div><div><br></div><div><div><font face="'Courier New'">Tue Sep 18 15:03:31 2012 [VMM][I]: ExitCode: 0</font></div>

<div><font face="'Courier New'">Tue Sep 18 15:03:31 2012 [VMM][I]: Successfully execute virtualization driver operation: detach_disk.</font></div><div><font face="'Courier New'">Tue Sep 18 15:03:48 2012 [VMM][I]: mvds: Moving /var/lib/one/datastores/102/498/disk.2/disk.vmdk to datastore as /var/lib/one/datastores/100/21bcfb7fefe421751db93c917bdf7d70/d</font><span style="font-family:'Courier New'">isk.vmdk</span></div>

<div><font face="'Courier New'">Tue Sep 18 15:03:48 2012 [VMM][I]: ExitCode: 0</font></div><div><font face="'Courier New'">Tue Sep 18 15:03:48 2012 [VMM][I]: Successfully execute transfer manager driver operation: tm_detach.</font></div>

<div><font face="'Courier New'">Tue Sep 18 15:03:48 2012 [VMM][E]: VM Disk Successfully detached.</font></div><div><font face="'Courier New'">Tue Sep 18 15:07:06 2012 [VMM][I]: ExitCode: 0</font></div></div>

<div><br></div><div>Even the disk is in the correct datastore (100), consistent and all. But the image remains in LOCKED state.</div><div>So I think this is as per SAVE_AS and I shut down the machine:</div><div><br></div>

<div><div><font face="'Courier New'">Tue Sep 18 17:56:52 2012 [LCM][I]: New VM state is SHUTDOWN</font></div><div><font face="'Courier New'">Tue Sep 18 17:57:35 2012 [VMM][I]: ExitCode: 0</font></div><div>

<font face="'Courier New'">Tue Sep 18 17:57:35 2012 [VMM][I]: Successfully execute virtualization driver operation: shutdown.</font></div><div><font face="'Courier New'">Tue Sep 18 17:57:35 2012 [VMM][I]: ExitCode: 0</font></div>

<div><font face="'Courier New'">Tue Sep 18 17:57:35 2012 [VMM][I]: Successfully execute network driver operation: clean.</font></div><div><font face="'Courier New'">Tue Sep 18 17:57:35 2012 [LCM][I]: New VM state is EPILOG</font></div>

<div><font face="'Courier New'">Tue Sep 18 17:57:36 2012 [TM][I]: ExitCode: 0</font></div><div><font face="'Courier New'">Tue Sep 18 17:57:36 2012 [TM][I]: ExitCode: 0</font></div><div><font face="'Courier New'">Tue Sep 18 17:57:36 2012 [TM][I]: ExitCode: 0</font></div>

<div><font face="'Courier New'">Tue Sep 18 17:57:36 2012 [TM][I]: ExitCode: 0</font></div><div><font face="'Courier New'">Tue Sep 18 17:57:37 2012 [TM][I]: delete: Deleting /var/lib/one/datastores/102/498</font></div>

<div><font face="'Courier New'">Tue Sep 18 17:57:37 2012 [TM][I]: ExitCode: 0</font></div></div><div><br></div><div>Again, everything goes smoothly but again the image is still LOCKED. No way to unlock it!</div><div>

<br></div><div>Shouldn't the image be READY already after the successful detach?</div><div>Is there something wrong in the procedure or in my config.</div><span class="HOEnZb"><font color="#888888"><div><br></div><br>

<div>
<div style="word-wrap:break-word"><div style="word-wrap:break-word"><div><div><font face="Calibri"><span style="font-family:Helvetica"><font face="Calibri" size="3"><span style="font-size:13px">Emmanuel Mathot</span></font></span><span style="font-family:Helvetica"><span style="font-family:Times"><br>

</span></span><span style="font-family:Helvetica"><span style="font-family:Times"><a href="http://www.terradue.com/" target="_blank"><span style="font-family:Calibri;color:rgb(0,58,161);text-decoration:none">www.terradue.com</span></a></span></span><span style="font-family:Helvetica"><span style="font-family:Times"><br>

</span></span><font face="Times"><img border="0" width="100" alt="Terradue"></font></font></div></div></div></div>
</div>
<br></font></span></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div>