Skip to content

Commit 39688ab

Browse files
committed
ironic: enable the pci-device-capabilities hook to annotate nodes
1 parent 98604b3 commit 39688ab

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎components/ironic/values.yaml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,13 @@ conf:
127127
# Agent inspection hooks run after inspecting in-band using the IPA image:
128128
hooks: "ramdisk-error,validate-interfaces,architecture,pci-devices,parse-lldp,update-baremetal-port,chassis_model"
129129
keep_ports: "present"
130+
pci_device_alias:
131+
type: multistring
132+
values:
133+
- '{"vendor_id": "0x1002", "product_id": "0x75a8", "name": "gpu_amd_mi350p"}'
130134
redfish:
131135
# Redfish inspection hooks run after inspecting out-of-band using the BMC:
132-
inspection_hooks: "validate-interfaces,ports,port-bios-name,architecture,pci-devices,resource-class,chassis_model"
136+
inspection_hooks: "validate-interfaces,ports,port-bios-name,architecture,pci-devices,resource-class,chassis_model,pci-device-capabilities"
133137
# enable sensors and metrics for redfish metrics - https://docs.openstack.org/ironic/latest/admin/drivers/redfish/metrics.html
134138
sensor_data:
135139
send_sensor_data: true

‎python/ironic-understack/pyproject.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ update-baremetal-port = "ironic_understack.hooks.inspect_hook_update_baremetal_p
2626
port-bios-name = "ironic_understack.hooks.port_bios_name_hook:PortBiosNameHook"
2727
node-name-check = "ironic_understack.hooks.inspect_hook_node_name_check:InspectHookNodeNameCheck"
2828
chassis_model = "ironic_understack.hooks.inspect_hook_chassis_model:InspectHookChassisModel"
29+
pci-device-capabilities = "ironic_understack.hooks.inspect_hook_pci_device_capabilities:PciDeviceCapabilitiesHook"
2930

3031
[project.entry-points."ironic.hardware.types"]
3132
netdev = "ironic_understack.drivers.netdev_hardware:NetdevHardware"

0 commit comments

Comments
 (0)