Skip to content

Commit f5de5aa

Browse files
When using the agent inspect interface, Ironic will run the hooks without the "ports" hook, so it won't manipulate ports
When using the redfish inspect interface, Redfish inspection creates ports directly through _create_ports() method called from inspect_hardware() method itself, not primarily through hooks.
1 parent 8bf738c commit f5de5aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/ironic/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ 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"
9195
hooks: "$default_hooks,pci-devices,parse-lldp,local-link-connection,resource-class"
9296
# enable sensors and metrics for redfish metrics - https://docs.openstack.org/ironic/latest/admin/drivers/redfish/metrics.html
9397
sensor_data:

0 commit comments

Comments
 (0)