Installing and Configuring Nova (Compute Node)
Perform the following operations on all compute nodes (x86-compute and arm-compute).
- Install components.
1yum -y install openstack-nova-compute
- Modify the /etc/nova/nova.conf file.
- Open the file.
vi /etc/nova/nova.conf
- Press i to enter the insert mode and perform the following configurations.
- 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.
- 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.
- 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.
- 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
- Configure the location of the Image service API.
1 2
[glance] api_servers = http://controller:9292
- Configure the lock path.
1 2
[oslo_concurrency] lock_path = /var/lib/nova/tmp
- 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.
- Add the following to the [libvirt] section:
1virt_type = kvm
- Enable the compute and metadata APIs.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- 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
Parent topic: Installing, Configuring, and Verifying Nova