5.9.2. Evacuating all instances on a host
You can evacuate all instances on a specified Compute node.
Procedure
- Log onto the failed Compute node as an administrator.
Disable the Compute node:
openstack compute service set \ <host> <service> --disable
(overcloud)[stack@director ~]$ openstack compute service set \ <host> <service> --disable
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Replace
<host>
with the name of the Compute node to evacuate the instances from. -
Replace
<service>
with the name of the service to disable, for examplenova-compute
.
-
Replace
Evacuate all instances on a specified Compute node:
nova host-evacuate [--target_host <dest>] [--force] <host>
(overcloud)[stack@director ~]$ nova host-evacuate [--target_host <dest>] [--force] <host>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace
<dest>
with the name of the destination Compute node to evacuate the instances to. If you do not specify the destination, the Compute scheduler selects one for you. You can find possible Compute nodes by using the following command:openstack hypervisor list
(overcloud)[stack@director ~]$ openstack hypervisor list
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Replace
<host>
with the name of the Compute node to evacuate the instances from.