Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update storaged dataVolumeClaims panic after enable webhook #306

Closed
MegaByte875 opened this issue Sep 29, 2023 · 1 comment
Closed

Update storaged dataVolumeClaims panic after enable webhook #306

MegaByte875 opened this issue Sep 29, 2023 · 1 comment
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/none Severity of bug type/bug Type: something is unexpected

Comments

@MegaByte875
Copy link
Contributor

Please check the FAQ documentation before raising an issue

Describe the bug (required)
I0929 07:05:59.572657 1 helper.go:197] receive admission with resource [default/nebula], GVK apps.nebula-graph.io/v1alpha1, Kind=NebulaCluster, operation UPDATE I0929 07:05:59.572996 1 log.go:194] http: panic serving 10.244.0.0:50827: runtime error: invalid memory address or nil pointer dereference goroutine 16855 [running]: net/http.(*conn).serve.func1() net/http/server.go:1854 +0xbf panic({0x2150f60, 0x3caf220}) runtime/panic.go:890 +0x263 github.com/vesoft-inc/nebula-operator/pkg/webhook/nebulacluster.(*ValidatingAdmission).Handle.func1() github.com/vesoft-inc/nebula-operator/pkg/webhook/nebulacluster/validating.go:44 +0x58 panic({0x23095e0, 0xc000e4ddb8}) runtime/panic.go:884 +0x213 github.com/vesoft-inc/nebula-operator/pkg/webhook/nebulacluster.validateNebulaClusterUpdateStoragedDataVolume(0xc000c0ec00?, 0xc000a78400) github.com/vesoft-inc/nebula-operator/pkg/webhook/nebulacluster/helper.go:180 +0x9c7 github.com/vesoft-inc/nebula-operator/pkg/webhook/nebulacluster.validateNebulaClusterUpdateStoraged(0xc000c0ec00, 0xc000a78400) github.com/vesoft-inc/nebula-operator/pkg/webhook/nebulacluster/helper.go:165 +0x61a github.com/vesoft-inc/nebula-operator/pkg/webhook/nebulacluster.validateNebulaClusterUpdate(0xc000c0ec00, 0xc000a78400) github.com/vesoft-inc/nebula-operator/pkg/webhook/nebulacluster/helper.go:217 +0x68a github.com/vesoft-inc/nebula-operator/pkg/webhook/nebulacluster.(*ValidatingAdmission).Handle(_, {_, _}, {{{0xc001852ff0, 0x24}, {{0xc000e4d9f8, 0x14}, {0xc000a85690, 0x8}, {0xc000a856b0, ...}}, ...}}) github.com/vesoft-inc/nebula-operator/pkg/webhook/nebulacluster/validating.go:72 +0x5f2 sigs.k8s.io/controller-runtime/pkg/webhook/admission.(*Webhook).Handle(_, {_, _}, {{{0xc001852ff0, 0x24}, {{0xc000e4d9f8, 0x14}, {0xc000a85690, 0x8}, {0xc000a856b0, ...}}, ...}}) sigs.k8s.io/[email protected]/pkg/webhook/admission/webhook.go:169 +0x20a sigs.k8s.io/controller-runtime/pkg/webhook/admission.(*Webhook).ServeHTTP(0xc0009754a0, {0x7f9f32978618?, 0xc000c42c30}, 0xc0010d2300) sigs.k8s.io/[email protected]/pkg/webhook/admission/http.go:98 +0xc94 github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1({0x7f9f32978618, 0xc000c42c30}, 0x29ab500?) github.com/prometheus/[email protected]/prometheus/promhttp/instrument_server.go:60 +0xd4 net/http.HandlerFunc.ServeHTTP(0x29ab5f0?, {0x7f9f32978618?, 0xc000c42c30?}, 0xc0010f3828?) net/http/server.go:2122 +0x2f github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1({0x29ab5f0?, 0xc0017502a0?}, 0xc0010d2300) github.com/prometheus/[email protected]/prometheus/promhttp/instrument_server.go:147 +0xc5 net/http.HandlerFunc.ServeHTTP(0x70d485?, {0x29ab5f0?, 0xc0017502a0?}, 0x40dc4a?) net/http/server.go:2122 +0x2f github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerDuration.func2({0x29ab5f0, 0xc0017502a0}, 0xc0010d2300) github.com/prometheus/[email protected]/prometheus/promhttp/instrument_server.go:109 +0xc7 net/http.HandlerFunc.ServeHTTP(0xc0017502a0?, {0x29ab5f0?, 0xc0017502a0?}, 0x24a0080?) net/http/server.go:2122 +0x2f net/http.(*ServeMux).ServeHTTP(0xc001852fad?, {0x29ab5f0, 0xc0017502a0}, 0xc0010d2300) net/http/server.go:2500 +0x149 net/http.serverHandler.ServeHTTP({0x299a098?}, {0x29ab5f0, 0xc0017502a0}, 0xc0010d2300) net/http/server.go:2936 +0x316 net/http.(*conn).serve(0xc0010cad80, {0x29ac6c8, 0xc000b8faa0}) net/http/server.go:1995 +0x612 created by net/http.(*Server).Serve net/http/server.go:3089 +0x5ed

Your Environments (required)

  • OS: uname -a
  • Commit id (e.g. a3ffc7d8)

How To Reproduce(required)

Steps to reproduce the behavior:

  1. Step 1
  2. Step 2
  3. Step 3

Expected behavior

Additional context

@MegaByte875 MegaByte875 added the type/bug Type: something is unexpected label Sep 29, 2023
@github-actions github-actions bot added affects/none PR/issue: this bug affects none version. severity/none Severity of bug labels Sep 29, 2023
@MegaByte875
Copy link
Contributor Author

#307

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/none Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

1 participant