[one-users] VM forced deletion? [VM hanging in CLEANUP state]

Carlos Martín Sánchez cmartin at opennebula.org
Thu Apr 19 07:11:03 PDT 2012


Hi,

When you modify the DB, there are two important things to be aware of:

- OpenNebula must be stopped first, otherwise the cached objects will be
flushed again to the DB and your changes will be ignored
- All the data is stored as xml inside the body column. Some attributes are
copied to another column, to perform searches. These attributes, in your
case the VM state and lcm_state, must be updated in both places.

Aside from that, the delete action should have worked. Do you have several
VMs with the same name? You may have come across this bug [1].

Regards

[1]
http://lists.opennebula.org/pipermail/users-opennebula.org/2012-April/008522.html
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org | cmartin at opennebula.org |
@OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>



On Tue, Apr 17, 2012 at 11:32 AM, biro lehel <lehel.biro at yahoo.com> wrote:

> Okay, so far, for my hung VM, I have set the "default" values for the
> deleted VM's in the vm_pool table of one.db (more precisely, I have set:
> last_poll=0, state=6, lcm_state=0), and also, in the leases table, I have
> freed the respective IP address (<used>=0, <VID>=-1).
>
> However, I'm looking for a confirmation if this is okay, or it can cause
> inconsistencies. Is anything else need to be done?
>
> Thanks,
> Lehel.
>
> --- On *Tue, 4/17/12, biro lehel <lehel.biro at yahoo.com>* wrote:
>
>
> From: biro lehel <lehel.biro at yahoo.com>
> Subject: [one-users] VM forced deletion? [VM hanging in CLEANUP state]
> To: users at lists.opennebula.org
> Date: Tuesday, April 17, 2012, 11:09 AM
>
>
> Dear all,
>
> I have a VM that apparently got hung in the CLEANUP state (now for quite a
> while). The problem is, I would need it's fixed IP to be used for another
> VM. "Delete" action from Sunstone has no effect on the hung VM, it
> disappears from the VM-list but it reappears at the next refresh.
>
> Is there any way to manually force the VM's deletion (take it out from the
> DB)?
>
> Thank you,
> Lehel.
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org<http://mc/compose?to=Users@lists.opennebula.org>
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120419/ebc44c9a/attachment-0003.htm>


More information about the Users mailing list