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
+10 -6
View File
@@ -156,12 +156,16 @@ paths:
- ключи передаются в botocore всегда, даже пустые: с `None` он искал
бы учётные данные в окружении и `~/.aws` хоста. Пустые ключи —
`warning` при старте;
- ошибки: отказ соединения, обрыв, таймаут, 5xx и отказ в учётных
данных (`AccessDenied`, `InvalidAccessKeyId`,
`SignatureDoesNotMatch`) — `ObjectStorageUnavailable` (наследник
`ServiceUnavailable`, 503 `unavailable`); отсутствующий ключ —
`StoredObjectMissing` (`head` — `None`, `delete` — не ошибка);
прочие ошибки S3 и botocore не перехватываются — 500, дефект;
- ошибки: отказ соединения, обрыв, таймаут, 5xx, отказ в учётных
данных (`InvalidAccessKeyId`, `SignatureDoesNotMatch`), отказ в
доступе (`AccessDenied`, 403 без тела у HEAD) и отсутствующий bucket
(`NoSuchBucket`) — `ObjectStorageUnavailable` (наследник
`ServiceUnavailable`, 503 `unavailable`); отсутствующий ключ
(`NoSuchKey`, 404 без тела у HEAD) — `StoredObjectMissing` (`head` —
`None`, `delete` глушит только его). Удалённый bucket не выдаётся за
отсутствующий объект; исключение — HEAD: SeaweedFS отвечает тем же
404 без тела. Прочие ошибки S3 и botocore не перехватываются — 500,
дефект;
- обхода и пропуска после отказа, как у Valkey, нет: без S3 путь
вложений всё равно 503. `/health/ready` S3 не проверяет (спек
`health`, решение 3 `PLAN.md`): текст работает без него.