Delete a compute node¶
This section describes how to delete an OpenStack compute node from your MOS deployment.
To delete a compute node:
The OpenStack compute node can be collocated with other components, for example, Ceph. Refer to the removal steps of collocated components when planning maintenance.
Disable the compute service to prevent spawning of new instances. In the
openstack compute service set --disable <cmp_host_name> nova-compute --disable-reason "Compute is going to be removed."
Migrate all workloads from the node. For more information, follow Nova official documentation: Migrate instances.
Ensure that there are no pods running on the node to delete by draining the node as instructed in the Kubernetes official documentation: Safely drain node.
Delete the compute service using OpenStack API. In the
openstack compute service delete <service_id>
openstack compute service list --host <cmp_host_name>
Delete the Neutron agent service. In the
openstack network agent delete <agent_id>
openstack network agent list --host <cmp_host_name>
Delete the node through the Mirantis Container Cloud web UI as described in Mirantis Container Cloud Operations Guide: Delete a machine.