1.3 KiB
1.3 KiB
Rollback a compute node
You can rollback a compute node to its original state, for example, the state before it failed.
To rollback a compute node:
SSH to one of the controller nodes.
Put the node into maintenance mode to prevent scheduling of new VMs by disabling the nova-compute service:
$ nova service-disable <host> nova-compute
Power off all the VMs running on the node to be re-installed:
$ nova stop [vm-uuid]
Alternatively, live migrate the VMs:
Get a list of all VMs running on a host:
$ nova list --host <host> --all-tenants
Manually live migrate instances to other hosts:
$ nova live-migration <instance>
Reinstall the node as described in
reinstall-node
.Enable the nova-compute service:
$ nova service-enable <host> nova-compute
If you did not perform the live migration, start the VMs that are in the
SHUTOFF
status:$ nova start [vm-uuid]
access_shell
- Planned Maintenance