Bug #1010

Removing Machine in CLEANING state

Added by Max Mikheev over 9 years ago. Updated over 9 years ago.

Status:ClosedStart date:11/25/2011
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution:invalid Pull request:
Affected Versions:OpenNebula 3.2

Description

Hi. Another problem here:

Machine freeze in CLEANUP state. I cannot do anything with it.

I terminate one machine by "SHUTDOWN" and "DELETE".
last lines in the vm.log:

Fri Nov 25 09:38:20 2011 [LCM][I]: New VM state is SHUTDOWN
Fri Nov 25 09:39:10 2011 [VMM][I]: ExitCode: 0
Fri Nov 25 09:39:44 2011 [LCM][I]: New VM state is EPILOG
Fri Nov 25 09:40:41 2011 [TM][W]: Ignored: LOG I 22 ls: cannot access /var/lib/one/OpenNebula/var/22/disk.0: No such file or directory

Disk is present and I can remove it manually:
ls la:
oneadmin@s2-8core:~/OpenNebula/var/22$ ls -la /var/lib/one/OpenNebula/var/22/disk.0
-rw-rw--w
2 oneadmin cloud 18975883264 2011-11-25 09:39 /var/lib/one/OpenNebula/var/22/disk.0

Epilog file content:
oneadmin@s2-8core:~/OpenNebula/var/22$ cat transfer.0.epilog
MV s2-8core:/var/lib/one/OpenNebula/var//22/images/disk.0 s2-8core:/var/lib/one/OpenNebula/var/22/disk.0
DELETE s2-8core:/var/lib/one/OpenNebula/var//22/images
oneadmin@s2-8core:~/OpenNebula/var/22$ ls
deployment.0 disk.0 transfer.0.epilog transfer.0.prolog vm.log
oneadmin@s2-8core:~/OpenNebula/var/22$

I can manually remove disk.0 file but it is not helpful.

How can I remove records for this VM instance?

It will be great to have possibility to remove manually records for VM in such cases.

History

#1 Updated by Ruben S. Montero over 9 years ago

  • Status changed from New to Closed
  • Resolution set to invalid

Hi,

onevm delete removes the entry from the onevm list. This will left the VM in a DONE state for accounting purposes. When you delete the VM the associated directories (in the cluster hosts) are cleaned up. Note that directories in the front-end are kept as they are potentially useful in case of failures or for logs analysis...

I'll close this one, and we may open a feature request one if any missing functionality is needed. Or we may reopen this if onevm delete is not working for you.

Thanks for your feedback

Ruben

Also available in: Atom PDF