Rate This Document
Findability
Accuracy
Completeness
Readability

Installing and Configuring Nova (Compute Node)

Perform the following operations on all compute nodes (x86-compute and arm-compute).

  1. Install components.
    1
    yum -y install openstack-nova-compute
    
  2. Modify the /etc/nova/nova.conf file.
    1. Open the file.
      vi /etc/nova/nova.conf
    2. Press i to enter the insert mode and perform the following configurations.
      1. Enable the compute and metadata APIs.
        1
        2
        3
        4
        5
        6
        [DEFAULT] 
        enabled_apis = osapi_compute,metadata 
        transport_url = rabbit://openstack:PASSWORD@controller 
        my_ip = 192.168.100.121 
        use_neutron = true 
        firewall_driver = nova.virt.firewall.NoopFirewallDriver
        

        Replace my_ip with the OpenStack management IP address of the compute node in Table 3.

        Replace PASSWORD with the OpenStack password 123456 described in Installing RabbitMQ.

      2. Configure Identity service access.
         1
         2
         3
         4
         5
         6
         7
         8
         9
        10
        11
        12
        [api] 
        auth_strategy = keystone
        
        [keystone_authtoken] 
        auth_url = http://controller:5000/v3 
        memcached_servers = controller:11211 
        auth_type = password 
        project_domain_name = Default 
        user_domain_name = Default 
        project_name = service 
        username = nova 
        password = PASSWORD
        

        Replace PASSWORD with the password for the nova user to access the database described in Creating the Nova Database.

      3. Add the following content to the [neutron] section in the /etc/nova/nova.conf file:
         1
         2
         3
         4
         5
         6
         7
         8
         9
        10
        [neutron]
        url = http://controller:9696
        auth_url = http://controller:5000
        auth_type = password
        project_domain_name = default
        user_domain_name = default
        region_name = RegionOne
        project_name = service
        username = neutron
        password = PASSWORD
        

        Replace PASSWORD with the password for the neutron user to access the database described in Creating the Neutron Database.

      4. Enable and configure the access to the remote console.
        1
        2
        3
        4
        5
        6
        [vnc] 
        enabled = true 
        server_listen = 0.0.0.0 
        server_proxyclient_address = $my_ip 
        novncproxy_base_url = http://controller:6080/vnc_auto.html 
        vncserver_proxyclient_address = $my_ip
        

        Set my_ip to the management IP address of the compute node described in Table 3.

      5. Configure the location of the Image service API.
        1
        2
        [glance] 
        api_servers = http://controller:9292
        
      6. Configure the lock path.
        1
        2
        [oslo_concurrency] 
        lock_path = /var/lib/nova/tmp
        
      7. Configure the Placement API.
        1
        2
        3
        4
        5
        6
        7
        8
        9
        [placement]
        region_name = RegionOne 
        project_domain_name = Default 
        project_name = service 
        auth_type = password 
        user_domain_name = Default 
        auth_url = http://controller:5000/v3 
        username = placement 
        password = PASSWORD
        

        Replace PASSWORD with the password for the placement user to access the database described in Creating the Placement Database.

      8. Add the following to the [libvirt] section:
        1
        virt_type = kvm
        
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  3. Enable the Compute service and its dependencies and make them to start as the system boots.
    1
    2
    systemctl enable libvirtd.service openstack-nova-compute.service
    systemctl start libvirtd.service openstack-nova-compute.service