Configuring Bare Metal (ironic) in-band inspection (optional)¶
Note
This feature is experimental at this time and it has not been fully production tested yet.
Ironic built-in in-band inspection deploys a tiny image called
ironic-python-agent (IPA) that gathers information about a Bare Metal
node. The data is stored in the configured inventory backend (database by
default) and the node is updated with properties based on the inspection data.
By default, Ironic uses managed inspection (where Ironic manages booting
the inspection ramdisk and Neutron provides DHCP). For unmanaged
inspection or auto-discovery of unknown nodes via a standalone
dnsmasq server and ironic-pxe-filter, enable
ironic_pxe_filter_enabled: true.
Networking¶
Ironic networking must be configured as normally done. When
ironic-pxe-filter and ironic-dnsmasq are enabled, they run on
ironic_pxe_filter_group (defaulting to ironic_conductor) and share
the TFTP/HTTP server.
Networking will depend heavily on your environment. For example, the DHCP for
both Neutron provisioning and ironic-dnsmasq unmanaged inspection can come
from the same subnet using disjoint allocation pools.
Required Overrides for Unmanaged Inspection¶
# Enable ironic-pxe-filter and ironic-dnsmasq for unmanaged inspection ironic_pxe_filter_enabled: true # Optional: enable automatic enrollment of unknown nodes ironic_auto_discovery_enabled: true ironic_auto_discovery_driver: ipmi # dnsmasq/dhcp information for unmanaged inspection ironic_dnsmasq_dhcp_range: <START> <END> (subset of ironic IPs) ironic_dnsmasq_gateway: <IRONIC GATEWAY> ironic_dnsmasq_nameservers: 8.8.8.8
To enable LLDP discovery of switch ports during inspection¶
During inspection Ironic can automatically populate
information into the node local_link_connection which can
automatically create a baremetal port for the node.
This example is suitable for switches that have a common MAC address
per switch port and are identified to networking-generic-switch
using the ngs_mac_address parameter which matches against
the switch_id field in the Ironic node local_link_connection
information.
Set the following variables in /etc/openstack_deploy/user_variables.yml
# enable LLDP discovery for inspection
ironic_inspector_hooks: "$default_hooks,parse-lldp,local-link-connection"
ironic_inspection_extra_kernel_params: "ipa-collect-lldp=1"