Skip to content

Commit bb4bd7a

Browse files
committed
Configure ironic Inspection hooks to manage port and node attributes
After out-of-band inspection we run port-bios-name. The interface names returned by the BMC are generally more meaningful to the data center than the linux names we get in the agent inspection data After Agent Inspection we run update-baremetal-port. This consumes the LLDP information, so it must run after agent inspection. Out-of-band inspection doesn't give us the full LLDP data. The default ironic local-link-connection is removed because the new hook updates the same fields. We add "validate-interfaces" because that populates data we consume.
1 parent 78210f4 commit bb4bd7a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

components/ironic/values.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,12 @@ conf:
8888
loader_file_paths: "snponly.efi:/usr/lib/ipxe/snponly.efi"
8989
inspector:
9090
extra_kernel_params: ipa-collect-lldp=1
91-
# Agent inspection hooks - ports hook removed to prevent port manipulation during agent inspection
92-
# Default hooks include: ramdisk-error,validate-interfaces,ports,architecture
93-
# We override to exclude 'ports' from the default hooks
94-
default_hooks: "ramdisk-error,validate-interfaces,architecture"
95-
hooks: "$default_hooks,pci-devices,parse-lldp,local-link-connection,resource-class"
91+
# Agent inspection hooks run after inspecting in-band using the IPA image:
92+
hooks: "ramdisk-error,validate-interfaces,architecture,pci-devices,validate-interfaces,parse-lldp,resource-class,update-baremetal-port"
93+
redfish:
94+
# Redfish inspection hooks run after inspecting out-of-band using the BMC:
95+
inspection_hooks: "validate-interfaces,ports,port-bios-name,architecture,pci-devices"
96+
add_ports: "all"
9697
# enable sensors and metrics for redfish metrics - https://docs.openstack.org/ironic/latest/admin/drivers/redfish/metrics.html
9798
sensor_data:
9899
send_sensor_data: true

0 commit comments

Comments
 (0)