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
invalid memory address or nil pointer dereference" #30373
Comments
I can consistently repro this issue by just creating a node driver cluster, 2.5-head, commit 6ad4dce
020/12/08 03:05:20 [INFO] [mgmt-auth-crtb-controller] Creating clusterRoleBinding for membership in cluster c-jrg7w for subject u-qazomwr4m5 |
Unable to bring up a ha setup using rancher 2.5-head - commit id: Rancher keeps restarting |
Verified the fix 2.5-head, commit b2953cb and
Cluster provisioned without error and cluster is up and running. |
On 2.5-head HA setup - commit id: |
What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):
2.5-head, commit 6ad4dce
----------- docker logs -----------------
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0xc00160d700)
/go/pkg/mod/github.com/rancher/apimachinery@v0.19.0-rancher1/pkg/util/wait/wait.go:155 +0x5f
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc00160d700, 0x4e296e0, 0xc00266bb90, 0x727301, 0xc0014822a0)
/go/pkg/mod/github.com/rancher/apimachinery@v0.19.0-rancher1/pkg/util/wait/wait.go:156 +0xa3
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc00160d700, 0x3b9aca00, 0x0, 0x46c4201, 0xc0014822a0)
/go/pkg/mod/github.com/rancher/apimachinery@v0.19.0-rancher1/pkg/util/wait/wait.go:133 +0x98
k8s.io/apimachinery/pkg/util/wait.Until(0xc00160d700, 0x3b9aca00, 0xc0014822a0)
/go/pkg/mod/github.com/rancher/apimachinery@v0.19.0-rancher1/pkg/util/wait/wait.go:90 +0x4d
created by github.com/rancher/lasso/pkg/controller.(*controller).run
/go/pkg/mod/github.com/rancher/lasso@v0.0.0-20200905045615-7fcb07d6a20b/pkg/controller/controller.go:129 +0x31f
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x1 pc=0x4c30f4]
goroutine 1159 [running]:
k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0)
/go/pkg/mod/github.com/rancher/apimachinery@v0.19.0-rancher1/pkg/util/runtime/runtime.go:55 +0x105
panic(0x3c3bce0, 0x73b0e40)
/usr/local/go/src/runtime/panic.go:969 +0x166
encoding/json.(*encodeState).marshal.func1(0xc0024c8d50)
/usr/local/go/src/encoding/json/encode.go:326 +0x9a
panic(0x3c3bce0, 0x73b0e40)
/usr/local/go/src/runtime/panic.go:969 +0x166
reflect.Value.String(0x392fe60, 0x1, 0x198, 0x4f3e400, 0x392fe60)
/usr/local/go/src/reflect/value.go:1847 +0x44
encoding/json.stringEncoder(0xc002774d00, 0x392fe60, 0x1, 0x198, 0x100)
/usr/local/go/src/encoding/json/encode.go:645 +0x18d
encoding/json.structEncoder.encode(0xc000ad2900, 0x4, 0x4, 0xc0067f7e00, 0xc002774d00, 0x413e3e0, 0x1, 0x199, 0x100)
/usr/local/go/src/encoding/json/encode.go:759 +0x2bb
encoding/json.arrayEncoder.encode(0xc0067f7e30, 0xc002774d00, 0x38639c0, 0xc006c2dc60, 0x97, 0x760100)
/usr/local/go/src/encoding/json/encode.go:886 +0xd6
encoding/json.sliceEncoder.encode(0xc006c18c10, 0xc002774d00, 0x38639c0, 0xc006c2dc60, 0x97, 0x3860100)
/usr/local/go/src/encoding/json/encode.go:860 +0x8f
encoding/json.(*encodeState).reflectValue(0xc002774d00, 0x38639c0, 0xc006c2dc60, 0x97, 0xc0024c0100)
/usr/local/go/src/encoding/json/encode.go:358 +0x82
encoding/json.(*encodeState).marshal(0xc002774d00, 0x38639c0, 0xc006c2dc60, 0x100, 0x0, 0x0)
/usr/local/go/src/encoding/json/encode.go:330 +0xf0
encoding/json.Marshal(0x38639c0, 0xc006c2dc60, 0x3a63ae0, 0x35cb9d797f2f3554, 0x9d5ef009c45, 0x8, 0x18)
/usr/local/go/src/encoding/json/encode.go:161 +0x52
github.com/rancher/rke/templates.ToYAML(0x38639c0, 0xc006c2dc60, 0x15, 0xc006c2dc60)
/go/pkg/mod/github.com/rancher/rke@v1.2.0-rc9.0.20201204145714-816d4cd130a9/templates/templates.go:44 +0x4d
github.com/rancher/rancher/pkg/systemtemplate.SystemTemplate(0x4e236a0, 0xc006b99500, 0xc000074013, 0x48, 0xc00138a5e0, 0x1c, 0xc00257c650, 0x7, 0xc007bddfc0, 0x36, ...)
/go/src/github.com/rancher/rancher/pkg/systemtemplate/import.go:85 +0x49b
github.com/rancher/rancher/pkg/controllers/management/clusterdeploy.(*clusterDeploy).getYAML(0xc007bce8c0, 0xc0035d2000, 0xc000074013, 0x48, 0xc00138a5e0, 0x1c, 0xc006bb08a0, 0x41ddc20, 0xc006814c20, 0x199, ...)
/go/src/github.com/rancher/rancher/pkg/controllers/management/clusterdeploy/clusterdeploy.go:371 +0x455
github.com/rancher/rancher/pkg/controllers/management/clusterdeploy.(*clusterDeploy).deployAgent.func1(0x4458460, 0xc0035d2000, 0x4504e95, 0xd)
/go/src/github.com/rancher/rancher/pkg/controllers/management/clusterdeploy/clusterdeploy.go:255 +0x89
github.com/rancher/norman/condition.Cond.doInternal(0x4504e95, 0xd, 0x4e53c01, 0x4e53ca0, 0xc0035d2000, 0xc0024c9800, 0xc006bb0990, 0xc00785b220, 0xc006bb0960, 0xc003a77f00)
/go/pkg/mod/github.com/rancher/norman@v0.0.0-20200930000340-693d65aaffe3/condition/condition.go:212 +0x97
github.com/rancher/norman/condition.Cond.do2(0x4504e95, 0xd, 0xc008a4fb01, 0x4e53ca0, 0xc0035d2000, 0xc0024c9800, 0x1da8c10, 0xc0062e2340, 0xc00306dee0, 0x392fe60, ...)
/go/pkg/mod/github.com/rancher/norman@v0.0.0-20200930000340-693d65aaffe3/condition/condition.go:181 +0x1d8
github.com/rancher/norman/condition.Cond.do(...)
/go/pkg/mod/github.com/rancher/norman@v0.0.0-20200930000340-693d65aaffe3/condition/condition.go:170
github.com/rancher/norman/condition.Cond.Do(0x4504e95, 0xd, 0x4e53ca0, 0xc0035d2000, 0xc0024c9800, 0xc006bb08a0, 0x1, 0xc0024c9710, 0x12c7d87)
/go/pkg/mod/github.com/rancher/norman@v0.0.0-20200930000340-693d65aaffe3/condition/condition.go:140 +0x62
github.com/rancher/rancher/pkg/controllers/management/clusterdeploy.(*clusterDeploy).deployAgent(0xc007bce8c0, 0xc0035d2000, 0x4e53ca0, 0xc0035d2000)
/go/src/github.com/rancher/rancher/pkg/controllers/management/clusterdeploy/clusterdeploy.go:254 +0x617
github.com/rancher/rancher/pkg/controllers/management/clusterdeploy.(*clusterDeploy).doSync(0xc007bce8c0, 0xc0035d2000, 0x461a144, 0x74)
/go/src/github.com/rancher/rancher/pkg/controllers/management/clusterdeploy/clusterdeploy.go:138 +0x3ba
github.com/rancher/rancher/pkg/controllers/management/clusterdeploy.(*clusterDeploy).sync(0xc007bce8c0, 0xc00257c650, 0x7, 0xc00112f500, 0xc000100000, 0x7f49456807d0, 0x0, 0x0)
/go/src/github.com/rancher/rancher/pkg/controllers/management/clusterdeploy/clusterdeploy.go:94 +0x1b9
github.com/rancher/rancher/pkg/generated/norman/management.cattle.io/v3.(*clusterController).AddHandler.func1(0xc00257c650, 0x7, 0x4458460, 0xc00112f500, 0xc0024c9b20, 0x3, 0x3, 0x0)
/go/src/github.com/rancher/rancher/pkg/generated/norman/management.cattle.io/v3/zz_generated_cluster_controller.go:155 +0x63
github.com/rancher/norman/controller.(*genericController).AddHandler.func1(0xc00257c650, 0x7, 0x4e53ca0, 0xc00112f500, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/rancher/norman@v0.0.0-20200930000340-693d65aaffe3/controller/generic_controller.go:62 +0x221
github.com/rancher/lasso/pkg/controller.SharedControllerHandlerFunc.OnChange(0xc007bcd860, 0xc00257c650, 0x7, 0x4e53ca0, 0xc00112f500, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/rancher/lasso@v0.0.0-20200905045615-7fcb07d6a20b/pkg/controller/sharedcontroller.go:29 +0x4e
github.com/rancher/lasso/pkg/controller.(*sharedHandler).OnChange(0xc0017b0180, 0xc00257c650, 0x7, 0x4e53ca0, 0xc00112f500, 0xc002890a01, 0x0)
/go/pkg/mod/github.com/rancher/lasso@v0.0.0-20200905045615-7fcb07d6a20b/pkg/controller/sharedhandler.go:65 +0x14a
github.com/rancher/lasso/pkg/controller.(*controller).syncHandler(0xc000b00e70, 0xc00257c650, 0x7, 0xc00266b920, 0xc004ed3d50)
/go/pkg/mod/github.com/rancher/lasso@v0.0.0-20200905045615-7fcb07d6a20b/pkg/controller/controller.go:210 +0xd1
github.com/rancher/lasso/pkg/controller.(*controller).processSingleItem(0xc000b00e70, 0x392fe60, 0xc0075bab40, 0x0, 0x0)
/go/pkg/mod/github.com/rancher/lasso@v0.0.0-20200905045615-7fcb07d6a20b/pkg/controller/controller.go:192 +0xd7
github.com/rancher/lasso/pkg/controller.(*controller).processNextWorkItem(0xc000b00e70, 0x203001)
/go/pkg/mod/github.com/rancher/lasso@v0.0.0-20200905045615-7fcb07d6a20b/pkg/controller/controller.go:169 +0x51
github.com/rancher/lasso/pkg/controller.(*controller).runWorker(0xc000b00e70)
/go/pkg/mod/github.com/rancher/lasso@v0.0.0-20200905045615-7fcb07d6a20b/pkg/controller/controller.go:158 +0x2b
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0xc00160d700)
/go/pkg/mod/github.com/rancher/apimachinery@v0.19.0-rancher1/pkg/util/wait/wait.go:155 +0x5f
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc00160d700, 0x4e296e0, 0xc00266bb90, 0x727301, 0xc0014822a0)
/go/pkg/mod/github.com/rancher/apimachinery@v0.19.0-rancher1/pkg/util/wait/wait.go:156 +0xa3
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc00160d700, 0x3b9aca00, 0x0, 0x46c4201, 0xc0014822a0)
/go/pkg/mod/github.com/rancher/apimachinery@v0.19.0-rancher1/pkg/util/wait/wait.go:133 +0x98
k8s.io/apimachinery/pkg/util/wait.Until(0xc00160d700, 0x3b9aca00, 0xc0014822a0)
/go/pkg/mod/github.com/rancher/apimachinery@v0.19.0-rancher1/pkg/util/wait/wait.go:90 +0x4d
created by github.com/rancher/lasso/pkg/controller.(*controller).run
/go/pkg/mod/github.com/rancher/lasso@v0.0.0-20200905045615-7fcb07d6a20b/pkg/controller/controller.go:129 +0x31f
Result:
Rancher UI is not available
Environment information
rancher/rancher
/rancher/server
image tag or shown bottom left in the UI):2.5-headCluster information
kubectl version
): v1.19The text was updated successfully, but these errors were encountered: