-
Bug
-
Resolution: Unresolved
-
Normal
-
4.21
-
Quality / Stability / Reliability
-
False
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Description of problem:
The nutanix-cloud-controller-manager pod goes in Panic state due to missing nutanix-credentials secret
Version-Release number of selected component (if applicable):
4.18
$ oc logs nutanix-cloud-controller-manager-7b88cfdff9-mtxz5 -n openshift-cloud-controller-manager 2025-09-03T09:28:41.449552047Z E0903 09:28:41.449549 1 client.go:65] failed to get management endpoint: secret "nutanix-credentials" not found 2025-09-03T09:28:41.449650779Z E0903 09:28:41.449627 1 panic.go:261] "Observed a panic" panic="runtime error: invalid memory address or nil pointer dereference" panicGoValue="\"invalid memory address or nil pointer dereference\"" stacktrace=< 2025-09-03T09:28:41.449650779Z goroutine 332 [running]: 2025-09-03T09:28:41.449650779Z k8s.io/apimachinery/pkg/util/runtime.logPanic({0x2a678c8, 0x40706c0}, {0x22879e0, 0x3f362b0}) 2025-09-03T09:28:41.449650779Z /build/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:107 +0xbc 2025-09-03T09:28:41.449650779Z k8s.io/apimachinery/pkg/util/runtime.handleCrash({0x2a678c8, 0x40706c0}, {0x22879e0, 0x3f362b0}, {0x40706c0, 0x0, 0x0?})
Actual results:
The pod goes to crashloopbackoff with `invalid memory address or nil pointer dereference` error
Expected results:
Their must be error handling inside the container logic and pod/container must not panic.
Additional info: