Re: [one-users] can't delete host

2011-03-08 Thread Zaina AFOULKI
Hi Khoa,

You just have to edit the file $ONE_LOCATION/bin/onehost. Search for the
line 
if host['HOST_SHARE/RUNNING_VMS'].to_i != 0 
and replace it by this one : 
if false: 

For me $ONE_LOCATION is /srv/cloud/one

hope it helps (I'm a newbie as well ;) )

--
Zaina

On Mon, 7 Mar 2011 22:46:01 +0700, Khoa Nguyen vankhoa...@gmail.com
wrote:
 Hi Zaina
 I have already check this post. But I don't see how to remove host.
 He just talk about
 
 As indicated by Javier Fontan, the problem has been solved by changing
the
 line 330 of onehost from
 if host['HOST_SHARE/RUNNING_VMS'].to_i != 0
 to if false
 
 You can tell me more about it. I'm newbie. Thank for advance.
 
 On Mon, Mar 7, 2011 at 3:06 PM, Zaina AFOULKI
 zaina.afou...@ensi-bourges.fr
 wrote:
 
 Hi Khoa,

 I had the same problem a while back, check this post [1]
 hope it helps.

 [1]


http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2011-February/003951.html

 --
 Zaina

 On 03/07/2011 05:31 AM, Khoa Nguyen wrote:
  Hi all.
  I have a problem when I want to delete host.
  It display  some information. I see  RVM = -1 field , I don't know
why
  Help me?
 
  oneadmin1@oneadmin-desktop:~$ onehost list
ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEM   
FMEM
  STAT
 0 172.29.70.137 default   -12001992101.9G   
 1.8G
  on
  oneadmin1@oneadmin-desktop:~$ onehost delete 0
  Host still has associated VMs, aborting delete.
 
 
  thank for advance.
 
 
 
 
  ___
  Users mailing list
  Users@lists.opennebula.org
  http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


 --
 Zaina

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] can't delete host

2011-03-07 Thread Zaina AFOULKI
Hi Khoa,

I had the same problem a while back, check this post [1]
hope it helps.

[1]
http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2011-February/003951.html

--
Zaina

On 03/07/2011 05:31 AM, Khoa Nguyen wrote:
 Hi all.
 I have a problem when I want to delete host.
 It display  some information. I see  RVM = -1 field , I don't know why
 Help me?
 
 oneadmin1@oneadmin-desktop:~$ onehost list
   ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEMFMEM
 STAT
0 172.29.70.137 default   -12001992101.9G1.8G
 on
 oneadmin1@oneadmin-desktop:~$ onehost delete 0
 Host still has associated VMs, aborting delete.
 
 
 thank for advance.
 
 
 
 
 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


-- 
Zaina
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] can't delete host

2011-03-07 Thread Carlos Martín Sánchez
Hi all,
This problem was identified [1] and fixed for next releases.

Meanwhile, you can use the hack Zaina pointed to. It is safe to delete the
host with the negative counter, the DB consistency won't be affected.

Regards.

[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 7 March 2011 09:06, Zaina AFOULKI zaina.afou...@ensi-bourges.fr wrote:

 Hi Khoa,

 I had the same problem a while back, check this post [1]
 hope it helps.

 [1]

 http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2011-February/003951.html

 --
 Zaina

 On 03/07/2011 05:31 AM, Khoa Nguyen wrote:
  Hi all.
  I have a problem when I want to delete host.
  It display  some information. I see  RVM = -1 field , I don't know why
  Help me?
 
  oneadmin1@oneadmin-desktop:~$ onehost list
ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEMFMEM
  STAT
 0 172.29.70.137 default   -12001992101.9G1.8G
  on
  oneadmin1@oneadmin-desktop:~$ onehost delete 0
  Host still has associated VMs, aborting delete.
 
 
  thank for advance.
 
 
 
 
  ___
  Users mailing list
  Users@lists.opennebula.org
  http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


 --
 Zaina
 ___
 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


Re: [one-users] can't delete host

2011-03-07 Thread Khoa Nguyen
Hi Zaina
I have already check this post. But I don't see how to remove host.
He just talk about

As indicated by Javier Fontan, the problem has been solved by changing the
line 330 of onehost from
if host['HOST_SHARE/RUNNING_VMS'].to_i != 0
to if false

You can tell me more about it. I'm newbie. Thank for advance.

On Mon, Mar 7, 2011 at 3:06 PM, Zaina AFOULKI zaina.afou...@ensi-bourges.fr
 wrote:

 Hi Khoa,

 I had the same problem a while back, check this post [1]
 hope it helps.

 [1]

 http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2011-February/003951.html

 --
 Zaina

 On 03/07/2011 05:31 AM, Khoa Nguyen wrote:
  Hi all.
  I have a problem when I want to delete host.
  It display  some information. I see  RVM = -1 field , I don't know why
  Help me?
 
  oneadmin1@oneadmin-desktop:~$ onehost list
ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEMFMEM
  STAT
 0 172.29.70.137 default   -12001992101.9G1.8G
  on
  oneadmin1@oneadmin-desktop:~$ onehost delete 0
  Host still has associated VMs, aborting delete.
 
 
  thank for advance.
 
 
 
 
  ___
  Users mailing list
  Users@lists.opennebula.org
  http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


 --
 Zaina

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org