Repository navigation
Description
Part of #94
What is wrong: A kind cluster on this Mac takes so much of the machine that CRC's pods fail their probes. On 2026-11-13 the shared keycloak-0 was killed and restarted while OB1 ran deploy/kind-test.sh with other test jobs. Each realm on that Keycloak (master, corp, inkcast-prod, inkcast-staging, tutorial) was down for that time. The rule "never run a kind cluster during a CRC step" does not prevent this, because no CRC step ran.
Where: The Mac olas-MacBook-Pro.local, which runs CRC and Podman's machine (8 GiB) together. The run was deploy/kind-test.sh for #91's kind proof (K1). The risk is in build-tracker.md, "Open risks", row "keycloak-0 on CRC restarted", which says that test load is not ruled out.
How to prove it: Read the pod, read-only: oc get pod keycloak-0 -n keycloak -o jsonpath='{.status.containerStatuses[0].lastState.terminated}' and oc get events -n keycloak --sort-by=.lastTimestamp.
Measured or inferred: Measured on CRC, read-only, at 2026-11-13T11:10Z: restarts=2, last state exit=137 reason=Error finished=2026-11-13T08:58:42Z, running again from 08:59:37Z (55 seconds). OB1's first kind run started at about 08:50Z, with the service suite, Codex's container tests and a load average of 13 to 16 on the Mac. Events at about 10:35Z, 10:55Z and 10:59Z show failed liveness and readiness probes of keycloak-0, and one of postgres-0 and of mailpit, during OB1's later kind runs (10:26Z to 11:05Z), with no restart. Each realm answered 200 at 11:10Z. That the kind runs are the cause is inferred from the times: two restarts of keycloak-0 are on record, and a kind cluster ran on the Mac at both.
Severity: High. The Keycloak is shared with other projects, and the owner's rule is that a restart must not bleed. cmapi wrote nothing to keycloak, and no data is lost.
What must hold after the fix: No cmapi test makes a pod of CRC fail a probe. Either no kind cluster runs on this Mac while CRC is up, or the machine has measured room for both.
Research: Not done yet. Options to measure: run each kind proof in GitHub Actions only (the manifests job already has a Docker-backed kind); give Podman's machine a CPU limit; stop the kind proofs on this Mac and keep them for a second machine.
Solution (inline, not applied): OB1 stopped all kind runs on this Mac and did not start the CRC run. The owner decides what comes next.
Class: No class.
Activity
ephico2real2 commentedon Nov 13, 2026
Blocked: the owner decides how kind proofs run while CRC is up on the same Mac, and whether the Wave 1 run on CRC starts after this restart. OB1's prompt says: if Keycloak restarts, stop all CRC work, take no action on Keycloak, and report. OB1 took no action on Keycloak, read it only, and ran no CRC step.
Merge pull request #159 from ephico2real2/ob1-records
ephico2real2 commentedon Nov 13, 2026
A third restart, on 2026-11-13, during local CI. Read-only reads by OB1 at 15:45:21Z and by the coordinator at about 15:45Z; no action was taken on Keycloak.
keycloak-0restart countr261113153649p69550on PR #163: itsapi-contractjob ended at 15:38:25Z and itsservicejob started at 15:38:29Z, so at 15:38:00Z theapi-contractjob container was running. Before it, from 15:22Z to 15:36Z, OB1's runr261113152209p54750ranreference-code,portal-mockupandportal-uiwith no restart. Also two short act probes of the coordinator, 15:37:43Z to 15:40:22Z. Earlier, from about 15:05Z to 15:22Z, the build of the runner imageact-runner:ubuntu-24.04What OB1 did: stopped its run at 15:45Z (the
servicejob got no result), startedcmapi-test-pgagain, and starts no act run until the coordinator says so. That the local CI load is the cause is inferred from the times, as before: three restarts are on record, and each came while containers of cmapi's tests ran on this Mac under load (kind at 2026-11-05 20:17Z and 2026-11-13 08:58Z, act at 15:38Z).This widens the issue: it is not only kind. Any heavy container work in the Podman machine on the Mac that runs CRC can starve
keycloak-0.[-]PERF-01: a kind cluster on the CRC Mac makes keycloak-0 fail its probes; it was killed at 08:58Z on 2026-11-13[/-][+]PERF-01: container load on the CRC Mac (kind, act) makes keycloak-0 fail its probes; killed at 08:58Z and 15:38Z on 2026-11-13[/+]Records at 17:10 UTC: PR #163 and PR #168 merged, local CI paused on #…
ephico2real2 commentedon Nov 14, 2026
Owner decision, 2026-11-14: "Once we are done with coding and merged, we need to deploy this to CRC now and test all this logic live." So CRC steps are allowed again, after the open pull requests merge (#245, #238, #247, #239, #253). The guards that stay:
pg_dumpfirst, the other realms' guards, changes only to realmcmapiandcmapi-*LDAP entries, nothing restarted that cmapi did not create.ephico2real2 commentedon Nov 15, 2026
Fixed on the shared Keycloak, owner-approved (2026-11-15T01:04Z).
Diagnosis (read-only, before the change): keycloak-0 was not crashing on its own. Its 3 restarts were exit 143 (SIGTERM, killed by the kubelet), not 137 (memory: it used 1028Mi of its 2Gi limit). The liveness probe allowed 1 s per check (
timeoutSeconds: 1) and failed the pod after 3 misses 10 s apart, and the pod requested onlycpu: 200m. So when this Mac ran kind or act, the CRC VM ran short of CPU,/health/livetook more than 1 s for about 30 s, and the kubelet killed Keycloak. Keycloak is managed by the Red Hat build of Keycloak operator 26.6.7; its CRD allows onlyfailureThresholdandperiodSecondson the probes, not the timeout.Change, on the
Keycloakresourcekeycloakin namespacekeycloak(the operator rolled the pod once):requests.cpu200m -> 1000m (node CPU requests 4803m/61% -> about 71%), memory unchanged (1Gi request, 2Gi limit).livenessProbe.failureThreshold3 -> 10: about 100 s of slow health checks before a kill, instead of 30 s. Readiness and startup unchanged.After: new pod
3cb9034c, ready, 0 restarts, started 01:04:12Z. Every realm answers its OIDC discovery through the Route with TLS verification on: master, corp, inkcast-prod, inkcast-staging, tutorial all 200.Not in any repository: this patch lives on the cluster. If another project manages the
Keycloakresource from its own Git, add the same two values there, or a later sync can revert them. The no-kind/no-act-during-CRC guard stays, and restart counts are still read around each CRC step.ldap-identities-test: its stub oc answers the rollback's read of deli…
ephico2real2 commentedon Nov 15, 2026
OB1 run 9: the docs/13 watch stopped the run at 2026-11-15T04:59:09Z. keycloak-0 did not restart. I took no action on Keycloak; everything below was read only.
corpandinkcast-prodgave no HTTP answer within the guard's 5 s (status 0);inkcast-staging,masterandtutorialanswered 200. That poll took about 12 s (the one before was at 04:58:57Z)restartCount0, ready, running since 2026-11-15T01:04:19Z (the patched pod). Events: liveness probe failed at 04:59:03Z and readiness at 04:59:05Z (request canceled while waiting for connection, timeout 1 s; liveness failureThreshold is 10, so no kill)cmapi-realm-sync(04:58:29-04:59:17Z): the realm's configuration and the LDAP full sync of 13 users against Keycloak. Step 21 (the workloads) had not started; its gate refused at 04:59:24Zcmapiimported (Done after 140 s), import deleted, realms unchanged (s2, s3 compare clean); CNPG healthy; realm sync in syncThat the realm sync's calls to Keycloak caused the probe timeouts is inferred from the times, not measured. The run stays stopped until the owner has heard. Evidence:
ob1-run9/logs/watch-at-breach.log,breach-keycloak-0-describe.txt,breach-keycloak-events.txt.ephico2real2 commentedon Nov 17, 2026
A 29 s outage of the shared Keycloak and the CRC API server during docs/13 step 5, OB1 run 19 (deploy of
main7ba5d78), 2026-11-17. keycloak-0 did not restart. The run stopped as the guide says.Measured (CRC, read-only), from
deploy/rendered/wave1-run/watch.logof the run:masterdid not answer and the Kubernetes API's TLS handshake timed out.Unhealthyprobes oncmapi-db-1,cmapi-api,cmapi-portaland oncert-managerand its webhook, a namespace cmapi does not own. So the whole node stalled, not Keycloak alone.deploy/crc-image.sh(podman build of both images in the podman machine, thenskopeo copyinto CRC's internal registry). The step finished rc 0 at 18:34Z. Mac load average: 5.84 before step 5 (18:16Z), 8.44 after (18:34Z). Node requests 82% memory, 75% CPU;oc adm top node78% CPU at 18:36Z.Inferred, not measured: the image build and push saturated the Mac, so the CRC VM (and the registry write on the node) stalled. The same class as this issue's kills; this time it was short and no container restarted.
What the run did: stopped at the gate of step 6 (nothing applied to CRC; only the two images pushed to image streams
cmapiandcmapi-portalundersha-7ba5d78cd2), ended the watch (watch ended rc=3), took no action on Keycloak. The stop file stays until the owner has heard.ephico2real2 commentedon Nov 17, 2026
A one-poll breach during docs/13 step 21, right after step 5's build, OB1 run 21 (deploy of
main6565d9d), 2026-11-17. keycloak-0 did not restart. The run stopped as the guide says.Measured (CRC, read-only),
deploy/rendered/wave1-run/watch.log:corpgave no HTTP answer within the watch's 3 s timeout (crc-guard.py,http_get: 0 is no answer), one poll. keycloak-0: restartCount 0, same uid and start (2026-11-15T01:04:19Z), Ready at every poll.command timed out23:53:48Z; mailpit readiness 23:53:39Z; Kyverno's admission controller probes 23:50:20Z to 23:50:23Z.leadership lost, stopped leadingat 23:50:18Z, then exit 0Completed, running again at 23:50:31Z. A leader-election lease lost while the API server was slow, not memory (59 Mi after).crc-image.sh, 23:43:18Z to 23:51:04Z, rc 0), then steps 6, 7 and 21 (the rollout of the new api, worker and portal pods, 23:51:36Z to 23:53:19Z, rc 0). Mac load average 7.7 before step 5, 9.1 after; the Mac otherwise idle (the CRC VM only, no kind). Node requests 83 to 84% memory, 77 to 79% CPU; no node pressure condition.crc-guard.py snapshotcompared withs0.json: no difference. Steps 22 to 25 and the live checks not run, pending the owner.This is run 19's pattern again (step 5's build and push slows the whole node), now with a third project's controller (Kyverno, since 2026-11-17) losing its lease in the same second.
ephico2real2 commentedon Nov 18, 2026
OB1 run 23 (deploy of 1537977, 2026-11-18): keycloak-0 0 restarts throughout (uid 3cb9034c, started 2026-11-15T01:04:19Z); the guard's watch 128 polls, 0 breaches, max gap 14 s. One liveness and one readiness probe timeout on keycloak-0 at 06:15:19Z, during step 5's image build and push (Mac load 9.71 at its end; CRC VM the only other load). The kind cluster was deleted before the run (down.sh) and re-created after step 24 (up.sh, 06:20-06:23Z; Mac load up to 9.55, podman VM 3.99): no restart and no probe event in that window. Evidence: workbench/cmapi/ob1-run23/probe.log, resume.md.
ephico2real2 commentedon Nov 18, 2026
2026-11-18, about 15:38–15:48Z:
podman machine ssh 'sudo fstrim -av'during the cmapi disk cleanup (it trimmed 99.5 GiB of the Podman VM disk) loaded the Mac (load 13–15) and CRC's pods failed probes: the API server answered TLS handshake timeouts for about 2 minutes;cmapi-db-1restarted once (15:44:56Z, liveness timeouts then startup failures),cmapi-portalonce (15:40:20Z), Kyverno's admission controller 4 times (last 15:48:01Z) and its reports controller twice (last 15:39:08Z). Every pod inkeycloak(keycloak-0, postgres-0, the operator, the realm imports) stayed at 0 restarts. The coordinator first reported no restart: the check ran before the restarts landed; corrected. Lesson: fstrim of the Podman VM is heavy I/O and counts as Mac load under this issue; run it only with CRC's workloads idle and a watch running, or not while CRC is up.ephico2real2 commentedon Nov 18, 2026
Observed by OB1 run 24 on 2026-11-18, read-only, before its deploy (measured from events at 16:35Z):
keycloak-0andpostgres-0logged liveness/readiness probe timeouts;openshift-network-diagnosticslogged outages ofapi.crc.testing:6443(60 s) andapi-int.crc.testing:6443(2 min).cmapi-portalwas killed (exit 137, 15:40:20Z) andcmapi-db-1restarted (Completed, 15:44:56Z). Kyverno's admission controller is at 4 restarts and the reports controller at 3 (run 23 ended with 0 and 1).keycloak-0did not restart (0, started 2026-11-15T01:04:19Z).chrome-headless-shellprocesses from 15:31Z to about 15:45Z (pmset -g log); that they caused the stall is inferred, not measured.ephico2real2 commentedon Nov 19, 2026
OB1 run 25 (deploy of main b8ee59e on CRC): the guard stopped the run during step 5 (image build and push). Measured, read-only:
watch.log: 02:24:50Z last ok poll, then a 23 s gap, then 02:25:30ZBREACH corp=0; inkcast-prod=0; inkcast-staging=0; master=0; tutorial=0(every realm unanswered through the Route),keycloak-0 0/Truethroughout; 02:26:06Z "Keycloak answers again after 36 s; the run stays stopped". 7 breach lines in 136.s0/s5snapshots: no difference.watch ended rc=3.keycloak-00 restarts (started 2026-11-15T01:04:19Z), but readiness/liveness probe timeouts at 02:25:06Z, 02:25:33Z, 02:27:14Z.router-defaultkilled on liveness at 02:25:15Z and restarted 02:25:42Z (restarts now 4), which is why every realm read 0; Kyverno admission controller restarted (4 -> 5) and reports controller (0 -> 1) at 02:25:41-43Z; probe timeouts on cmapi-db-1, cmapi-portal, mailpit, postgres-0. No cmapi pod restarted.Step 6 then refused at its gate; nothing was applied (no
cmapi-trusted-ca, pods still 282fb89). Resuming is the owner's call.ephico2real2 commentedon Nov 25, 2026
Observed by OB1 run 39 on 2026-11-25 at 05:14Z, read-only, before its deploy. The event happened between runs: run 38 ended at about 12:57Z on 2026-11-24, and no run was active.
keycloak-0restarted once: 0 -> 1, last stateError, exit 137, finished 2026-11-24T15:05:29Z, running again from 15:34:48Z.pods-endwith run 39'spods-before(podsdiff.py): 142 pods before and after, and 66 pods outsidecmapirestarted. Most last terminations fall between 15:04Z and 15:46Z, with a second group at about 17:35Z. They includeopenldap-server(15:05:31Z),openshift-apiserver,oauth-openshift, cert-manager, Kyverno (admission 34 -> 40, reports 20 -> 23),inkcast-pg-1, theinkcastandopenfgapods, andcsi-hostpathplugin.cmapi: api 0 -> 3, worker 0 -> 2 (exit 137 at 15:37:20Z), portal 0 -> 1 (exit 137 at 15:07:48Z), db 8 -> 9 (Errorat 15:34:09Z). cmapi's CRC cluster record showsstatusSince2026-11-24T15:44:20Z, which is when it reconnected.Readyand its memory requests are 14480Mi (74%).Run 39 takes these counts as its baseline (
keycloak-0= 1) and watches for any rise during the run. Files:workbench/cmapi/ob1-run39/logs/pods-before.txt, andob1-run38/logs/pods-end.txtfor comparison.ephico2real2 commentedon Nov 25, 2026
OB1 run 39 (deploy of main
160bd83to CRC): the guard stopped the run during step 21. Everything below was measured read-only.workbench/cmapi/ob1-run39/logs/watch.log). At 05:24:08Z every realm went unanswered through the Route:BREACH corp=0; inkcast-prod=0; inkcast-staging=0; master=0; tutorial=0.keycloak-0stayed1/Truethe whole time. At 05:24:38Z the watch logged "Keycloak answers again after 29 s; the run stays stopped". It wrote$STOPand logged 6 breach lines. It ended at 05:28:33Z withwatch ended rc=3.keycloak-0was at 1 restart before and after the stop. That count comes from the event of 2026-11-24 15:05Z, which happened between runs (see the previous comment). There was one liveness probe timeout at 05:24:59Z and no restart.router-default-84d99846d9-h7fswinopenshift-ingresswas killed by its liveness probe and restarted (15 -> 16, at 05:24:31Z). It had logged liveness and readiness probe timeouts from 05:24:07Z, thenbackend-http failed. This is the only restart outsidecmapiin this run (podsdiff.py, before vs end: 142 -> 142 pods; the other changes are the inkcastenv-secretsCronJob runs).logs/events-around-stop.txt):openfgain inkcast-staging and inkcast-prod,openshift-kube-scheduler-crc,console,openshift-config-operator,csi-hostpathplugin,openshift-adp,hello-nginxin demo-rnd. No restart came from these.podman-build=0).router-defaultwas killed on liveness during a deploy step while Keycloak stayed up.s0(logs/end-compare.txt, 05:28:29Z).$STOPand$STOP.aliveare left in place, and nothing was done on Keycloak.160bd8387c: api and worker oncmapi@sha256:b66f5848…, portal oncmapi-portal@sha256:62ec85cd…, all Ready with 0 restarts, alembic 0009, and the database unchanged (19 requests, 26 audit events).Resuming is the owner's call, per docs/13 "If Keycloak restarts" 5: from step 12.
ephico2real2 commentedon Nov 25, 2026
OB1 run 39: on 2026-11-25 the owner decided, through the coordinator, to resume with checks only and no redeploy. CRC already runs
160bd8387c, and step 21 ended with rc 0. The resume needs the stop file removed. Claude Code's permission system refused the agent that removal ("Undermining Oversight"), so the stop file is still in place and nothing has run since. #669 has the exact command. The baselines for the resume arekeycloak-0at 1 restart androuter-defaultat 16.ephico2real2 commentedon Nov 25, 2026
OB1 run 39, after the resume with checks only: a second stop at 09:16:58Z on 2026-11-25. The watch, started at 09:08:20Z, logged
BREACH keycloak-0 unreadable: ... Unable to connect to the server: net/http: TLS handshake timeout, which means the OpenShift API server was unreachable. At 09:17:17Zcorpgave no answer (0). At 09:19:49Z every realm answered 0 through the Route. At 09:20Z,oc get pod keycloak-0timed out on the client side ("client rate limiter Wait returned an error: context deadline exceeded"). The Mac at 09:20:13Z: load 12.65 / 19.12 / 19.39, the CRC VM process at 634% CPU, a second Virtualization VM at 87%, and another Claude session at 189%. At 09:08:03Z the load was 27.78. This run's own load at that moment was one Chrome walk of the Policies tab (09:17–09:18Z) and single API reads. As the coordinator ruled, the run stops here and does not resume. The stop file is kept, and the watch is left running so that it records how long the outage lasts. Files:workbench/cmapi/ob1-run39/logs/watch-2.logandlogs/mac-at-breach2.txt.ephico2real2 commentedon Nov 27, 2026
OB1 run 45 (CRC, deploying main
96b1621), 2026-11-27: the guard's watch stopped the run.watch.log, 03:02:49Z:realms {'corp': 0, 'inkcast-prod': 200, 'inkcast-staging': 200, 'master': 200, 'tutorial': 200} keycloak-0 9/True BREACH corp=0, then "STOP", then in the same second "Keycloak answers again after 0 s; the run stays stopped". One breach line of 81 (02:57:42Z-03:04:09Z);watch ended rc=3. The line before it is 03:02:38Z: that poll took 11 s instead of 5, so thecorpGET went unanswered for its 3 s timeout (status 0 is "no HTTP answer" inhttp_get).oc get events -A): keycloak-0 liveness (03:02:43Z) and readiness (03:02:46Z) probes timed out ("request canceled while waiting for connection"); cert-manager-webhook readiness timeout (03:02:44Z); csi-hostpathplugin liveness 500 (03:02:46Z); thanos-querier liveness timeout (03:02:47Z). No restart anywhere: pods outside cmapi 147 -> 147, restarts changed 0; keycloak-0 restarts 9 throughout, Ready; router-default unchanged at 23..../adoption/candidatesand.../adoption/skipped(each a few GitHub reads and a namespace list), after step 22 had ended at 03:00:38Z. Mac load at 03:03:49Z: 7.25 7.65 6.71; nodeoc adm top: cpu 26%, memory 75%.$STOPis left in place inworkbench/cmapi/wt45-deploy/deploy/rendered/wave1-run.Evidence:
workbench/cmapi/ob1-run45/logs/watch.log,events-around-stop.txt,keycloak-0-after-stop.txt,api-log-around-stop.txt. The same pattern as runs 21, 25 and 39: a node-wide probe stall, Keycloak itself not restarted.ephico2real2 commentedon Dec 1, 2026
Run 48 (CRC, 2026-12-01) found #770. After step 21, the OpenShift router's haproxy reload failed ("Failed to get the sockets from the old process"), and cmapi's Route has answered 503 since 14:54Z. The guard watch then breached at 15:04:24Z: three realms answered 0 for one check and answered again 4 s later. Between 15:05Z and 15:11Z, five pods outside cmapi restarted: cert-manager-webhook, kyverno admission and reports, cnpg-controller-manager, and csi-hostpathplugin. The node was at CPU 79% and memory 81%, and the Mac's load was 12 to 14.