patch(v2.2): advance decommissioning past immediate UEFI password jobs - #6173
ericpretzel wants to merge 2 commits into
Conversation
The Dell SCP-import fallback used to clear the host UEFI password creates an immediate job that goes New -> Running -> Completed and never reports Scheduled, so WaitForUefiPasswordJobScheduled waited forever and the host stalled in Decommissioning/DeconfiguringHost past its SLA. Treat a Completed job as needing no reboot to run and move straight to WaitForUefiPasswordJobCompletion; a Scheduled job still gets its reboot. Signed-off-by: Eric Wetzel <ewetzel@nvidia.com>
Keep one Completed-path check and a one-line comment that some platforms skip Scheduled. Signed-off-by: Eric Wetzel <ewetzel@nvidia.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. Summary by CodeRabbit
WalkthroughThe decommissioning handler now moves completed UEFI password jobs directly to completion monitoring. Scheduled jobs still move to reboot handling. An integration test verifies the completed-job transition. ChangesUEFI Password Job Completion
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant RedfishSimulator
participant DecommissioningHandler
participant ManagedHost
RedfishSimulator->>DecommissioningHandler: Report JobState::Completed
DecommissioningHandler->>ManagedHost: Set WaitForUefiPasswordJobCompletion
ManagedHost-->>DecommissioningHandler: Persist updated state
Merge Risk: ⚪ Minimal · up to Completed UEFI password jobs proceed without an unnecessary reboot, while scheduled jobs retain their existing behavior. The changed transition and its integration coverage support merging. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🔐 TruffleHog Secret Scan✅ No secrets or credentials found! Your code has been scanned for 700+ types of secrets and credentials. All clear! 🎉 🕐 Last updated: 2026-09-15 02:51:50 UTC | Commit: 694947a |
During the decommissioning process for managed hosts, we submit a request to clear the host UEFI password. The behavior for this request is platform-dependent. The Dell SCP-import fallback used to clear the host UEFI password creates an immediate job that goes New -> Running -> Completed and never reports Scheduled, so WaitForUefiPasswordJobScheduled waited forever and the host stalled in Decommissioning/DeconfiguringHost.
Treat a Completed job as needing no reboot to run (we reboot later anyway) and move straight to WaitForUefiPasswordJobCompletion; a Scheduled job still gets its reboot.
Related issues
NVBUG 6773236
Type of Change
Breaking Changes
Testing