VMs stuck in CLEANUP state, cannot delete them

Hello,

I am using OpenNebula 3.8 and I have some VMs stuck in CLEANUP state. I tried to delete these VMs, but though OpenNebula did not complain that the VMs are not in the correct state for that command, the VMs have not been deleted.

What can I do now to delete these VMs?

Regards
Christoph

Hi,

In 3.8 you don’t have many options. I’d suggest to upgrade to 4.12. In recent versions you could retry the delete command, or use the recover command…
If that’s not an option, the only thing you can do is edit the database manually to set the DONE (6) state for those VMs.

Regards

Hello,

I am a very beginner in mysql commands. I managed to connect to the mysql server and to switch to the opennebula database, can you please tell me which commands I must enter now to delete VMs with IDs 2874 and 2875?

Regards
Christoph