Rate This Document
Findability
Accuracy
Completeness
Readability

Adding Compute Nodes to the Cell Database

Perform the following operations on the controller node.

  1. Log in to the OpenStack CLI as the user admin.
    1
    source /etc/keystone/admin-openrc
    
  2. Check the database host.
    1
    openstack compute service list --service nova-compute
    
  3. Discover other compute nodes.
    1
    su -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:

    1
    nova-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:

    1. Open the file.
      1
      vi /etc/nova/nova.conf
      
    2. Press i to enter the insert mode and add the following content under [scheduler]:
      1
      2
      [scheduler]
       discover_hosts_in_cells_interval = 300
      
    3. Press Esc, type :wq!, and press Enter to save the file and exit.