Skip to content

fix: pci device inspection hook - #2640

Open
stevekeay wants to merge 1 commit into
mainfrom
fix-pci-device-hook
Open

stevekeay wants to merge 1 commit into
mainfrom
fix-pci-device-hook

Conversation

@stevekeay

@stevekeay stevekeay commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

The original attempted to pass a dictionary through the oslo configuration, but in practice this gets mangled on its journey through helm -> ironic.conf -> olso so we re-implement as a list of strings.

We were also trying to use node capabilities but that causes complications, so we are going to use traits instead.

The configuration to go along with this is in https://github.com/RSS-Engineering/undercloud-deploy/pull/2349

This will, after redfish inspection, add traits of the form CUSTOM_PCI_8_GPU_AMD_MI350P. This example would indicate that there are eight AMD Instinct 350P cards in the server's inventory.

Only cards which are explicitly configured in ironic.ironic_understack.pci_device_alias will be added as traits.

Any existing traits that start with CUSTOM_PCI_ will be removed if they don't match the current inventory/configuration.

@stevekeay stevekeay changed the title Fix pci device hook fix: pci device inspection hook Nov 5, 2026
@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Python test results

497 tests   497 ✅  3s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit 198ed34.

♻️ This comment has been updated with latest results.

@stevekeay
stevekeay force-pushed the fix-pci-device-hook branch 2 times, most recently from 7646eb0 to 3aea11a Compare November 16, 2026 15:38
@stevekeay
stevekeay force-pushed the fix-pci-device-hook branch 2 times, most recently from 3bf282c to 161e3b1 Compare November 20, 2026 21:02
We oringinally tried to use Capabilities because they are a more
powerful matching tool for flavor matching as the scalar quantity
allows for flavor conditions like "at least 2" or "exactly 4".

However in practise, capability support is not universal whereas traits
are more easily consumable in the current deployment.

Therefore we drop the capabilities in favour of baremetal node traits.

We also change the configuration to make it easier to pass through Helm
chat values and to make it compatible with the upstream built-in ironic
hooks.
@stevekeay
stevekeay requested a review from a team November 24, 2026 13:51

This branch has not been deployed

No deployments
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.

1 participant