Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 12. Rebooting Nodes
You may need to reboot the nodes in the undercloud and overcloud. Use the following procedures to understand how to reboot different node types. Be aware of the following notes:
- If rebooting all nodes in one role, it is advisable to reboot each node individually. If you reboot all nodes in a role simultaneously, you might encounter service downtime during the reboot operation.
- If rebooting all nodes in your OpenStack Platform environment, reboot the nodes in the following sequential order:
Recommended Node Reboot Order
- Reboot the undercloud node
- Reboot Controller and other composable nodes
- Reboot standalone Ceph MON nodes
- Reboot Ceph Storage nodes
- Reboot Compute nodes
12.1. Rebooting the undercloud node Link kopierenLink in die Zwischenablage kopiert!
Complete the following steps to reboot the undercloud node.
Procedure
-
Log into the undercloud as the
stack
user. Reboot the undercloud:
sudo reboot
$ sudo reboot
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Wait until the node boots.
12.2. Rebooting controller and composable nodes Link kopierenLink in die Zwischenablage kopiert!
Complete the following steps to reboot controller nodes and standalone nodes based on composable roles, excluding Compute nodes and Ceph Storage nodes.
Procedure
Select a node to reboot. Log into the node and stop the cluster before rebooting:
sudo pcs cluster stop
[heat-admin@overcloud-controller-0 ~]$ sudo pcs cluster stop
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Reboot the node:
sudo reboot
[heat-admin@overcloud-controller-0 ~]$ sudo reboot
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Wait until the node boots.
Re-enable the cluster for the node:
sudo pcs cluster start
[heat-admin@overcloud-controller-0 ~]$ sudo pcs cluster start
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Log into the node and check the services:
If the node uses Pacemaker services, check the node has rejoined the cluster:
sudo pcs status
[heat-admin@overcloud-controller-0 ~]$ sudo pcs status
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If the node uses Systemd services, check all services are enabled:
sudo systemctl status
[heat-admin@overcloud-controller-0 ~]$ sudo systemctl status
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If the node uses containerized services, check all containers on the node are active:
sudo docker ps
[heat-admin@overcloud-controller-0 ~]$ sudo docker ps
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
12.3. Rebooting standalone Ceph MON nodes Link kopierenLink in die Zwischenablage kopiert!
Procedure
- Log into a Ceph MON node.
Reboot the node:
sudo reboot
$ sudo reboot
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Wait until the node boots and rejoins the MON cluster.
Repeat these steps for each MON node in the cluster.
12.4. Rebooting a Ceph Storage (OSD) cluster Link kopierenLink in die Zwischenablage kopiert!
Complete the following steps to reboot a cluster of Ceph Storage (OSD) nodes.
Procedure
Log into a Ceph MON or Controller node and disable Ceph Storage cluster rebalancing temporarily:
sudo ceph osd set noout sudo ceph osd set norebalance
$ sudo ceph osd set noout $ sudo ceph osd set norebalance
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Select the first Ceph Storage node to reboot and log into the node.
Reboot the node:
sudo reboot
$ sudo reboot
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Wait until the node boots.
Log into the node and check the cluster status:
sudo ceph -s
$ sudo ceph -s
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Check the
pgmap
reports allpgs
as normal (active+clean
).- Log out of the node, reboot the next node, and check its status. Repeat this process until you have rebooted all Ceph storage nodes.
When complete, log into a Ceph MON or Controller node and enable cluster rebalancing again:
sudo ceph osd unset noout sudo ceph osd unset norebalance
$ sudo ceph osd unset noout $ sudo ceph osd unset norebalance
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Perform a final status check to verify the cluster reports
HEALTH_OK
:sudo ceph status
$ sudo ceph status
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
12.5. Rebooting compute nodes Link kopierenLink in die Zwischenablage kopiert!
Complete the following steps to reboot Compute nodes. To ensure minimal downtime of instances in your OpenStack Platform environment, this procedure also includes instructions about migrating instances from the Compute node you want to reboot. This involves the following workflow:
- Select and disable the Compute node you want to reboot so that it does not provision new instances.
- Migrate the instances to another Compute node.
- Reboot the empty Compute node.
- Enable the empty Compute node.
Procedure
-
Log into the undercloud as the
stack
user. List all Compute nodes and their UUIDs:
source ~/stackrc
$ source ~/stackrc (undercloud) $ openstack server list --name compute
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Identify the UUID of the Compute node you want to reboot.
From the undercloud, select a Compute Node. Disable the node:
source ~/overcloudrc
$ source ~/overcloudrc (overcloud) $ openstack compute service list (overcloud) $ openstack compute service set [hostname] nova-compute --disable
Copy to Clipboard Copied! Toggle word wrap Toggle overflow List all instances on the Compute node:
(overcloud) $ openstack server list --host [hostname] --all-projects
(overcloud) $ openstack server list --host [hostname] --all-projects
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Use one of the following commands to migrate your instances:
Migrate the instance to a different host:
(overcloud) $ openstack server migrate [instance-id] --live [target-host]--wait
(overcloud) $ openstack server migrate [instance-id] --live [target-host]--wait
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Let
nova-scheduler
automatically select the target host:(overcloud) $ nova live-migration [instance-id]
(overcloud) $ nova live-migration [instance-id]
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Live migrate all instances at once:
nova host-evacuate-live [hostname]
$ nova host-evacuate-live [hostname]
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteThe
nova
command might cause some deprecation warnings, which are safe to ignore.
- Wait until migration completes.
Confirm the migration was successful:
(overcloud) $ openstack server list --host [hostname] --all-projects
(overcloud) $ openstack server list --host [hostname] --all-projects
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Continue migrating instances until none remain on the chosen Compute Node.
Log into the Compute Node. Reboot the node:
sudo reboot
[heat-admin@overcloud-compute-0 ~]$ sudo reboot
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Wait until the node boots.
Enable the Compute Node again:
source ~/overcloudrc
$ source ~/overcloudrc (overcloud) $ openstack compute service set [hostname] nova-compute --enable
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Check whether the Compute node is enabled:
(overcloud) $ openstack compute service list
(overcloud) $ openstack compute service list
Copy to Clipboard Copied! Toggle word wrap Toggle overflow