Skip to content

Conversation

@cardoe
Copy link
Contributor

@cardoe cardoe commented Oct 23, 2025

Update the hardware matcher code to load the new hardware categorization data format. Update the enroll-server code to not manipulate the resource class directly. Updated the ironic resource-class hook to use the new data and be called by default with agent inspection. Enabled agent inspection by default as well.

We've moved to using flavor definitions that are defined in the deploy
repo which are then applied on deployment rather than having a specific
operator like this apply them.
Remove the resource class matching from the enroll code so that we can
migrate to utilizing the inspection hooks directly.
This code is trying to use the standard library dataclasses, it should
import that and not rely on a leaked export of the standard library data
class.
@cardoe cardoe force-pushed the update-enroll branch 6 times, most recently from 6778022 to ac761fe Compare October 23, 2025 21:39
Update the code and the tests to read data that conforms to the new
schema.
Create an OpenStack automation account for enroll-server and update the
secret references to this account. Drop all references to the old flavor
data since this is not where it will be used. Added a call to 'inspect'
during the enrollment process.
Added the resource class to be called by default in the agent inspector
hooks. Switch to using agent inspection for now by default as well. Add
a mount to include the data into the conductor.
Unfortunately the IPA image reports the number of CPU threads and not
the number of CPU cores without giving us the ability to calculate the
cores because there's no value to say that hyperthreading is enabled or
not. The model of the CPU should be detailed enough for us to be happy
that this is correct so we'll just drop CPU core count.
The manufacturer sometimes includes ' Inc.' and sometimes not, so let's
just trim that to make things consistent.
@cardoe cardoe marked this pull request as ready for review October 23, 2025 23:48
@cardoe cardoe added this pull request to the merge queue Oct 24, 2025
Merged via the queue into main with commit aa54404 Oct 24, 2025
38 checks passed
@cardoe cardoe deleted the update-enroll branch October 24, 2025 04:49
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