Configuring the Compute Service for the Ironic Service
- Install and deploy the nova-compute service on the BMS management node baremetal. For details, see Installing and Configuring Nova (Compute Node).
The following operations must be performed on both the controller node and baremetal node.
- Configure the Compute service to use the driver of the BMS. The configuration file of the Compute service is usually located in /etc/nova/nova.conf.
- Open the file.
vi /etc/nova/nova.conf
- Press i to enter the insert mode. In the configuration file of the Compute service, perform the configuration as follows:
1 2 3 4 5 6 7 8 9 10
[DEFAULT] compute_driver = ironic.IronicDriver firewall_driver = nova.virt.firewall.NoopFirewallDriver reserved_host_memory_mb = 0 [filter_scheduler] track_instance_changes = False [scheduler] discover_hosts_in_cells_interval = 120
Configure track_instance_changes=False only on the BMS management node baremetal. Do not configure it on the OpenStack management node controller.
- Press Esc to exit the insert mode. Type :wq! and press Enter to save and exit the file.
- Open the file.
- Modify the ironic configuration options.
- Open the file.
vi /etc/nova/nova.conf
- Press i to enter the insert mode. In the configuration file of the Compute service, perform the configuration as follows:
1 2 3 4 5 6 7 8
[ironic] auth_type = password auth_url = http://controller:5000/v3/ project_name = service username = ironic password = PASSWORD project_domain_name = default user_domain_name = default
In this document, all passwords are represented as PASSWORD. Use the actual password during the operation. The PASSWORD here is the password of the user ironic described in Creating a BMS Database.
- Press Esc to exit the insert mode. Type :wq! and press Enter to save and exit the file.
- Open the file.
- Restart the nova-scheduler subservice on the controller node.
1systemctl restart openstack-nova-scheduler
- Restart the nova-compute subservice on the BMS management node baremetal.
1systemctl restart openstack-nova-compute
- Verify the interconnection between the Ironic and Nova services on the controller node. Perform the verification two minutes after the restart in 5.
1 2
nova-manage cell_v2 discover_hosts nova-manage cell_v2 list_hosts

1openstack compute service list
