Add the Ceph RBD Block-mode preflight slot cleanup test (RHWA-2038) #108
All Vouch review confidence checks passed
Residual risk 0.34 = Change Risk (0.59) × (1 − Review Confidence (0.42)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.59 · 281 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 10%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.338
No Reviewer Assigned
no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 comments
"Review active on #108"
general
weight: 0.35
RanWurmbrand
JIRA: RHWA-2038
Why we need this PR
The preflight slot cleanup (RHWA-1058) has end-to-end cover only on Filesystem storage (
ghost_peer.go, RHWA-1964). Block mode uses a different slot layout. Node ID 1 is heartbeat slot index 0 ((nodeID - 1) * 4096), not slot 1, and the agent clears a full 4 KB slot. So the filesystem test says nothing about whether the clear lands in the right place on a Block device. If it doesn't, every peer keeps monitoring a node that doesn't exist.Changes made
tests/sbr-operator/tests/block_storage_preflight_slot.go,reportxml.ID("2038"), labeledTierAcceptance,ComponentDaemonSet,DisruptionNonDestructive,PlatformAny,FrequencyNightly,TopologyMinimalWorker.The test creates a Block-mode SBRC on Ceph RBD and waits for the init Job and the agents. It then waits until the on-device node map lists every agent with a unique ID, and skips if a real node owns node ID 1. Next it waits for heartbeat slot index 0 to read 4096 zero bytes through every agent. Finally, for one minute, it checks that the slot stays zero and the agents keep the same pods and restart counts.
The node map read and the slot check both wait instead of reading once. An agent marks itself Ready right after preflight, before it registers in the node map and clears the slot.
No new helpers. It reuses the ghost peer helpers from
ghost_peer.goand the existing Block helpers, and the node map and stability checks are written inline.docs/TESTCASES/rhwa-2038.mdand atests/sbr-operator/README.mdentry.Test plan
Non-destructive: no fault injection, fencing or reboot. Requires SNR agents to be stopped and no other SBRC on the cluster. Skips when the cluster has no Ceph RBD StorageClass, fewer than 2 schedulable workers, an NHC that uses the SBR template, or a real node that owns node ID 1.
make fmt,make lintandmake testpass.