Re: [one-users] Error in 'onehost delete'

2011-06-14 Thread Carlos Martín Sánchez
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  | cmar...@opennebula.org


On Tue, Jun 14, 2011 at 1:02 PM, Luis Rodero-Merino 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   ACPUTMEMFMEM
> STAT
>   0 blade19   default   -12002003007.8G7.6G
> on
>   1 blade20   default12001991007.8G7.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


[one-users] Error in 'onehost delete'

2011-06-14 Thread Luis Rodero-Merino
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   ACPUTMEMFMEM STAT
   0 blade19   default   -12002003007.8G7.6G   on
   1 blade20   default12001991007.8G7.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