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

Cannot apply OVH #655

Open
licarth opened this issue Jul 23, 2018 · 14 comments
Open

Cannot apply OVH #655

licarth opened this issue Jul 23, 2018 · 14 comments
Assignees

Comments

@licarth
Copy link
Contributor

licarth commented Jul 23, 2018

When trying to apply my OVH config, I get this :

~/p/kubicorn $ kubicorn apply ovh
2018-07-23T12:05:17+02:00 [ℹ]  Selected [fs] state store
2018-07-23T12:05:17+02:00 [ℹ]  Loaded cluster: ovh
2018-07-23T12:05:17+02:00 [ℹ]  Init Cluster
2018-07-23T12:05:17+02:00 [ℹ]  Query existing resources
2018-07-23T12:05:20+02:00 [ℹ]  Resolving expected resources
2018-07-23T12:05:20+02:00 [ℹ]  Reconciling
2018-07-23T12:05:20+02:00 [ℹ]  Using existing KeyPair [ovh]
2018-07-23T12:05:22+02:00 [✔]  Created Network [d0c048f9-ff02-4a51-b801-47407607d28c]
2018-07-23T12:05:23+02:00 [✔]  Created Subnet [bc409b5b-f73b-4793-955b-61ba257ad39f]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x120 pc=0x141e888]

goroutine 1 [running]:
github.com/kubicorn/kubicorn/cloud/openstack/operator/generic/resources.(*Subnet).Apply(0xc4200b62d0, 0x2a12260, 0xc42041a460, 0x2a12260, 0xc42041a4b0, 0xc4201bc2c0, 0x0, 0x2a121a0, 0xc42040b220, 0x0, ...)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cloud/openstack/operator/generic/resources/subnet.go:117 +0x388
github.com/kubicorn/kubicorn/cloud.(*AtomicReconciler).Reconcile(0xc4201c0ee0, 0xc4201bc2c0, 0xc4201bc2c0, 0xc4201bc2c0, 0x0, 0x0)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cloud/atomic_reconciler.go:119 +0x1ed
github.com/kubicorn/kubicorn/cmd.runApply(0xc42046a6c0, 0x5974f0, 0xc420533ca8)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:145 +0x854
github.com/kubicorn/kubicorn/cmd.ApplyCmd.func1(0xc42024a000, 0xc42018ea10, 0x1, 0x1)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:60 +0x6d
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).execute(0xc42024a000, 0xc42018e9d0, 0x1, 0x1, 0xc42024a000, 0xc42018e9d0)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:750 +0x2c1
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x2a71360, 0xc420533f60, 0x16860de, 0x1be4b38)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:831 +0x30e
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).Execute(0x2a71360, 0x0, 0xc4202b7500)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:784 +0x2b
github.com/kubicorn/kubicorn/cmd.Execute()
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/root.go:76 +0x31
main.main()
	/home/thomas/go/src/github.com/kubicorn/kubicorn/main.go:22 +0x20

I've tried various versions of kubicorn, and older ones fail for different reasons.
I don't think this is the same problem than those described in other open issues.

Anyone having the same issue ?

@xmudrii
Copy link
Member

xmudrii commented Jul 29, 2018

@licarth Hello, thank you so much for reporting the issue!

I can confirm the problem and I'm working on fixing it. It is going little bit slower as I don't have access to OVH, but I will try my best and will update you once I have some news.

Thank you!

@xmudrii
Copy link
Member

xmudrii commented Jul 29, 2018

@licarth I've deployed a fix in #659 that could fix the problem. I don't have access to OVH, so I can't test it.

You need to update to the latest version of kubicorn using git or go, such as:

go get -u github.com/kubicorn/kubicorn/...

Before applying the cluster, you have to remove the cluster state and create a new one (kubicorn create), as there are some changes in the file structure.

If you still have problems, please post the error or stack trace if there is any. If it works for you, let me know, so I can close the issue.

Thank you so much!

@xmudrii xmudrii self-assigned this Jul 29, 2018
@licarth
Copy link
Contributor Author

licarth commented Jul 30, 2018

Hey @xmudrii ! Thank you so much for your quick reaction. I just tried, and I get the following error :

~/p/kubicorn $ kubicorn apply ovh
2018-07-30T15:24:24+02:00 [ℹ]  Selected [fs] state store
2018-07-30T15:24:24+02:00 [ℹ]  Loaded cluster: ovh
2018-07-30T15:24:24+02:00 [ℹ]  Init Cluster
2018-07-30T15:24:25+02:00 [ℹ]  Query existing resources
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x120 pc=0x141a937]

