It seems to me that there is too much information on one page, I have divided it into several pages for easier reading, as was already done on the pages: https://docs.openstack.org/openstack-ansible/latest/admin/openstack-firstrun.html https://docs.openstack.org/openstack-ansible/latest/admin/openstack-firstrun.html https://docs.openstack.org/openstack-ansible/latest/admin/maintenance-tasks.html Change-Id: Ic58e0c764f21c377b72e7229d1c053864b601785
1.7 KiB
Remove a compute host
The OpenStack-Ansible Operator Tooling repository contains a playbook for removing a compute host from an OpenStack-Ansible environment. To remove a compute host, follow the below procedure.
Note
This guide describes how to remove a compute node from an OpenStack-Ansible environment completely. Perform these steps with caution, as the compute node will no longer be in service after the steps have been completed. This guide assumes that all data and instances have been properly migrated.
Disable all OpenStack services running on the compute node. This can include, but is not limited to, the
nova-computeservice and the neutron agent service:Note
Ensure this step is performed first.
# Run these commands on the compute node to be removed # systemctl stop nova-compute # systemctl stop neutron-openvswitch-agentClone the
openstack-ansible-opsrepository to your deployment host:$ git clone https://opendev.org/openstack/openstack-ansible-ops \ /opt/openstack-ansible-opsRun the
remove_compute_node.ymlAnsible playbook with thehost_to_be_removeduser variable set:$ cd /opt/openstack-ansible-ops/ansible_tools/playbooks openstack-ansible remove_compute_node.yml \ -e host_to_be_removed="<name-of-compute-host>"After the playbook completes, remove the compute node from the OpenStack-Ansible configuration file in
/etc/openstack_deploy/openstack_user_config.yml.