openstack-ansible/doc/source/developer-docs/ops-remove-computehost.rst
Joshua Hesketh 11c6d21aef Replace github with git.o.o
Change-Id: Ied2a2c5f89ce20c8efd4e7d5c3d7952f3f40d083
2016-11-03 12:09:05 +11:00

1.7 KiB

Home OpenStack-Ansible Installation Guide

Removing a compute host

The openstack-ansible-ops repository contains a playbook for removing a compute host from an OpenStack-Ansible (OSA) environment. To remove a compute host, follow the below procedure.

Note

This guide describes how to remove a compute node from an OSA 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.

  1. Disable all OpenStack services running on the compute node. This can include, but is not limited to, the nova-compute service and the neutron agent service.

    Note

    Ensure this step is performed first

# Run these commands on the compute node to be removed
# stop nova-compute
# stop neutron-linuxbridge-agent
  1. Clone the openstack-ansible-ops repository to your deployment host:
$ git clone https://git.openstack.org/openstack/openstack-ansible-ops \
  /opt/openstack-ansible-ops
  1. Run the remove_compute_node.yml Ansible playbook with the node_to_be_removed user variable set:
$ cd /opt/openstack-ansible-ops/ansible_tools/playbooks
openstack-ansible remove_compute_node.yml \
-e node_to_be_removed="<name-of-compute-host>"
  1. After the playbook completes, remove the compute node from the OpenStack-Ansible configuration file in /etc/openstack_deploy/openstack_user_config.yml.