goroutine 1 [running]:
c.(*Router).Actual(0xc42052e060, 0xc42041c160, 0x2, 0xc4203bdb38, 0xc42052e3e0, 0x0, 0x0)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cloud/openstack/operator/generic/resources/router.go:40 +0xb7
github.com/kubicorn/kubicorn/cloud.(*AtomicReconciler).Actual(0xc42052e000, 0xc42041c160, 0xc42041c160, 0x0, 0x0)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cloud/atomic_reconciler.go:50 +0x10a
github.com/kubicorn/kubicorn/cmd.runApply(0xc42034c180, 0x5974f0, 0xc4205e9ca8)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:134 +0x625
github.com/kubicorn/kubicorn/cmd.ApplyCmd.func1(0xc42024f8c0, 0xc4201c6070, 0x1, 0x1)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:60 +0x6d
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).execute(0xc42024f8c0, 0xc4201c6030, 0x1, 0x1, 0xc42024f8c0, 0xc4201c6030)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:750 +0x2c1
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x2a72360, 0xc4205e9f60, 0x1686e0e, 0x1be5bf8)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:831 +0x30e
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).Execute(0x2a72360, 0x0, 0xc420405500)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:784 +0x2b
github.com/kubicorn/kubicorn/cmd.Execute()
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/root.go:76 +0x31
main.main()
	/home/thomas/go/src/github.com/kubicorn/kubicorn/main.go:22 +0x20

Seems to fail earlier now.

@xmudrii
Copy link
Member

xmudrii commented Jul 30, 2018

Seems to fail earlier now.

I guess this is still a progress. 😅

I've merged #660 which may or may not fix the problem. To get the changes, update kubicorn like described above and recreate the state store file. Then, try to apply the cluster again.

If you get the panics or any other errors again, please post the output here.

Thanks a lot!

@licarth
Copy link
Contributor Author

licarth commented Jul 30, 2018

I guess this is still a progress.

Clearly it is ! Here is the new stacktrace :) 😅

~/p/kubicorn $ kubicorn apply oplaovh
2018-07-30T15:57:24+02:00 [ℹ]  Selected [fs] state store
2018-07-30T15:57:24+02:00 [ℹ]  Loaded cluster: oplaovh
2018-07-30T15:57:24+02:00 [ℹ]  Init Cluster
2018-07-30T15:57:24+02:00 [ℹ]  Query existing resources
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x120 pc=0x141a9e5]

goroutine 1 [running]:
github.com/kubicorn/kubicorn/cloud/openstack/operator/generic/resources.(*Router).Actual(0xc42015cce0, 0xc42013f4a0, 0x2, 0xc4205cb7f8, 0xc42015d120, 0x0, 0x0)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cloud/openstack/operator/generic/resources/router.go:40 +0x165
github.com/kubicorn/kubicorn/cloud.(*AtomicReconciler).Actual(0xc42015cc80, 0xc42013f4a0, 0xc42013f4a0, 0x0, 0x0)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cloud/atomic_reconciler.go:50 +0x10a
github.com/kubicorn/kubicorn/cmd.runApply(0xc420180180, 0x5974f0, 0xc4204f3ca8)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:134 +0x625
github.com/kubicorn/kubicorn/cmd.ApplyCmd.func1(0xc420234fc0, 0xc4202009d0, 0x1, 0x1)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:60 +0x6d
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).execute(0xc420234fc0, 0xc420200990, 0x1, 0x1, 0xc420234fc0, 0xc420200990)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:750 +0x2c1
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x2a72360, 0xc4204f3f60, 0x1686e3e, 0x1be5bf8)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:831 +0x30e
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).Execute(0x2a72360, 0x0, 0xc42031d500)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:784 +0x2b
github.com/kubicorn/kubicorn/cmd.Execute()
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/root.go:76 +0x31
main.main()
	/home/thomas/go/src/github.com/kubicorn/kubicorn/main.go:22 +0x20

@xmudrii
Copy link
Member

xmudrii commented Jul 30, 2018

@licarth Merged #661. If you can give it a try, let me know does it work for you. Also, if not, stack traces appreciated 😉

Thank you so much!

@licarth
Copy link
Contributor Author

licarth commented Jul 30, 2018

When debugging I get InternetGW:<nil>.

@xmudrii
Copy link
Member

xmudrii commented Jul 30, 2018

In that case, the fix will probably not fix anything for now. I could try to apply another one, but this is getting really ugly. Let's do it anyways :D

@licarth
Copy link
Contributor Author

licarth commented Jul 30, 2018

🦄

@duythongle
Copy link

duythongle commented Nov 26, 2018

I guess this is still a progress.

Clearly it is ! Here is the new stacktrace :) 😅

~/p/kubicorn $ kubicorn apply oplaovh
2018-07-30T15:57:24+02:00 [ℹ]  Selected [fs] state store
2018-07-30T15:57:24+02:00 [ℹ]  Loaded cluster: oplaovh
2018-07-30T15:57:24+02:00 [ℹ]  Init Cluster
2018-07-30T15:57:24+02:00 [ℹ]  Query existing resources
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x120 pc=0x141a9e5]

