Error while proxying request - [http2: Transport received Server's graceful shutdown GOAWAY]

オープン
#180 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go, kubernetes

調査の方向性

まず internal/ansible/proxy/kubectl.go 内でプロキシエラーを追跡し、特に responder.Error と newServer を確認してから、スタックトレースに示されている周辺の ReverseProxy とキャッシュレスポンス処理を調査します。可能であれば HTTP/2 GOAWAY のシナリオを再現し、観測されたプロキシエラーを出力せずに graceful shutdown を処理できることを完了条件とします。

索引モデルが issue の本文から書いたものです。

説明

Bug Report

What did you do?

Observe Operator logs

What did you expect to see?

No error messages

What did you see instead? Under which circumstances?
{
   "level":"error",
   "ts":"2025-11-09T14:44:53Z",
   "logger":"proxy",
   "msg":"Error while proxying request",
   "error":"http2: Transport: cannot retry err [http2: Transport received Server's graceful shutdown GOAWAY] after Request.Body was written; define Request.GetBody to avoid this error",
   "stacktrace":"
	github.com/operator-framework/ansible-operator-plugins/internal/ansible/proxy.(*responder).Error
		ansible-operator-plugins/internal/ansible/proxy/kubectl.go:164
	net/http/httputil.(*ReverseProxy).ServeHTTP
		/opt/hostedtoolcache/go/1.24.3/x64/src/net/http/httputil/reverseproxy.go:486
	k8s.io/apimachinery/pkg/util/proxy.(*UpgradeAwareHandler).ServeHTTP
		/home/runner/go/pkg/mod/k8s.io/[email protected]/pkg/util/proxy/upgradeaware.go:293
	github.com/operator-framework/ansible-operator-plugins/internal/ansible/proxy.newServer.stripLeaveSlash.func1
		ansible-operator-plugins/internal/ansible/proxy/kubectl.go:276
	net/http.HandlerFunc.ServeHTTP
		/opt/hostedtoolcache/go/1.24.3/x64/src/net/http/server.go:2294
	net/http.(*ServeMux).ServeHTTP
		/opt/hostedtoolcache/go/1.24.3/x64/src/net/http/server.go:2822
	github.com/operator-framework/ansible-operator-plugins/internal/ansible/proxy.Run.removeAuthorizationHeader.func3
		ansible-operator-plugins/internal/ansible/proxy/proxy.go:282
	net/http.HandlerFunc.ServeHTTP
		/opt/hostedtoolcache/go/1.24.3/x64/src/net/http/server.go:2294
	github.com/operator-framework/ansible-operator-plugins/internal/ansible/proxy.(*cacheResponseHandler).ServeHTTP
		ansible-operator-plugins/internal/ansible/proxy/cache_response.go:150
	net/http.serverHandler.ServeHTTP
		/opt/hostedtoolcache/go/1.24.3/x64/src/net/http/server.go:3301
	net/http.(*conn).serve
		/opt/hostedtoolcache/go/1.24.3/x64/src/net/http/server.go:2102"
}
Environment

Kubernetes cluster type:

OpenShift 4.18.25

$ operator-sdk version

ansible-operator version: "v1.41.0", commit: "8e923f25256c2b64c85a2c9dfabd157e8f880ea8", kubernetes version: "v1.32.0", go version: "go1.24.4", GOOS: "linux", GOARCH: "amd64"

$ go version (if language is Go)

1.24.4

$ kubectl version

1.29.7

Possible Solution

The client should possibly handle GOAWAY more gracefully.

Additional context

This appears as part of

(Set goaway chance to 0.001)

主要言語
Go
スター
12
フォーク
35
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

operator-framework/ansible-operator-plugins のほかの issue

operator-framework/ansible-operator-plugins の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。