Configuring the Bare Metal Instance Management Drivers
The BMS uses the bare metal instance management drivers to manage bare metal instances. The bare metal instance management driver consists of a series of hardware interfaces to implement related operations. The drivers are classified into general-purpose drivers such as ipmi and redfish, and drivers of specific vendors such as ibmc, ilo, and irmc. This section uses the ipmi driver as an example to describe how to add a bare metal instance management driver to the BMS.
Perform the following operations on the BMS management node baremetal.
- Enable the bare metal instance management driver.
Modify the /etc/ironic/ironic.conf file as follows:
1 2
[DEFAULT] enabled_hardware_types = ipmi
- Enable the hardware interfaces.
Modify the /etc/ironic/ironic.conf file as follows:
1 2 3 4 5 6 7 8 9 10 11
[DEFAULT] enabled_boot_interfaces = pxe enabled_console_interfaces = ipmitool-socat,no-console enabled_deploy_interfaces = iscsi,direct enabled_inspect_interfaces = no-inspect,inspector enabled_management_interfaces = ipmitool enabled_network_interfaces = flat,neutron enabled_power_interfaces = ipmitool enabled_raid_interfaces = agent,no-raid enabled_storage_interfaces = cinder,noop enabled_vendor_interfaces = ipmitool,no-vendor
- Set the default values of the hardware interfaces.
Modify the /etc/ironic/ironic.conf file as follows:
1 2 3 4 5
[DEFAULT] default_deploy_interface = iscsi default_network_interface = flat default_inspect_interface = inspector default_raid_interface = no-raid
- Configure the IPMI support.
- Install ipmitool.
1sudo yum install ipmitool
Alternatively, you can use the source code from https://github.com/ipmitool/ipmitool to install it.
- After the installation is complete, run the ipmitool command to verify the installation.
1ipmitool -I lanplus -H ip-address -U username -P password chassis power status
Set ip-address, username, and password to the IP address, username, and password of the BMC on the server to be verified.
- Install ipmitool.
- Configure the ISCSI support.
Install the qemu-img and iscsiadm tools on the ironic-conductor node.
1yum install iscsi-initiator-utils qemu-img
- Configure the direct deployment support.
The direct deployment can be implemented through the object storage service or HTTP service. If the object storage service is used, the Glance service must be interconnected with Swift or Ceph, and tempUrl must be configured for the object storage service. This section uses the HTTP service to implement the direct deployment.
- Install the Apache service.
sudo yum install httpd
- Enable the Apache httpd service.
systemctl enable httpd.service systemctl restart httpd.service
- Create an HTTP root directory.
1 2
sudo mkdir -p /httpboot sudo chown -R ironic /httpboot
- Create an ironic-http-wsgi.conf file in the /etc/httpd/conf.d directory and add the following content to the file:
1 2 3 4 5 6 7 8 9 10 11 12
Listen 3928 <VirtualHost *:3928> DocumentRoot "/httpboot" <Directory "/httpboot"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all Require all granted </Directory> </VirtualHost>
- Reload the configuration file.
1sudo systemctl reload httpd
- Modify the /etc/ironic/ironic.conf file as follows:
1 2 3 4 5 6
[deploy] http_root=/httpboot http_url=${my_ip}:3928 [agent] image_download_source = http
In addition, ensure that http_url and http_root are correctly configured.
- Install the Apache service.
- Restart the service.
1sudo systemctl restart openstack-ironic-conductor