Let's suppose we want to remove the compute node cld-blu-05
Step-by-step guide
Let's remove the neutron agent
[root@cld-ctrl-01 ~]# neutron agent-list | grep cld-blu-05 neutron CLI is deprecated and will be removed in the Z cycle. Use openstack CLI instead. | 5110bfc5-fdf9-40b5-8724-311db619c1ee | Open vSwitch agent | cld-np-05.cloud.pd.infn.it | | xxx | True | neutron-openvswitch-agent | [root@cld-ctrl-01 ~]# root@cld-ctrl-01 ~]# neutron agent-delete 5110bfc5-fdf9-40b5-8724-311db619c1ee
Let's remove the compute service
[root@cld-ctrl-01 ~]# openstack compute service list | grep cld-blu-05 | a99494ae-d540-4753-ad9a-8cb71cffe0c4 | nova-compute | cld-blu-05.cloud.pd.infn.it | nova | disabled | down | 2023-10-05T08:40:31.000000 | [root@cld-ctrl-01 ~]# openstack compute service delete a99494ae-d540-4753-ad9a-8cb71cffe0c4 [root@cld-ctrl-01 ~]#
Let's remove the entry in the placement service (if any):
[root@cld-ctrl-01 ~]# openstack resource provider list | grep cld-blu-05 | 47482e82-e71a-40ef-9f2f-c80e8f08ca67 | cld-blu-05.cloud.pd.infn.it | 4573 | 47482e82-e71a-40ef-9f2f-c80e8f08ca78 | None | [root@cld-ctrl-01 ~]# openstack resource provider delete 47482e82-e71a-40ef-9f2f-c80e8f08ca78