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.1 KiB
1.1 KiB
Shutting down the Compute host
If a Compute host needs to be shut down:
Disable the
nova-computebinary:# nova service-disable --reason "Hardware replacement" HOSTNAME nova-computeList all running instances on the Compute host:
# nova list --all-t --host <compute_name> | awk '/ACTIVE/ {print $2}' > \ /home/user/running_instances && for i in `cat /home/user/running_instances`; do nova stop $i ; doneUse SSH to connect to the Compute host.
Confirm all instances are down:
# virsh list --allShut down the Compute host:
# shutdown -h nowOnce the Compute host comes back online, confirm everything is in working order and start the instances on the host. For example:
# cat /home/user/running_instances # do nova start $instance doneEnable the
nova-computeservice in the environment:# nova service-enable HOSTNAME nova-compute