<div dir="ltr">Hi,<div><br></div><div>Looks like you executed a onevm delete. The delete operation is tricky, because it's a fire and forget: the cancel command failed but ONE ignored it.</div><div>It's better to use onevm shutdown --hard. It will use the same "cancel" driver command, but waiting for the success/error message from the driver.</div>
<div><br></div><div>Best regards.</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">--<br><div>Carlos MartÃn, MSc<br>Project Engineer</div><div>OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<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></div></div>
<br><br><div class="gmail_quote">On Sun, Jul 6, 2014 at 8:33 AM, Fabian Zimmermann <span dir="ltr"><<a href="mailto:dev.faz@gmail.com" target="_blank">dev.faz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
just wondered, why one of my VMs had a completely broken filesystem.<br>
After some research I found an old instance of my template (I'm using<br>
persistent storage) running on one of my nodes. It looks like OpenNebula<br>
didn't handle the broken auth correctly (caused by NFS-issues) and<br>
marked the storage as free even if the VM is still running, isn't it?<br>
<br>
--<br>
Sat Jun 14 20:20:13 2014 [LCM][I]: New VM state is RUNNING<br>
Sat Jun 28 14:11:07 2014 [LCM][I]: New VM state is UNKNOWN<br>
Sat Jun 28 14:11:08 2014 [LCM][I]: New VM state is CLEANUP.<br>
Sat Jun 28 14:11:08 2014 [VMM][I]: Driver command for 74 cancelled<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: Command execution fail:<br>
/var/tmp/one/vmm/kvm/cancel 'one-74' 'node1' 74 node1<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: Warning: Permanently added<br>
'node1,192.168.20.21' (ECDSA) to the list of known hosts.<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: Permission denied, please try again.<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: Permission denied, please try again.<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: Permission denied (publickey,password).<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: ExitSSHCode: 255<br>
Sat Jun 28 14:11:09 2014 [VMM][E]: Error connecting to node1<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: Failed to execute virtualization<br>
driver operation: cancel.<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: Command execution fail:<br>
/var/tmp/one/vnm/dummy/clean<br>
PFZNPjxJRD43NDwvSUQ+PERFUExPWV9JRD5vbmUtNzQ8L0RFUExPWV9JRD48VEVNUExBVEU+PE5JQz48QlJJREdFPjwhW0NEQVRBW2JyMF1dPjwvQlJJREdFPjxJUD48IVtDREFUQVs4OS4yMzguODkuMzZdXT48L0lQPjxJUDZfTElOSz48IVtDREFUQVtmZTgwOjoyMTY6M2VmZjpmZWI5OjU2ZTBdXT48L0lQNl9MSU5LPjxNQUM+PCFbQ0RBVEFbMDA6MTY6M2U6Yjk6NTY6ZTBdXT48L01BQz48TkVUV09SSz48IVtDREFUQVs4OS4yMzguODkuMzItMjldXT48L05FVFdPUks+PE5FVFdPUktfSUQ+PCFbQ0RBVEFbNF1dPjwvTkVUV09SS19JRD48TkVUV09SS19VTkFNRT48IVtDREFUQVtvbmVhZG1pbl1dPjwvTkVUV09SS19VTkFNRT48TklDX0lEPjwhW0NEQVRBWzBdXT48L05JQ19JRD48VkxBTj48IVtDREFUQVtOT11dPjwvVkxBTj48L05JQz48L1RFTVBMQVRFPjxISVNUT1JZX1JFQ09SRFM+PEhJU1RPUlk+PEhPU1ROQU1FPm5vZGUxPC9IT1NUTkFNRT48L0hJU1RPUlk+PC9ISVNUT1JZX1JFQ09SRFM+PC9WTT4=<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: Warning: Permanently added<br>
'node1,192.168.20.21' (ECDSA) to the list of known hosts.<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: Permission denied, please try again.<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: Permission denied, please try again.<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: Permission denied (publickey,password).<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: ExitSSHCode: 255<br>
Sat Jun 28 14:11:09 2014 [VMM][E]: Error connecting to node1<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: Failed to execute network driver<br>
operation: clean.<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: Successfully execute transfer manager<br>
driver operation: tm_delete.<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: Command execution fail:<br>
/var/lib/one/remotes/tm/shared/delete<br>
node1:/var/lib/one//datastores/0/74 74 0<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: delete: Deleting<br>
/var/lib/one/datastores/0/74<br>
Sat Jun 28 14:11:09 2014 [VMM][E]: delete: Command "[ -e<br>
"/var/lib/one/datastores/0/74" ] || exit 0<br>
Sat Jun 28 14:11:09 2014 [VMM][I]:<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: times=10<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: function="rm -rf<br>
/var/lib/one/datastores/0/74"<br>
Sat Jun 28 14:11:09 2014 [VMM][I]:<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: count=1<br>
Sat Jun 28 14:11:09 2014 [VMM][I]:<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: ret=$($function)<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: error=$?<br>
Sat Jun 28 14:11:09 2014 [VMM][I]:<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: while [ $count -lt $times -a "$error"<br>
!= "0" ]; do<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: sleep 1<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: count=$(( $count + 1 ))<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: ret=$($function)<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: error=$?<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: done<br>
Sat Jun 28 14:11:09 2014 [VMM][I]:<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: [ "x$error" = "x0" ]" failed:<br>
Warning: Permanently added 'node1,192.168.20.21' (ECDSA) to the list of<br>
known hosts.<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: Permission denied, please try again.<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: Permission denied, please try again.<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: Permission denied (publickey,password).<br>
Sat Jun 28 14:11:09 2014 [VMM][E]: Error deleting<br>
/var/lib/one/datastores/0/74<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: ExitCode: 255<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: Failed to execute transfer manager<br>
driver operation: tm_delete.<br>
Sat Jun 28 14:11:09 2014 [VMM][I]: Host successfully cleaned.<br>
Sat Jun 28 14:11:09 2014 [DiM][I]: New VM state is PENDING<br>
Sat Jun 28 14:11:33 2014 [DiM][I]: New VM state is ACTIVE.<br>
Sat Jun 28 14:11:33 2014 [LCM][I]: New VM state is PROLOG.<br>
Sat Jun 28 14:32:57 2014 [LCM][I]: New VM state is CLEANUP.<br>
Sat Jun 28 14:32:57 2014 [DiM][I]: New VM state is DONE<br>
Sat Jun 28 14:32:57 2014 [TM][W]: Ignored: LOG I 74 Driver command for<br>
74 cancelled<br>
Sat Jun 28 14:32:59 2014 [TM][W]: Ignored: TRANSFER SUCCESS 74 -<br>
<br>
--<br>
<br>
Fabian<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>
</blockquote></div><br></div>