snr: add control plane isolation regression test (RHWA-1927) #93
All Vouch review confidence checks passed
Residual risk 0.29 = Change Risk (0.52) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 425 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
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
Diff Size
diff_size
0.362
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #93"
general
weight: 0.35
abrugaro
razo7
Dependencies
✅ CI test dependency resolved: openshift/release#88299 (merged) added the injector image configuration for connected SNR e2e jobs; the earlier failing attempt was #88164. The probe no longer relies on that image for
pgrep— the agent PID discovery was rewritten to scan/proc//cmdlinedirectly, soubi9/ubi(which shipsnsenterandiptablesbut notpgrep) is now sufficient. Disconnected jobs skip gracefully at the usability probe.What
Adds the RHWA-1927 system test for the control plane isolation gate that fixes RHWA-1384: a control plane node whose local kube-apiserver still answers
/readyzwith 200, but whose SNR agent cannot reach any peer, must stop feeding the watchdog and reboot itself. Before the fix the passing/readyzreset the error count every tick and the node fed its watchdog forever.Builds on @weshayutin's original test (#60) and folds in the subsequent review fixes, so it supersedes #60.
How it works
The test rejects traffic on the SNR peer health port inside the victim agent's network namespace (the agent sets
hostPIDbut nothostNetwork, so host-level iptables would never match its peer traffic), leaving the kube-apiserver connection untouched so/readyzkeeps returning 200. It then captures the agent isolation log in one pre-reboot snapshot and asserts the node reboots within the RHWA-1384 budget, with no NHC-createdSelfNodeRemediationCR and without the peer masters rebooting. Any NodeHealthCheck that selects control plane nodes is neutralized (selector patched to never-match) for the duration of the test and restored inDeferCleanup.Review fixes included
IsNotFoundon theSelfNodeRemediationCR check, so a timeout or server error cannot pass the assertion.DeferCleanup.labels.DisruptionDestructive.${SHARED_DIR}/injector_imagefile (Prow CI integration).tryRunHostCommandPodfor the usability probe so a stuck Pending pod returns a skip instead of a hard FAIL./proc//cmdlinescan instead ofpgrep -f, eliminating the dependency on a debug image that carriespgrep.Test plan
make fmt && make lint && make check-testcasepass.SNR_INJECTOR_IMAGE=registry.access.redhat.com/ubi9/ubi:latest ginkgo --label-filter="snr" --focus="isolated from its SNR peers" ./tests/snr-operator/...(the injector image must carrynsenterandiptables;pgrepis no longer required)