Files
tf_provider/apps/iot-demo/HISTORY/05-test-stand-fail.md
T

38 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Шаг 5 — Apply на тестовом стенде (неудача)
**Дата:** 2026-07-21
## Результат
Тестовый стенд (`k8s-3` и `k8s-4`) неработоспособен — инфраструктурные проблемы.
## Что создалось
| Ресурс | Статус |
|--------|--------|
| nubes_kafka.main (iot-kafka) | ✅ Создан |
| nubes_kafka_topic.events | ✅ Создан |
| nubes_kafka_user.app | ❌ operations формат |
| nubes_clickhouse.main (iot-ch) | ❌ helm.altinity.com timeout |
| nubes_superset.dash | ❌ IAM 408 timeout |
| nubes_flask.producer | ❌ pod не запустился |
| nubes_flask.consumer | ❌ (зависит от CH) |
## Ошибки
1. **ClickHouse**: GitHub/Helm repo недоступен — `context deadline exceeded`
2. **Superset**: IAM error 408 — auth-api-test таймаутит
3. **Flask producer**: поды не стартуют — `jlib.k8s [correctReplicaActive] ERROR`
4. **Kafka user**: `operations` должен быть `Create,Describe,Read,Write` (исправлено)
## Исправления в коде
- `producer.tf` / `consumer.tf`: `vault_secrets` обёрнуты в `try()` с fallback на `"secrets"`
- `kafka.tf`: `operations = "Create,Describe,Read,Write"` (было `"read,write"`)
- `locals.tf`: `ch_resource_name = "iot-ch"` (было `"iot-clickhouse"`)
- `terraform.tfvars`: `realm = "k8s-4-sandbox-nubes-ru"`
## Решение
Перенос на DEV-стенд.