← Back to team overview

openstack team mailing list archive

Re: How to decommission a compute node

 

nova didn't provide a interface to do it

I delete the host directly from nova db after disable it.


Daniels Cai

http://dnscai.com

在 2013-5-1,2:40,Greg Chavez <greg.chavez@xxxxxxxxx> 写道:

>
> I'm just getting up and running with Folsom on Ubuntu 12.10.  Of two compute nodes I have running, one of them died (some kind of grub corruption).  So my next step is to re-kick it, but I don't know how to remove the compute node from Nova.  I can do this:
>
> root@kcon-gen-01i:~# nova-manage service disable --host=kvm-sn-10i --service=nova-compute
> root@kcon-gen-01i:~# nova-manage service list
> Binary           Host                                 Zone             Status     State Updated_At
> nova-cert        kcon-gen-01i                      nova             enabled    :-)   2013-04-30 18:32:56
> nova-consoleauth kcon-gen-01i                      nova             enabled    :-)   2013-04-30 18:32:56
> nova-scheduler   kcon-gen-01i                      nova             enabled    :-)   2013-04-30 18:32:52
> nova-compute     kvm-sn-10i                        nova             disabled   :-)   2013-04-30 18:32:54
> nova-compute     kvm-sn-14i                        nova             enabled    :-)   2013-04-30 18:32:55
>
> But the host itself is still there!
>
> root@kcon-gen-01i:~# nova-manage host list | sed 's/cs-//'
> host                     	zone
> kcon-gen-01i          	nova
> kvm-sn-10i            	nova
> kvm-sn-14i            	nova
>
> My concern is that when I bring kvm-sn-10i back to life, my controller node won't be able to authorize it.
>
> So what is the proper way to delete/remove/decommission a compute node?
>
> Thanks.
> --
> \*..+.-
> --Greg Chavez
> +//..;};
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp


References