fix: address s3-storage verify findings

- s3 healthcheck and fault hook probe wait for the volume server to
  register with master (first write after restart no longer waits ~5 s)
- s3-bootstrap mounts /data as tmpfs: no anonymous volume per container
- S3 client: NoSuchBucket and AccessDenied are 503 with their own error
  logs, not a missing object or rejected credentials; delete ignores only
  a missing key
- test_isolated verifies prefix removal (weed shell exits 0 on errors)
- s3_check derives ports from listening sockets in the s3 container
- readiness without S3 is also checked with s3 paused

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-20 21:23:38 +03:00
co-authored by Claude Opus 5.5
parent 7d340c0673
commit f57635a5fb
19 changed files with 388 additions and 80 deletions
+4 -2
View File
@@ -128,8 +128,10 @@ paths:
обращений к S3 допустимы адрес S3, bucket, ключ объекта, размер,
длительность и класс ошибки (спек `service-logging`). Клиент
(`src/infra/s3/client.py`, модуль `object_storage`) пишет `warning`
«Object storage is unavailable» на отказ и таймаут, `error` «Object
storage rejected credentials» с кодом ошибки S3, `debug` на успешный
«Object storage is unavailable» на отказ и таймаут, `error` с кодом
ошибки S3 — «Object storage rejected credentials» (неверный ключ или
подпись), «Object storage denied access» (`AccessDenied`) и «Object
storage bucket is missing» (`NoSuchBucket`), `debug` на успешный
вызов; текста исключения botocore в записи нет. Запись «Started API» —
с `s3_host`, `s3_port`, `s3_bucket`; пустые ключи — `warning`.
- Stack trace — только в лог, никогда в ответ.