Improve tracing / reconciliation when clusterOperation.reconciliationPaused is set to true
还没有人认领这个 Issue。
评估
调研方向
首先定位处理 clusterOperation.reconciliationPaused 的 reconciliation 路径,并检查错误是如何记录以及如何作为 CR 事件发出的。完成的标准是,已暂停的集群不会产生重复的依赖项错误,而是清晰地记录 reconciliation 已暂停;检查该行为是否如所建议的那样也适用于其他 operator。
由索引模型根据 Issue 内容生成。
描述
When clusterOperation.reconciliationPaused is set to true, the operator still runs through reconciliation without applying anything. This leads to errors in the operator logs when required dependencies are not applied and missing (e.g. retrieve a nodeport from a service etc.)
2024-02-13T09:18:40.770253Z ERROR stackable_operator::logging::controller: Failed to reconcile objec │
│ t controller.name="opacluster.opa.stackable.tech" error=reconciler for object OpaCluster.v1alpha1.op │
│ a.stackable.tech/opa.platform failed error.sources=[failed to apply role Service, Kubernetes reporte │
│ d error: ApiError: services "opa" not found: NotFound (ErrorResponse { status: "Failure", message: " │
│ services \"opa\" not found", reason: "NotFound", code: 404 }), ApiError: services "opa" not found: N │
│ otFound (ErrorResponse { status: "Failure", message: "services \"opa\" not found", reason: "NotFound │
│ ", code: 404 }), services "opa" not found: NotFound]
This shadows the real problem (in this case it was hard to see that the operator is actually not reconciling that cluster) and the errors is logged constantly in the operator and the CR events.
We need to improve the operator logging in this case to "ignore" errors and simply log that this cluster is currently not reconciled.
This may affect other operators as well.
- 主要语言
- Rust
- 星标
- 21
- 派生
- 5
- 平均合并
- 12 小时 44 分钟
- 30 天内合并 PR
- 11
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
stackabletech/opa-operator 的其他 Issue
-
type/bug
难度 4/5 3-5 天 新手友好度 52/100
stackabletech/opa-operator#823 ·
-
难度 5/5 一周以上 新手友好度 30/100
stackabletech/opa-operator#766 ·
-
难度 4/5 3-5 天 新手友好度 35/100
stackabletech/opa-operator#733 ·
-
难度 2/5 半天 新手友好度 50/100
stackabletech/opa-operator#724 ·
-
type/bug
难度 5/5 一周以上 新手友好度 20/100
stackabletech/opa-operator#718 ·
查看 stackabletech/opa-operator 的全部 Issue
相似的 Issue
-
risk:low runtime status:in-progress type:test
难度 1/5 1 小时以内 新手友好度 92/100
zeroclaw-labs/zeroclaw#11023 ·
-
good first issue refactor
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 84/100
EricSpencer00/Resilient#4835 · 1 条评论 ·
-
agent:ready documentation
难度 2/5 1-3 小时 新手友好度 88/100
cesarferreira/stax#890 ·
-
bug
难度 1/5 1 小时以内 新手友好度 90/100