From 36e9bcefd0a5f1b06c8783abc2f2ef300e3294a2 Mon Sep 17 00:00:00 2001 From: haseeb Date: Wed, 19 Nov 2025 18:51:34 +0530 Subject: [PATCH] Skip port updates on agent inspect interface When using the agent inspect interface, prevent agent inspection from creating ports by removing "ports" from agent's default_hooks. 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. --- components/ironic/values.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/ironic/values.yaml b/components/ironic/values.yaml index df727e96c..d5d2922cb 100644 --- a/components/ironic/values.yaml +++ b/components/ironic/values.yaml @@ -88,6 +88,10 @@ conf: loader_file_paths: "snponly.efi:/usr/lib/ipxe/snponly.efi" inspector: extra_kernel_params: ipa-collect-lldp=1 + # Agent inspection hooks - ports hook removed to prevent port manipulation during agent inspection + # Default hooks include: ramdisk-error,validate-interfaces,ports,architecture + # We override to exclude 'ports' from the default hooks + default_hooks: "ramdisk-error,validate-interfaces,architecture" hooks: "$default_hooks,pci-devices,parse-lldp,local-link-connection,resource-class" # enable sensors and metrics for redfish metrics - https://docs.openstack.org/ironic/latest/admin/drivers/redfish/metrics.html sensor_data: