You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting v1.15.3, and when specifying the --http-endpoint flag in the controller for prometheus metrics, the driver panics on startup with the following logs:
❯ docker run -it gcp-pd-csi-driver:test --http-endpoint=localhost:8080
I1217 18:06:19.372371 1 main.go:114] Operating compute environment set to: production and computeEndpoint is set to: <nil>
I1217 18:06:19.372771 1 main.go:123] Sys info: NumCPU: 20 MAXPROC: 1
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x181bb17]
goroutine 1 [running]:
k8s.io/component-base/metrics.(*CounterVec).Create(0x10?, 0xc00059fc58?)
<autogenerated>:1 +0x17
k8s.io/component-base/metrics.(*kubeRegistry).MustRegister(0xc0004ce1c0, {0xc000439b70, 0x1, 0x2065332?})
/go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/vendor/k8s.io/component-base/metrics/registry.go:169 +0xbe
sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/metrics.(*MetricsManager).RegisterPDCSIMetric(...)
/go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/metrics/metrics.go:83
main.handle()
/go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/cmd/gce-pd-csi-driver/main.go:150 +0x483
main.main()
/go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/cmd/gce-pd-csi-driver/main.go:115 +0x18a
I can reproduce the issue pretty consistently with the following setup:
Starting v1.15.3, and when specifying the
--http-endpoint
flag in the controller for prometheus metrics, the driver panics on startup with the following logs:I can reproduce the issue pretty consistently with the following setup:
docker buildx build --platform "linux/amd64" --tag gcp-pd-csi-driver:test --build-arg=BUILDPLATFORM=linux --build-arg=STAGINGVERSION=v1.15.3 -f Dockerfile --load .
docker run -it gcp-pd-csi-driver:test --http-endpoint=localhost:8080
And after running some
git bisect
, I found that the fist bad commit is this one:I haven't found what is causing the issue in the commit yet but I figured out that I could raise the issue so that other folks can investigate too.
The text was updated successfully, but these errors were encountered: