Skip to content

fix: filter out pxe interfaces not phyiscally connected to a switch#1842

Open
andrrax wants to merge 3 commits intomainfrom
inspection_pxe_interfaces
Open

fix: filter out pxe interfaces not phyiscally connected to a switch#1842
andrrax wants to merge 3 commits intomainfrom
inspection_pxe_interfaces

Conversation

@andrrax
Copy link
Contributor

@andrrax andrrax commented Mar 18, 2026

This change is intended to filter out interfaces which are not physically connected to a switch. Currently we're returning the first interface with a matching prefix, regardless of if there is a physically connection to the switch or not, and then configuring that Ironic Port for PXE.

RSabounds
RSabounds previously approved these changes Mar 19, 2026
Copy link
Contributor

@RSabounds RSabounds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Handles the case with a speed_mbps available entry first, falls back to first interface, and fails with log.error().

@RSabounds RSabounds dismissed their stale review March 19, 2026 14:29

will pend for approval post-dev env configuration. Noted that there isn't a separate UC member approval.

@andrrax andrrax force-pushed the inspection_pxe_interfaces branch from dd4b3aa to 77d029d Compare March 19, 2026 15:17
Copy link
Contributor

@stevekeay stevekeay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add a couple of LOG.info so we can see which path it took and why.

I ran this and it worked, however on the box that I used all the interface speeds were reading zero. I suspect this was because the power was off. So that would be another fundamental issue with this approach - inspection can happen while the box is powered down.

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.

3 participants