Skip to content

feat(ironic): Adds ironic runbook for performing BMC maintenances.#2051

Open
nicholaskuechler wants to merge 1 commit into
mainfrom
PUC-1603-20260527-1108
Open

feat(ironic): Adds ironic runbook for performing BMC maintenances.#2051
nicholaskuechler wants to merge 1 commit into
mainfrom
PUC-1603-20260527-1108

Conversation

@nicholaskuechler
Copy link
Copy Markdown
Collaborator

@nicholaskuechler nicholaskuechler commented May 27, 2026

Adds runbook for performing BMC maintenances by clearing jobs and setting the clock.

@nicholaskuechler nicholaskuechler force-pushed the PUC-1603-20260527-1108 branch 3 times, most recently from e0e33d0 to 2317485 Compare May 27, 2026 19:00
@nicholaskuechler nicholaskuechler force-pushed the PUC-1603-20260527-1108 branch from 2317485 to 2632f1b Compare May 27, 2026 19:21
@nicholaskuechler nicholaskuechler marked this pull request as ready for review May 27, 2026 20:04
@nicholaskuechler nicholaskuechler requested a review from a team May 27, 2026 20:20
redfish:
# Redfish inspection hooks run after inspecting out-of-band using the BMC:
inspection_hooks: "validate-interfaces,ports,port-bios-name,architecture,pci-devices,resource-class"
inspection_hooks: "validate-interfaces,ports,port-bios-name,architecture,pci-devices,resource-class,bmc-maintenance"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No.


LOG = logging.getLogger(__name__)

BMC_MAINTENANCE_TRAIT = "CUSTOM_BMC_MAINTENANCE"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No. As I've said multiple times in multiple places. Make an addition to inspection rules to do CUSTOM_$VENDOR_$MODEL and use that with runbooks v2 which lets you define many runbooks and associate them with a shared trait.

name: bmc-maintenance
namespace: openstack
spec:
runbookName: CUSTOM_BMC_MAINTENANCE
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No. This is runbooks v1. We want a name and then associate the trait to it.

port-bios-name = "ironic_understack.port_bios_name_hook:PortBiosNameHook"
node-name-check = "ironic_understack.inspect_hook_node_name_check:InspectHookNodeNameCheck"
chassis_model = "ironic_understack.inspect_hook_chassis_model:InspectHookChassisModel"
bmc-maintenance = "ironic_understack.inspect_hook_bmc_maintenance:InspectHookBmcMaintenance"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No.

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