sandbox-policy status: NotReady over Unknown, and no heal on an unreadable counter
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
Start with the Ready status logic in status.go:238-243 and the heal interval handling in nodeowner.go:361. Read the tests around those paths and the #1067 → #1075 stack context before changing behavior. Add coverage for an unreadable counter with an over-threshold rate, and for witness-only versus node-fault errors; done when both fixes and tests are included after the stack merges.
索引モデルが issue の本文から書いたものです。
説明
Follow-up from the review of #1073 (two lows, kept out of the stack).
1. NotReady should win over Unknown
When a witness counter cannot be read, Ready stays Unknown (reason WitnessUnknown) even if the fail-closed rate is over the NotReady threshold (status.go:238-243): the rate check runs only when Ready would be True. The rate shows in Degraded, but not in Ready.
A rate over the threshold is a known problem. Unknown should mean "nothing known is wrong, but a counter is unreadable".
Fix: evaluate the fail-closed rate first; report NotReady when it is over the threshold, and Unknown only otherwise. One test with an unreadable counter and a rate over the threshold.
2. Heals on an unreadable counter
A health error that is only an unreadable counter starts a heal. When the unreadable slot counter sits next to node faults, the error matches ErrNodeFaultsOnly and waits the 10-minute node interval (nodeowner.go:361).
An unreadable counter is not a fault that a heal clears; it is already reported as Unknown.
Fix: no heal for a witness-only error. Use the 10-minute node interval only when every leaf of the error is a node fault. Tests for both cases.
Done when
- Both changes are in, with tests, after the #1067 → #1075 stack merges.
- 主要言語
- Go
- スター
- 39
- フォーク
- 42
- 平均マージ
- 2日 16時間
- マージ済み PR(30日)
- 48
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
kubescape/node-agent のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
kubescape/node-agent#1112 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
kubescape/node-agent#1108 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
kubescape/node-agent#1107 ·
メンテナーはふだん 1 日以内に返信
-
sandboxpolicy: one shared identity table for all enforcement sections (latch the class at exec)オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
kubescape/node-agent#1106 ·
メンテナーはふだん 1 日以内に返信
-
Upgrade Inspektor Gadget to v0.57.0 via kubescape fork and preserve exec/path semantics対応中かも @ANAMASGARD が 23 日前に担当しました。 オープンenhancement
kubescape/node-agent#1050 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
kubescape/node-agent の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
needs discussion
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
openfga/openfga.dev#1436 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
digital-go-jp/abr-geocoder#457 ·
メンテナーはふだん 3 日以内に返信
-
benchmark
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
mozilla-ai/cq#601 ·
メンテナーはふだん 1 日以内に返信