← Back to Pull requests

sbr-operator: clear Ceph blocklist before waiting for victim agent re… #127

Merged
RanWurmbrand merged 2 files (214 lines) on Nov 10, 2026 11:22 UTC
View on GitHub
RanWurmbrand RanWurmbrand commented on Nov 09, 2026 15:47 UTC
Author

Clear the Ceph blocklist before waiting for the victim's agent to recover

Problem


When SBR fences a node, ODF adds a Ceph OSD blocklist range for that node's IP while the out-of-service taint is on. It doesn't always remove the entry after the taint comes off (DFBUGS-11731). The rebooted node then can't map its RBD volume (rados: ret=-108, Cannot send after transport endpoint shutdown), so its SBR agent pod never becomes Ready. The fence geometry, node hang and split-brain specs time out waiting for it.

Seen in periodic-ci-openshift-rhwa-system-tests-main-5.0-konflux-e2e-sbr-daily-aws-odf run 2119596129816416256: the 100.64.0.6/32 blocklist range was still present 10 minutes after the taint was removed.

Fix


In those three specs, call clearCephOSDBlocklist() once the out-of-service taint is gone and before waiting for the victim's agent pod to be Ready. Every assertion about SBR behavior has already run by that point, so this does by hand only what ODF should have done.

Follow-up


This forced cleanup works around RHWA-1971 (SBR does not return to SBRStorageUnhealthy=False once its Ceph traffic is restored). Remove the mid-test clearCephOSDBlocklist() calls once RHWA-1971 is fixed.

Testing


  • go build and go vet pass.

  • Locally, fence geometry passed. Node hang failedson (NHC did not create the remediation CR), andsplit-brain is skipped (RHWA-2048). My cluster useave its admin key, so the blocklist clear couldn'trun there. CI has to verify this.
  • Diff: 214 lines (+160 / -54) across 2 files Reviewer: razo7 Review duration: 1175m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 214 lines diff across 2 files
    0.37
    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%
    46%
    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.321
    Real PR Conversation Timeline
    1 comments
    "Review active on #127"
    general weight: 0.35
    Reviewers
    Assignees
    RanWurmbrand RanWurmbrand
    Labels
    risk: low confidence: 46.7% reviewed
    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: 36.6% (MEDIUM) · Higher = larger blast radius
    36.6%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 19.5% · Safe to merge
    19.5%