Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring the Compute Service for the Ironic Service

  1. 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.

  2. 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.
    1. Open the file.
      vi /etc/nova/nova.conf
    1. 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.

    2. Press Esc to exit the insert mode. Type :wq! and press Enter to save and exit the file.
  3. Modify the ironic configuration options.
    1. Open the file.
      vi /etc/nova/nova.conf
    1. 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.

    2. Press Esc to exit the insert mode. Type :wq! and press Enter to save and exit the file.
  4. Restart the nova-scheduler subservice on the controller node.
    1
    systemctl restart openstack-nova-scheduler
    
  5. Restart the nova-compute subservice on the BMS management node baremetal.
    1
    systemctl restart openstack-nova-compute
    
  6. 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
    

    1
    openstack compute service list