Skip to content

Commit 36e9bce

Browse files
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.
1 parent 8bf738c commit 36e9bce

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)