python student-tests/run_failover.py hook: scripts/stop-one.cmd; api replicas: ['b0db3e40abfe', 'ef44b0d4c0a1'] === run 1: containers before (HAProxy: api1 UP, api2 UP) SERVICE CONTAINER STATE STARTED AT (UTC) api b0db3e40abfe running (healthy) 2026-10-25T18:28:33.999 api ef44b0d4c0a1 running (healthy) 2026-10-25T18:23:36.756 broker 9f909ed7ecea running (healthy) 2026-10-25T18:23:53.670 lb 8be67a2e86b7 running (healthy) 2026-10-25T18:20:04.043 migrate e6c2c825d38d exited 2026-10-25T18:28:07.167 postgres d2bfd48385f1 running (healthy) 2026-10-25T18:19:54.204 s3 892c7ca290f2 running (healthy) 2026-10-25T18:29:00.995 s3-init 08c2e7925d67 exited 2026-10-25T18:28:07.169 valkey 4e223cb9301e running (healthy) 2026-10-25T18:19:54.202 worker d9eced386d93 running (healthy) 2026-10-25T18:28:09.870 Executing explicit failover hook; hook output suppressed to avoid leaking secrets. {"observed_instances_before": 2, "successful_writes": 119, "failed_attempts": 0, "first_recovery_seconds": 5.11} PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. containers after (HAProxy: api1 UP) SERVICE CONTAINER STATE STARTED AT (UTC) api b0db3e40abfe running (healthy) 2026-10-25T18:28:33.999 api ef44b0d4c0a1 exited 2026-10-25T18:23:36.756 broker 9f909ed7ecea running (healthy) 2026-10-25T18:23:53.670 lb 8be67a2e86b7 running (healthy) 2026-10-25T18:20:04.043 migrate e6c2c825d38d exited 2026-10-25T18:28:07.167 postgres d2bfd48385f1 running (healthy) 2026-10-25T18:19:54.204 s3 892c7ca290f2 running (healthy) 2026-10-25T18:29:00.995 s3-init 08c2e7925d67 exited 2026-10-25T18:28:07.169 valkey 4e223cb9301e running (healthy) 2026-10-25T18:19:54.202 worker d9eced386d93 running (healthy) 2026-10-25T18:28:09.870 the hook stopped ef44b0d4c0a1 (X-Instance-Id of that replica = container ID); other api containers, postgres, valkey, s3 and lb kept running restored: docker start ef44b0d4c0a1 -> healthy and back in HAProxy (api1 UP, api2 UP) === run 2: containers before (HAProxy: api1 UP, api2 UP) SERVICE CONTAINER STATE STARTED AT (UTC) api b0db3e40abfe running (healthy) 2026-10-25T18:28:33.999 api ef44b0d4c0a1 running (healthy) 2026-10-25T18:30:14.430 broker 9f909ed7ecea running (healthy) 2026-10-25T18:23:53.670 lb 8be67a2e86b7 running (healthy) 2026-10-25T18:20:04.043 migrate e6c2c825d38d exited 2026-10-25T18:28:07.167 postgres d2bfd48385f1 running (healthy) 2026-10-25T18:19:54.204 s3 892c7ca290f2 running (healthy) 2026-10-25T18:29:00.995 s3-init 08c2e7925d67 exited 2026-10-25T18:28:07.169 valkey 4e223cb9301e running (healthy) 2026-10-25T18:19:54.202 worker d9eced386d93 running (healthy) 2026-10-25T18:28:09.870 Executing explicit failover hook; hook output suppressed to avoid leaking secrets. {"observed_instances_before": 2, "successful_writes": 125, "failed_attempts": 0, "first_recovery_seconds": 5.531} PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. containers after (HAProxy: api2 UP) SERVICE CONTAINER STATE STARTED AT (UTC) api b0db3e40abfe exited 2026-10-25T18:28:33.999 api ef44b0d4c0a1 running (healthy) 2026-10-25T18:30:14.430 broker 9f909ed7ecea running (healthy) 2026-10-25T18:23:53.670 lb 8be67a2e86b7 running (healthy) 2026-10-25T18:20:04.043 migrate e6c2c825d38d exited 2026-10-25T18:28:07.167 postgres d2bfd48385f1 running (healthy) 2026-10-25T18:19:54.204 s3 892c7ca290f2 running (healthy) 2026-10-25T18:29:00.995 s3-init 08c2e7925d67 exited 2026-10-25T18:28:07.169 valkey 4e223cb9301e running (healthy) 2026-10-25T18:19:54.202 worker d9eced386d93 running (healthy) 2026-10-25T18:28:09.870 the hook stopped b0db3e40abfe (X-Instance-Id of that replica = container ID); other api containers, postgres, valkey, s3 and lb kept running restored: docker start b0db3e40abfe -> healthy and back in HAProxy (api1 UP, api2 UP) PASS: public failover test passed 2 times; every api replica was stopped once and restored