Skip to content

fix: Rework enrol workflow#1950

Merged
stevekeay merged 11 commits intomainfrom
rework-enrol-workflow
Apr 21, 2026
Merged

fix: Rework enrol workflow#1950
stevekeay merged 11 commits intomainfrom
rework-enrol-workflow

Conversation

@stevekeay
Copy link
Copy Markdown
Contributor

@stevekeay stevekeay commented Apr 14, 2026

Make enroll leverage more of the openstack features.

We perform virtual-media boot for the initial inspection.

We update our handling of ironic ports to make sure the proper values are set at all points in the server life-cycle.

@stevekeay stevekeay changed the title Rework enrol workflow fix: Rework enrol workflow Apr 14, 2026
Copy link
Copy Markdown
Collaborator

@skrobul skrobul left a comment

Choose a reason for hiding this comment

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

LGTM, needs a cosmetic fix (see CI)

@stevekeay stevekeay force-pushed the rework-enrol-workflow branch from eac00d9 to 82c1b4e Compare April 15, 2026 12:31
@stevekeay stevekeay requested a review from skrobul April 15, 2026 12:35
@stevekeay stevekeay force-pushed the rework-enrol-workflow branch 6 times, most recently from 9bba6db to 3e839e8 Compare April 16, 2026 13:35
This was used to influence the "pxe" boot configuration during enrol but
we don't need it any more because we now set the "pxe" flag on all
candidate interfaces during enrol, and then we set it properly once the
full agent inspection data is in available.
@stevekeay stevekeay force-pushed the rework-enrol-workflow branch 3 times, most recently from c6ac876 to 78960b1 Compare April 17, 2026 10:08
Virtual-media is slightly more robust that normal PXE/HTTP boot for the
initial inspection, because at that time we don't have the full picture
of the network cabling and so we can't make the exact final settings for
the BIOS and for Ironic.
@stevekeay stevekeay force-pushed the rework-enrol-workflow branch 3 times, most recently from cb87463 to e61bd42 Compare April 17, 2026 13:57
@stevekeay stevekeay force-pushed the rework-enrol-workflow branch from e61bd42 to 5e7993c Compare April 17, 2026 14:17
@stevekeay stevekeay force-pushed the rework-enrol-workflow branch 4 times, most recently from db55c21 to 4a7074b Compare April 21, 2026 10:16
Copy link
Copy Markdown
Collaborator

@skrobul skrobul left a comment

Choose a reason for hiding this comment

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

it looks good - one small nit - would you be opposed standardising on the enroll spelling to avoid potential mistakes? (it will work as is now, but it feels like maintaining two versions can lead to unnecessary issues)

bmc_description = "Dedicated iDRAC interface"
else:
bmc_name = "iLO"
bmc_description = str(data.get("name"))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

else -> raise HardwareNotSupportedError (or similar)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed in e633b7c although I think this logic was originally used for creating things in Nautobot, and that responsibility moved elsewhere. This code might shrink away altogether in future.

@stevekeay
Copy link
Copy Markdown
Contributor Author

it looks good - one small nit - would you be opposed standardising on the enroll spelling to avoid potential mistakes? (it will work as is now, but it feels like maintaining two versions can lead to unnecessary issues)

I changed the spelling for comments and private references, but I left the physical network name as "enrol" for now because this is referenced externally - changing it requires that we first change the undersync API, to have it accept the new value.

@stevekeay stevekeay added this pull request to the merge queue Apr 21, 2026
Merged via the queue into main with commit fdd617b Apr 21, 2026
62 checks passed
@stevekeay stevekeay deleted the rework-enrol-workflow branch April 21, 2026 18:29
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.

2 participants