Remove a compute node

Supprimer un compute

ssh hn003.pkgdata.net
sudo su
systemctl stop nova-compute.service
systemctl stop neutron-l3-agent.service
systemctl stop neutron-metadata-agent.service
systemctl stop neutron-metering-agent.service
systemctl stop neutron-openvswitch-agent.service
systemctl stop neutron-dhcp-agent.service
systemctl stop ceilometer-polling.service
ssh -a hn002.pkgdata.net
sudo su
git clone https://opendev.org/openstack/openstack-ansible-ops /opt/openstack-ansible-ops
cd /opt/openstack-ansible-ops/ansible_tools/playbooks
openstack-ansible remove_compute_node.yml -e host_to_be_removed="hn003.pkgdata.net"

vi /home/pkgdata/openstack_configs/openstack_user_config.yml
Enlever le compute

/opt/openstack-ansible/scripts/inventory-manage.py -r compute1