Skip to content

fix(preingestion): make BMC time-sync failures recoverable#2260

Open
wminckler wants to merge 1 commit into
NVIDIA:mainfrom
wminckler:bmc-bug
Open

fix(preingestion): make BMC time-sync failures recoverable#2260
wminckler wants to merge 1 commit into
NVIDIA:mainfrom
wminckler:bmc-bug

Conversation

@wminckler
Copy link
Copy Markdown
Contributor

@wminckler wminckler commented Jun 5, 2026

Two Supermicro machines got stuck in a terminal pre-ingestion Failed state with "BMC time synchronization failed after reset attempt". The BMC clocks were actually fine; the failure was a transient out-of-sync condition at probe time that became permanent, and the only recovery was force-deleting and rediscovering the endpoint.

Fix 1: retry instead of failing terminally. TimeSyncReset now carries an attempt counter; when the post-reset recheck is still out of sync it re-enters the reset cycle (each with its 20-minute boot wait) up to MAX_TIME_SYNC_RESET_ATTEMPTS before going Failed, giving a slow-to-NTP-sync BMC time to converge.

Fix 2: make "clear error" actually retry. The terminal failure lives in preingestion_state, not the exploration report that clear_last_known_error touched, so clearing the error left the host stuck. clear_site_exploration_error now also resets a Failed preingestion back to Initial (non-failed states untouched), so operators can retry without force-deleting the endpoint.

Adds a configurable BMC clock offset to the Redfish sim so the previously untested out-of-sync path can be exercised, plus tests for the retry-then-fail behavior and the clear-error reset.

Description

Type of Change

  • Add - New feature or capability
  • Change - Changes in existing functionality
  • Fix - Bug fixes
  • Remove - Removed features or deprecated functionality
  • Internal - Internal changes (refactoring, tests, docs, etc.)

Related Issues (Optional)

Breaking Changes

  • This PR contains breaking changes

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • No testing required (docs, internal refactor, etc.)

Additional Notes

@wminckler wminckler requested a review from a team as a code owner June 5, 2026 19:11
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 5, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 39eab662-6105-402b-b13d-b28822846d88

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

Two Supermicro machines got stuck in a terminal pre-ingestion Failed
state with "BMC time synchronization failed after reset attempt". The
BMC clocks were actually fine; the failure was a transient out-of-sync
condition at probe time that became permanent, and the only recovery was
force-deleting and rediscovering the endpoint.

Fix #1: retry instead of failing terminally. TimeSyncReset now carries an
attempt counter; when the post-reset recheck is still out of sync it
re-enters the reset cycle (each with its 20-minute boot wait) up to
MAX_TIME_SYNC_RESET_ATTEMPTS before going Failed, giving a slow-to-NTP-sync
BMC time to converge.

Fix #2: make "clear error" actually retry. The terminal failure lives in
preingestion_state, not the exploration report that clear_last_known_error
touched, so clearing the error left the host stuck. clear_site_exploration_error
now also resets a Failed preingestion back to Initial (non-failed states
untouched), so operators can retry without force-deleting the endpoint.

Adds a configurable BMC clock offset to the Redfish sim so the previously
untested out-of-sync path can be exercised, plus tests for the retry-then-fail
behavior and the clear-error reset.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
see bug 6126941
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