goroutine 1 [running]:
github.com/kubicorn/kubicorn/cloud/openstack/operator/generic/resources.(*Router).Actual(0xc42015cce0, 0xc42013f4a0, 0x2, 0xc4205cb7f8, 0xc42015d120, 0x0, 0x0)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cloud/openstack/operator/generic/resources/router.go:40 +0x165
github.com/kubicorn/kubicorn/cloud.(*AtomicReconciler).Actual(0xc42015cc80, 0xc42013f4a0, 0xc42013f4a0, 0x0, 0x0)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cloud/atomic_reconciler.go:50 +0x10a
github.com/kubicorn/kubicorn/cmd.runApply(0xc420180180, 0x5974f0, 0xc4204f3ca8)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:134 +0x625
github.com/kubicorn/kubicorn/cmd.ApplyCmd.func1(0xc420234fc0, 0xc4202009d0, 0x1, 0x1)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:60 +0x6d
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).execute(0xc420234fc0, 0xc420200990, 0x1, 0x1, 0xc420234fc0, 0xc420200990)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:750 +0x2c1
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x2a72360, 0xc4204f3f60, 0x1686e3e, 0x1be5bf8)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:831 +0x30e
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).Execute(0x2a72360, 0x0, 0xc42031d500)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:784 +0x2b
github.com/kubicorn/kubicorn/cmd.Execute()
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/root.go:76 +0x31
main.main()
	/home/thomas/go/src/github.com/kubicorn/kubicorn/main.go:22 +0x20

I can confirm this. Got same issue today. Here is my stacktrace

~$ kubicorn create myfirstk8s --profile ovh
2018-11-26T01:27:35-08:00 [ℹ]  Selected [fs] state store
2018-11-26T01:27:35-08:00 [✿]  The state [./_state/myfirstk8s/cluster.yaml] has been created. You can edit the file, then run `kubicorn apply myfirstk8s`
~$ kubicorn apply myfirstk8s
2018-11-26T01:27:43-08:00 [ℹ]  Selected [fs] state store
2018-11-26T01:27:43-08:00 [ℹ]  Loaded cluster: myfirstk8s
2018-11-26T01:27:43-08:00 [ℹ]  Init Cluster
2018-11-26T01:27:44-08:00 [ℹ]  Query existing resources
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x120 pc=0x1386c3a]

goroutine 1 [running]:
github.com/kubicorn/kubicorn/cloud/openstack/operator/generic/resources.(*Router).immutableRender(0xc0007141e0, 0x1d2c900, 0xc000714660, 0xc0003c5080, 0x0)
        /home/thongld/go/src/github.com/kubicorn/kubicorn/cloud/openstack/operator/generic/resources/router.go:185 +0x8a
github.com/kubicorn/kubicorn/cloud/openstack/operator/generic/resources.(*Router).Actual(0xc0007141e0, 0xc0003c5080, 0x2, 0xc00043c068, 0xc000714540, 0x0, 0x0)
        /home/thongld/go/src/github.com/kubicorn/kubicorn/cloud/openstack/operator/generic/resources/router.go:69 +0xdc
github.com/kubicorn/kubicorn/cloud.(*AtomicReconciler).Actual(0xc000714180, 0xc0003c5080, 0xc0003c5080, 0x0, 0x0)
        /home/thongld/go/src/github.com/kubicorn/kubicorn/cloud/atomic_reconciler.go:50 +0x100
github.com/kubicorn/kubicorn/cmd.runApply(0xc0001fcb40, 0x59ad90, 0xc00062bcc0)
        /home/thongld/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:135 +0x452
github.com/kubicorn/kubicorn/cmd.ApplyCmd.func1(0xc000024480, 0xc0001f6c50, 0x1, 0x1)
        /home/thongld/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:59 +0x68
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).execute(0xc000024480, 0xc0001f6c10, 0x1, 0x1, 0xc000024480, 0xc0001f6c10)
        /home/thongld/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:750 +0x2cc
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x2e6ce00, 0xc00062bf78, 0x15c9ae9, 0x1b0d76f)
        /home/thongld/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:831 +0x2dc
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).Execute(0x2e6ce00, 0x407460, 0xc0000ae058)
        /home/thongld/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:784 +0x2b
github.com/kubicorn/kubicorn/cmd.Execute()
        /home/thongld/go/src/github.com/kubicorn/kubicorn/cmd/root.go:76 +0x2d

@jitbasemartin
Copy link

Exactly the problem here, What is the updates ?

@yesnomaybeyes
Copy link

Geting the same issue here. :(

@anp0
Copy link

anp0 commented Feb 22, 2019

just got the same issue, any updates on this?

@aslafy-z
Copy link

OVH wasn't supporting the OpenStack Router API that kubicorn needed.

It looks like they are currently trying it, it might already work in some regions. See https://labs.ovh.com/public-cloud-l3-services

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants