[one-users] Error in 'onehost delete'
Carlos Martín Sánchez
cmartin at opennebula.org
Tue Jun 14 05:13:41 PDT 2011
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/> | cmartin at opennebula.org
On Tue, Jun 14, 2011 at 1:02 PM, Luis Rodero-Merino <lrodero at 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 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/20110614/c279dace/attachment-0003.htm>
More information about the Users
mailing list