AAP-94885: fix: eliminate proxy-env ConfigMap oscillation on proxy-configured clusters #787
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 310 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.343
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.063
Real PR Conversation Timeline
1 comments
"Review active on #787"
general
weight: 0.35
redhat-chai-bot
Root cause
AAP-94885 — Introduced in MR!169 (
142ba4d): the chatbot role wrote the proxy-env ConfigMap a second time per reconciliation to inject AAP service hostnames intoNO_PROXY. Because the second write produced different content, Kubernetes incremented the ConfigMap'sresourceVersion, which fired a new watch event, which queued a new reconciliation — infinitely, on any cluster with a proxy configured and a chatbot secret defined.Related: AAP-83822, AAP-84164, AAP-91490
What changed
roles/common/tasks/main.yml— added three tasks before the ConfigMap write:1. Pre-read the chatbot secret (skipped if
chatbot_config_secret_nameis unset)2. Extract
aap_gateway_urlhostname →_aap_gateway_hostname3. Extract
aap_controller_urlhostname →_aap_controller_hostnameThe single ConfigMap write in
commonnow includes the AAP hostnames from the start, so the rendered template is identical on every subsequent reconciliation —apply: yesreturnsok, noresourceVersionchange, no new watch event.roles/chatbot/tasks/main.yml— removed the two tasks that caused the loop:Set AAP service hostnames for NO_PROXY exclusionRe-apply proxy environment ConfigMap with AAP service hostnamesHow it was tested
Deployed the unpatched production image (
lightspeed-rhel9-operator@sha256:e8e661766de6bf6885244e41b627086843086e70c81b514d122d24bc7a140f05) on a ROSA cluster withHTTP_PROXY/HTTPS_PROXYset and a chatbot secret configured.Before fix: the re-apply task returned
changed: trueon every reconciliation;resourceVersionkept incrementing (58820 → 61279 → ...).After fix: mounted the patched role files into the running pod via ConfigMap subPath volume. Next reconciliation showed
changed=0in the PLAY RECAP;resourceVersionremained stable at61279across multiple reconciliation cycles.Test plan
HTTP_PROXY/HTTPS_PROXYset and a valid chatbot secretproxy-envConfigMap is created with AAP hostnames inNO_PROXYon the first reconciliationresourceVersiondoes not change on subsequent reconciliations🤖 Generated with Claude Code