@@ -58,3 +58,38 @@ openstack --os-cloud admin compute service list --long
5858| b77c5aeb-91c0-4972-84ea-7c8bd5a49fdd | nova-compute | testbed-node-0 | nova | disabled | up | 2023-12-14T14:20:24.000000 | None | False |
5959+--------------------------------------+----------------+-----------------+----------+----------+-------+----------------------------+----------------------------------------------------+-------------+
6060```
61+
62+ ## Remove a compute service
63+
64+ 1 . Live migrate all instances running on the compute node
65+ with the help of the [ OpenStack Resource Manager] ( ./day2-operations/resource-manager#live-migration )
66+
67+ 2 . Evacuate all instances on the compute node
68+ with the help of the [ OpenStack Resource Manager] ( ./day2-operations/resource-manager#evacutation )
69+
70+ 3 . Ensure that no more instances are running on the compute node
71+
72+ ```
73+ ps ax | grep qemu
74+ ```
75+
76+ 4 . Stop all OpenStack Nova services on the compute node
77+
78+ ```
79+ systemctl stop kolla-nova_ssh-container.service
80+ systemctl stop kolla-nova_libvirt-container.service
81+ systemctl stop kolla-nova_compute-container.service
82+
83+ 5. Delete the compute service
84+
85+ ```
86+ $ openstack --os-cloud admin compute service list
87+ +--------------------------------------+----------------+---------+----------+----------+-------+----------------------------+
88+ | ID | Binary | Host | Zone | Status | State | Updated At |
89+ +--------------------------------------+----------------+---------+----------+----------+-------+----------------------------+
90+ | f161d739-21de-4cb0-a5d3-d21cff652697 | nova-scheduler | manager | internal | enabled | up | 2023-12-21T11:52:59.000000 |
91+ | 646d16db-acd9-486c-bd16-8fe2c13bf198 | nova-conductor | manager | internal | enabled | up | 2023-12-21T11:53:04.000000 |
92+ | 90345eb5-cf2f-47ef-becc-758ee36fb132 | nova-compute | manager | nova | disabled | down | 2023-12-21T11:53:00.000000 |
93+ +--------------------------------------+----------------+---------+----------+----------+-------+----------------------------+
94+ $ openstack --os-cloud admin compute service delete 90345eb5-cf2f-47ef-becc-758ee36fb132
95+ ```
0 commit comments