GVK resolution fails if metrics-server is unavailable
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
調査の方向性
kubectl -n kube-system delete pods -l k8s-app=metrics-server && stackablectl release install dev で失敗を再現し、その後 src/client/builder.rs:199 の GVK discovery と、src/client/mod.rs:467 周辺のエラーハンドリングを調査してください。修正では、metrics-server が利用できない場合でも release のインストールを継続できるようにしつつ、stackablectl が必要とする API グループの解決を維持する必要があります。
索引モデルが issue の本文から書いたものです。
説明
Affected version
stackablectl 24.7.1
Current and expected behavior
- Run
kubectl -n kube-system delete pods -l k8s-app=metrics-server && stackablectl release install dev - Observe that
stackablectlcrashes with the following error message:
ERROR failed with status 503 Service Unavailable
at src/client/builder.rs:199
WARN Unsuccessful data error parse: service unavailable
at src/client/mod.rs:467
An unrecoverable error occured: failed to execute release (sub)command
Caused by these errors (recent errors listed first):
1: failed to create Kubernetes client
2: failed to run GVK discovery
3: ApiError: "service unavailable\n": Failed to parse error data (ErrorResponse { status: "503 Service Unavailable", message: "\"service unavailable\\n\"", reason: "Failed to parse error data", code: 503 })
4: "service unavailable\n": Failed to parse error data
- Observe that
kubectlandk9sare able to manage the cluster just fine
I suspect that this comes down to metrics-server using K8s API aggregation, which allows it to provide a fake "resource" that is stored by itself rather than in etcd. This also means that that resource can be unavailable even if the apiserver and etcd are both doing fine.
Possible solution
We could either:
- Limit GVK resolution to the apigroups we care about
- Defer apigroup-specific resolution errors until accessing the relevant apigroup
Additional context
No response
Environment
Using k3s v1.31.0+k3s1 via k3d
Would you like to work on fixing this bug?
None
- 主要言語
- Rust
- スター
- 10
- フォーク
- 5
- 平均マージ
- 4時間 41分
- マージ済み PR(30日)
- 4
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
stackabletech/stackablectl のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
stackabletech/stackablectl#456 ·
-
RUSTSEC-2026-0221: `event-listener` allows `!Send` tags to cross thread boundaries via `StackSlot` オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
stackabletech/stackablectl#452 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
stackabletech/stackablectl#444 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
stackabletech/stackablectl#419 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
stackabletech/stackablectl#413 ·
stackabletech/stackablectl の 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 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
bisq-network/bisq-musig#204 ·
-
agent:ready documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
cesarferreira/stax#890 ·