<div dir="ltr">Hi Hyunwoo<div><br></div><div>Yes totally right, this is in fact a bug that has been solved in recent versions of OpenNebula... In this situation, the delete operation will leave the persistent images in the error state so the consistency of the image can be checked. OpenNebula will not try to move the image back to the datastore. oneimage enable will activate the image again.</div>


<div><br></div><div><br></div><div>Cheers</div><div><br></div><div>Ruben</div><div><br></div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 1, 2013 at 6:43 PM, Hyun Woo Kim <span dir="ltr"><<a href="mailto:hyunwoo@fnal.gov" target="_blank">hyunwoo@fnal.gov</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Hi,</div>
<div><br>
</div>
<div>Let me describe an error situation that I experienced.</div>
<div><br>
</div>
<div>We are using ONe3.2.</div>
<div><br>
</div>
<div>I launch a VM off a persistent image but it fails at an very early stage (for example tm_ln.sh)</div>
<div>so I end up having a VM in "failed" state.</div>
<div><br>
</div>
<div>Next, when I try to delete it via "onevm delete", I have error messages that say</div>
<div> Message received: LOG E 4 mv: Command "mv -f $ONE_LOCATION/var/56/disk.0 $IRP/images/837d6675a4846f2df76ebbf69d174229" failed.</div>
<div> Message received: LOG E 4 mv: mv: cannot stat `$ONE_LOCATION/var/56/disk.0': No such file or directory</div>
<div><br>
</div>
<div>These error messages make sense because, the launching process failed before doing anything, </div>
<div>thus all of the followings</div>
<div> - $VM_DIR/images/disk.0</div>
<div> - $ONE_LOCATION/var/vmid/disk.0</div>
<div>must be absent.</div>
<div><br>
</div>
<div>I think what is wrong is, </div>
<div>"onevm delete" on a failed vm from persistent image trying to move disk.0 to the repository.</div>
<div>In other words, "delete" might not be a right operation in this "failed" state for persistent image.</div>
<div>I could not find a right one at least from current list of possible operations for "onevm" command</div>
<div><br>
</div>
<div>What will be the right one?</div>
<div><br>
</div>
<div>Thank you very much.</div>
<div><br>
</div>
<div>Hyunwoo KIM</div>
<div>FermiCloud Project.</div>
<div><br>
</div>
<div><br>
</div>
</div>

<br>_______________________________________________<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/listinfo.cgi/users-opennebula.org<br clear="all"><div><br></div>-- <br>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<br>

OpenNebula - The Open Source Solution for Data Center Virtualization<br></a><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula

</blockquote></div></div></div>