Skip to content

Conversation

@haseebsyed12
Copy link
Contributor

@haseebsyed12 haseebsyed12 commented Nov 19, 2025

Redfish inspection - should manipulate ports (create/update ports)
Agent inspection - should NOT manipulate ports (disable the ports hook)

Before:
[inspector]
default_hooks = ramdisk-error,validate-interfaces,ports,architecture
[redfish]
default_inspection_hooks = validate-interfaces,ports,architecture

After:
[inspector]
default_hooks = ramdisk-error,validate-interfaces,architecture
[redfish]
default_inspection_hooks = validate-interfaces,ports,architecture

@haseebsyed12 haseebsyed12 requested a review from a team November 19, 2025 13:23
@haseebsyed12 haseebsyed12 changed the title feat(ironic): Ironic to only manipulate ports during redfish inspection and not during agent inspection feat(ironic): manipulate ports only during redfish inspection and not during agent inspection Nov 19, 2025
@haseebsyed12 haseebsyed12 force-pushed the skip-port-manipulation-agent-inspect branch from 0c3704a to f5de5aa Compare November 21, 2025 03:57
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.
@haseebsyed12 haseebsyed12 force-pushed the skip-port-manipulation-agent-inspect branch from f5de5aa to 36e9bce Compare November 21, 2025 04:02
@cardoe cardoe added this pull request to the merge queue Nov 21, 2025
Merged via the queue into main with commit 9d9981f Nov 21, 2025
17 checks passed
@cardoe cardoe deleted the skip-port-manipulation-agent-inspect branch November 21, 2025 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants