Hi Luis,

The negative running VMs is a bug [1] that we thought was solved.
What version are you running?

To force the host deletion, just edit the onehost script and change

        if host['HOST_SHARE/RUNNING_VMS'].to_i != 0
            puts "Host still has associated VMs, aborting delete."
        else
to

        if false
            puts "Host still has associated VMs, aborting delete."
        else

Best regards,
Carlos.

[1] http://dev.opennebula.org/issues/317
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org <http://www.opennebula.org/> | cmar...@opennebula.org


On Tue, Jun 14, 2011 at 1:02 PM, Luis Rodero-Merino <lrod...@fi.upm.es>wrote:

> Hi,
>
> When trying to run 'onehost delete 0' (0 is the id of the host) we got
> the following message error:
> $ onehost delete 0
> Host still has associated VMs, aborting delete.
>
> Listing the hosts we see:
> $ onehost list
>  ID NAME              CLUSTER  RVM   TCPU   FCPU   ACPU    TMEM    FMEM
> STAT
>   0 blade19           default   -1    200    200    300    7.8G    7.6G
> on
>   1 blade20           default    1    200    199    100    7.8G    7.4G
> on
>
> So the host seems to have '-1' virtual machines, which I guess is
> causing the error. There is no vm running in that host (virsh list
> returns an empty list when run in that host).
>
> Is there any way I can restore the host state so I can safely remove
> it from opennebula hosts list?
>
> Thanks for your help,
> Luis
>
>
> --
> ----------------------------------------
> Dr. Luis Rodero-Merino
> Researcher @ Distributed Systems Laboratory (http://lsd.ls.fi.upm.es),
> Computer Science School, Madrid Polytechnic University.
> Phone: (34)913363681, Fax: (34)913363669
> Address: Campus de Montegancedo, Bloque 2, L 3201
> CP: 28660, Boadilla del Monte (Madrid), Spain
> ----------------------------------------
> _______________________________________________
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to