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
+17
View File
@@ -542,6 +542,23 @@ design) и «Вопросы» (ждут ответа; ответ дописыв
17. **`rollout_from c50b721` — дефект переноса** (`KNOWN_ISSUES.md`):
профиль `rollout` проверен с `--from 5d5d8f9`.
Приняты 2026-10-20 в правках по `/opsx:verify` (tasks.md, группа 7),
подробности — design change `s3-storage`, «Уточнения apply», п. 8–13.
18. **Healthcheck S3 ждёт регистрации тома** (`/dir/status`, непустой
`DataNodes`): первая запись после рестарта — 10–40 мс вместо до
4,8 с при сроке 5 с. Та же проба — в `fault_hook.py`.
19. **`tmpfs: [/tmp, /data]` у `s3-bootstrap`**: без анонимного volume на
каждый контейнер.
20. **Клиент S3**: удалённый bucket и отказ в доступе — 503 с `error`
(«bucket is missing», «denied access»), а не «объекта нет» и не
«rejected credentials»; `delete` глушит только отсутствующий ключ.
Ограничение: HEAD без тела, удалённый bucket у `head` — `None`.
21. **`make test_isolated` проверяет уборку префикса** (`fs.ls` после
`fs.rm`): код 0 `weed shell` успеха не значит.
22. **`make s3_check` берёт порты из `netstat` контейнера S3**, а не из
фиксированного списка; проверка готовности без S3 — и для `pause`.
#### Вопросы
1. Как в apply добавить строки S3 в рабочий `.env`? Агент `.env` не