python student-tests/failure_s3.py
=== s3 stopped
SERVICE   CONTAINER     STATE                STARTED AT (UTC)
api       48dc392933dc  running (healthy)    2026-10-26T16:24:32.726
api       c1b7e1ab5673  running (healthy)    2026-10-26T16:18:45.657
broker    9f909ed7ecea  running (healthy)    2026-10-26T16:19:00.163
lb        8be67a2e86b7  running (healthy)    2026-10-26T16:15:42.154
migrate   a5a9934b4d6b  exited               2026-10-26T16:23:38.842
postgres  d2bfd48385f1  running (healthy)    2026-10-26T16:15:17.840
s3        892c7ca290f2  exited               2026-10-26T16:15:17.826
s3-init   deab1aa2b022  exited               2026-10-26T16:23:38.843
valkey    4e223cb9301e  running (healthy)    2026-10-26T16:15:17.820
worker    292a36c54a41  running (healthy)    2026-10-26T16:23:41.416
both api replicas are out of the balancer after 0.9 s: api1 DOWN, api2 DOWN
replica 48dc392933dc: /health/live 200, /health/ready 503
replica c1b7e1ab5673: /health/live 200, /health/ready 503
GET /health/ready -> 503 unavailable in 0.05 s (answered by the balancer)
POST /api/v1/chats/c3165ff5-5952-4666-84df-aa7e4dab7fb9/attachments -> 503 unavailable in 0.00 s (answered by the balancer)
GET /api/v1/attachments/bfbc3aa5-81f0-46d0-a26d-f901b8d9ee86/content -> 503 unavailable in 0.00 s (answered by the balancer)
GET /api/v1/chats/c3165ff5-5952-4666-84df-aa7e4dab7fb9/messages -> 503 unavailable in 0.02 s (answered by the balancer)
=== s3 started
replicas are back in the balancer after 18.0 s: api1 UP, api2 UP
the file uploaded before the outage is intact (sha256 99ea7533c441f79c...)
new upload -> 202 -> ready (59e03ee4-d3ff-40e9-b1e6-6a1d6fee4720)
SERVICE   CONTAINER     STATE                STARTED AT (UTC)
api       48dc392933dc  running (unhealthy)  2026-10-26T16:24:32.726
api       c1b7e1ab5673  running (unhealthy)  2026-10-26T16:18:45.657
broker    9f909ed7ecea  running (healthy)    2026-10-26T16:19:00.163
lb        8be67a2e86b7  running (unhealthy)  2026-10-26T16:15:42.154
migrate   a5a9934b4d6b  exited               2026-10-26T16:23:38.842
postgres  d2bfd48385f1  running (healthy)    2026-10-26T16:15:17.840
s3        892c7ca290f2  running (starting)   2026-10-26T16:24:57.683
s3-init   deab1aa2b022  exited               2026-10-26T16:23:38.843
valkey    4e223cb9301e  running (healthy)    2026-10-26T16:15:17.820
worker    292a36c54a41  running (healthy)    2026-10-26T16:23:41.416
PASS: S3 down -> replicas not ready (live 200, ready 503), the balancer answers 503 in the contract format, no 500 and no hanging; after S3 is back the original is intact and uploads work again
