Adding Compute Nodes to the Cell Database
Perform the following operations on the controller node.
- Log in to the OpenStack CLI as the user admin.
1source /etc/keystone/admin-openrc
- Check the database host.
1openstack compute service list --service nova-compute
- Discover other compute nodes.
1su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova
If new compute nodes are discovered, run the following command on the controller node to register the new compute nodes:
1nova-manage cell_v2 discover_hosts
Or, set a proper interval for the controller node to periodically discover new compute nodes. The procedure is as follows:
- Open the file.
1vi /etc/nova/nova.conf - Press i to enter the insert mode and add the following content under [scheduler]:
1 2
[scheduler] discover_hosts_in_cells_interval = 300
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
Parent topic: Installing, Configuring, and Verifying Nova