forked from mtusi2026/mtusi2026lab5
37 lines
2.5 KiB
Plaintext
37 lines
2.5 KiB
Plaintext
python student-tests/failure_s3.py
|
|
=== s3 stopped
|
|
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 exited 2026-10-25T18:19:54.206
|
|
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
|
|
both api replicas are out of the balancer after 1.0 s: api1 DOWN, api2 DOWN
|
|
replica b0db3e40abfe: /health/live 200, /health/ready 503
|
|
replica ef44b0d4c0a1: /health/live 200, /health/ready 503
|
|
GET /health/ready -> 503 unavailable in 0.00 s (answered by the balancer)
|
|
POST /api/v1/chats/6f457b5b-fe8c-45c4-a569-dcb9e04b2539/attachments -> 503 unavailable in 0.00 s (answered by the balancer)
|
|
GET /api/v1/attachments/9605875a-7999-471f-8e6b-500c0d99ccb6/content -> 503 unavailable in 0.00 s (answered by the balancer)
|
|
GET /api/v1/chats/6f457b5b-fe8c-45c4-a569-dcb9e04b2539/messages -> 503 unavailable in 0.00 s (answered by the balancer)
|
|
=== s3 started
|
|
replicas are back in the balancer after 23.7 s: api1 UP, api2 UP
|
|
the file uploaded before the outage is intact (sha256 99ea7533c441f79c...)
|
|
new upload -> 202 -> ready (cd112988-40ba-4267-951d-033ea82b1ca3)
|
|
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
|
|
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
|