Deploy first cluster then reuse the bootmachine to deploy second meet crash #295
Labels
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/rotten
Denotes an issue or PR that has aged beyond stale and will be auto-closed.
/kind bug
able to deploy test 1, but when start test2 (only change the cluster.yaml's name field)
with same boot machine, I met following crash.......
I0403 06:51:17.429080 1 networkservice.go:52] Reconciling network components for cluster default/test1
I0403 06:51:17.429604 1 secgroupservice.go:71] Reconciling security groups for cluster default/test1
I0403 06:54:03.215310 1 controller.go:89] Running reconcile Cluster for test2
I0403 06:54:03.275171 1 controller.go:89] Running reconcile Cluster for test2
I0403 06:54:03.275448 1 controller.go:127] reconciling cluster object test2 triggers idempotent reconcile.
I0403 06:54:03.275480 1 actuator.go:34] Reconciling cluster test2.
I0403 06:54:03.350677 1 controller.go:114] Running reconcile Machine for openstack-master-8gflh
I0403 06:54:03.372041 1 controller.go:114] Running reconcile Machine for openstack-master-8gflh
I0403 06:54:06.328315 1 networkservice.go:52] Reconciling network components for cluster default/test2
I0403 06:54:06.328354 1 secgroupservice.go:71] Reconciling security groups for cluster default/test2
I0403 06:54:06.423628 1 controller.go:89] Running reconcile Cluster for test2
I0403 06:54:06.423710 1 controller.go:127] reconciling cluster object test2 triggers idempotent reconcile.
I0403 06:54:06.423725 1 actuator.go:34] Reconciling cluster test2.
I0403 06:54:07.778385 1 controller.go:184] Reconciling machine object openstack-master-8gflh triggers idempotent create.
I0403 06:54:09.028962 1 networkservice.go:52] Reconciling network components for cluster default/test2
I0403 06:54:09.028994 1 secgroupservice.go:71] Reconciling security groups for cluster default/test2
E0403 06:54:14.920267 1 runtime.go:66] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:72
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:65
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:51
/usr/local/go/src/runtime/panic.go:522
/usr/local/go/src/runtime/panic.go:82
/usr/local/go/src/runtime/signal_unix.go:390
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/pkg/cloud/openstack/machine/machineScript.go:54
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/pkg/cloud/openstack/machine/actuator.go:126
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/vendor/sigs.k8s.io/cluster-api/pkg/controller/machine/controller.go:185
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:207
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:157
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88
/usr/local/go/src/runtime/asm_amd64.s:1337
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=0x120 pc=0xfb525b]
goroutine 108 [running]:
sigs.k8s.io/cluster-api-provider-openstack/vendor/k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0)
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:58 +0x105
panic(0x10fcc00, 0x1eeee20)
/usr/local/go/src/runtime/panic.go:522 +0x1b5
sigs.k8s.io/cluster-api-provider-openstack/pkg/cloud/openstack/machine.masterStartupScript(0x0, 0xc000221600, 0xc0005ab980, 0x189f, 0xc0005ab980, 0x189f, 0x0, 0x0)
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/pkg/cloud/openstack/machine/machineScript.go:54 +0x9b
sigs.k8s.io/cluster-api-provider-openstack/pkg/cloud/openstack/machine.(*OpenstackClient).Create(0xc000550b40, 0x1409d40, 0xc000042050, 0x0, 0xc000221600, 0x1, 0x1)
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/pkg/cloud/openstack/machine/actuator.go:126 +0xd1a
sigs.k8s.io/cluster-api-provider-openstack/vendor/sigs.k8s.io/cluster-api/pkg/controller/machine.(*ReconcileMachine).Reconcile(0xc0003f1500, 0xc0007bcc89, 0x7, 0xc000783720, 0x16, 0x4, 0x0, 0x0, 0x0)
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/vendor/sigs.k8s.io/cluster-api/pkg/controller/machine/controller.go:185 +0x932
sigs.k8s.io/cluster-api-provider-openstack/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc0000c8640, 0x0)
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:207 +0x17d
sigs.k8s.io/cluster-api-provider-openstack/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1()
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:157 +0x36
sigs.k8s.io/cluster-api-provider-openstack/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1(0xc000458030)
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x54
sigs.k8s.io/cluster-api-provider-openstack/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000458030, 0x3b9aca00, 0x0, 0x1, 0xc000048d20)
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134 +0xf8
sigs.k8s.io/cluster-api-provider-openstack/vendor/k8s.io/apimachinery/pkg/util/wait.Until(0xc000458030, 0x3b9aca00, 0xc000048d20)
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88 +0x4d
created by sigs.k8s.io/cluster-api-provider-openstack/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start
/root/gocode/src/sigs.k8s.io/cluster-api-provider-openstack/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:156 +0x33e
What steps did you take and what happened:
[A clear and concise description of what the bug is.]
What did you expect to happen:
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
kubectl version
):/etc/os-release
):The text was updated successfully, but these errors were encountered: