Initial failed deployment can not be fixed
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- kubernetes, postgresql, redis, rust
调研方向
以 airflow.yml 和 AirflowCluster 的 reconciliation 路径作为入口;复现 PostgreSQL 初始化失败,删除并重新应用资源,并检查 operator 在重试后如何记录终止失败。完成的标准是:修正连接并重新应用后,数据库初始化和集群部署会重试并成功,且无需重新安装 operator 或其 CRD。
由索引模型根据 Issue 内容生成。
描述
Affected version
0.5.0-nightly
Current and expected behavior
-
stackablectl --namespace=stackable operator install airflow -
helm repo add bitnami https://charts.bitnami.com/bitnami -
helm install airflow-postgresql bitnami/postgresql --version 11.0.0 \ --set auth.username=airflow \ --set auth.password=airflow \ --set auth.database=airflow -
helm install redis bitnami/redis \ --set auth.password=redis -
Wait for all ressources are deployed
-
create airflow file
-
# airflow.yml apiVersion: v1 kind: Secret metadata: name: simple-airflow-credentials type: Opaque stringData: adminUser.username: airflow adminUser.firstname: Airflow adminUser.lastname: Admin adminUser.email: [email protected] adminUser.password: airflow connections.secretKey: thisISaSECRET_1234 connections.sqlalchemyDatabaseUri: postgresql+psycopg2://airflow:[email protected]/airflow connections.celeryResultBackend: db+postgresql://airflow:[email protected]/airflow connections.celeryBrokerUrl: redis://:redis@redis-master:6379/0 --- apiVersion: airflow.stackable.tech/v1alpha1 kind: AirflowCluster metadata: name: airflow spec: version: 2.2.4-python3.9-stackable0.3.0 statsdExporterVersion: v0.22.4 executor: CeleryExecutor loadExamples: true exposeConfig: false credentialsSecret: simple-airflow-credentials webservers: roleGroups: default: replicas: 1 workers: roleGroups: default: replicas: 2 schedulers: roleGroups: default: replicas: 1 -
kubectl apply -f airflow.yml
This config has a bug (wrong database url)
The operator now tries to deploy airflow but the database init fails.
After seven retries all the retries are done and we are in a failure state.
Now I deleted the deployment with
kubectl delete -f airflow.yml
After that i fixed the bug and run kubectl apply -f airflow.yml. This does not try again the database init and just goes to error state.
My expected behavior would be that the database init would tried again and succeeds this time.
Possible solution
Delete the airflow operator and the Custom ressource definition and reinstall the operator. Then apply the correct yaml file. This time the database init succeeds.
Additional context
No response
Environment
Client Version: v1.22.4
Server Version: v1.23.9
Would you like to work on fixing this bug?
No response
- 主要语言
- Rust
- 星标
- 32
- 派生
- 6
- 平均合并
- 2 天 1 小时
- 30 天内合并 PR
- 15
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
stackabletech/airflow-operator 的其他 Issue
-
type/bug
难度 2/5 1-3 小时 新手友好度 72/100
stackabletech/airflow-operator#855 · 1 条评论 ·
维护者通常 1 天内回复
-
good first issue type/feature-improvement
难度 4/5 3-5 天 新手友好度 45/100
stackabletech/airflow-operator#760 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 42/100
stackabletech/airflow-operator#697 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
stackabletech/airflow-operator#638 ·
维护者通常 1 天内回复
-
type/feature-new
难度 5/5 一周以上 新手友好度 25/100
stackabletech/airflow-operator#593 ·
维护者通常 1 天内回复
查看 stackabletech/airflow-operator 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
install: root SSH tmpfiles.d drop-in is labeled etc_runtime_t instead of etc_t可能已有人在做 @andrewdunndev 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
[Misdetection] `text/tab-separated-values` file misdetected as `text/tsv`可能已有人在做 @bact 今天认领。 未关闭misdetection needs triage
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
C-bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复