← Back to Pull requests

infra: Read IPMI BMC credentials from BareMetalHost for FAR NHC tests #6758

Open
unknown opened this pull request with 185 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 31, 2026 13:50 UTC
Author

##### What this PR does / why we need it:
The install-config in cluster-config-v1 has BMC username and password blanked, so fence_ipmilan parameters were built with empty credentials.

  • Load address and secrets from BareMetalHost objects

  • fail fast when worker BMC URLs are not ipmi
  • earlier test read BMC usernames and passwords from the install-config in kube-system/cluster-config-v1 but now openshift installer don't keep it. Now we read the credentials from the BareMetalHost secrets in openshift-machine-api instead of cluster-config-v1.

    ##### Which issue(s) this PR fixes:
    fixes t3 nhc lanes
    ##### Special notes for reviewer:

    ##### jira-ticket:
    <!-- full-ticket-url needs to be provided. This would add a link to the pull request to the jira and close it when the pull request is merged
    If the task is not tracked by a Jira ticket, just write "NONE".
    -->

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    Tests
    Updated workload availability remediation checks to read node management details from matching host records, including hosts that serve both control-plane and worker roles.
    Added coverage for missing host records, BMC configuration, or credentials, as well as incomplete or unsupported management addresses.
    Checks now use the standard IPMI port when an address does not specify one.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 185 lines (+138 / -47) across 2 files Reviewer: RoniKishner Review duration: 44130m
    All Vouch review confidence checks passed
    Residual risk 0.36 = Change Risk (0.64) × (1 − Review Confidence (0.44)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.64 · 185 lines diff across 2 files
    0.64
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    44%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.313
    Sensitive Paths sensitive_paths
    0.064
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #6758"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 44.2% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 63.9% (MEDIUM) · Higher = larger blast radius
    63.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 44.2% · Lower = rushed or shallow review
    44.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 35.7% · Moderate risk
    35.7%