Closed gaetanquentin closed 11 months ago
With MicroK8s v1.25.4 revision 4214
on Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-52-generic x86_64)
I get the kube-ovn installed and calico uninstalled. All fine so far - but kube-ovn crashes in the controller.
I1115 17:02:58.382743 7 controller.go:450] Starting OVN controller
I1115 17:02:58.382841 7 election.go:50] waiting for becoming a leader
I1115 17:02:58.382885 7 leaderelection.go:248] attempting to acquire leader lease kube-system/ovn-config...
I1115 17:02:58.466548 7 leaderelection.go:258] successfully acquired lease kube-system/ovn-config
I1115 17:02:58.466624 7 election.go:76] new leader elected: kube-ovn-controller-7f7b65ff49-pv9l8
I1115 17:02:58.466683 7 election.go:59] I am the new leader
I1115 17:03:03.379674 7 ovn-nbctl.go:1803] start ovn-nbctl daemon
E1115 17:03:03.382111 7 ovn-nbctl.go:1810] failed to kill old ovn-nbctl daemon: ""
E1115 17:03:03.382130 7 controller.go:58] failed to start ovn-nbctl daemon exit status 1
I1115 17:03:03.383372 7 controller.go:460] Waiting for informer caches to sync
E1115 17:03:03.391915 7 pod.go:1044] namespace kube-system network annotations is nil
E1115 17:03:03.391944 7 pod.go:97] failed to get pod nets namespace kube-system network annotations is nil
E1115 17:03:03.527206 7 ovn-nbctl.go:1854] failed to access ovn-nb from daemon, ""
W1115 17:03:03.527236 7 controller.go:65] ovn-nbctl daemon doesn't return, start a new daemon
I1115 17:03:03.527246 7 ovn-nbctl.go:1803] start ovn-nbctl daemon
W1115 17:03:03.668109 7 ovn-nbctl.go:48] ovn-nbctl command error: ovn-nbctl --timeout=60 --no-wait set NB_Global . options:use_ct_inv_match=false in 184ms
F1115 17:03:03.668418 7 controller.go:476] failed to set NB_Global option use_ct_inv_match to false: failed to set NB_Global option use_ct_inv_match to false: , "signal: illegal instruction (core dumped)"
may someone have an advice where to start digging ?
The "signal: illegal instruction (core dumped)"
portion of the logs seem to indicate that kube-ovn is using some instructions that are not available for the underlying hardware and are causing a SIGILL exception? I am not sure how one could tackle this issue. Perhaps opening an issue on kube-ovn directly would get more traction?
The original issue was that KubeOVN had not been updated for 1.25, which was resolved with https://github.com/canonical/microk8s-core-addons/pull/115
The
"signal: illegal instruction (core dumped)"
portion of the logs seem to indicate that kube-ovn is using some instructions that are not available for the underlying hardware and are causing a SIGILL exception? I am not sure how one could tackle this issue. Perhaps opening an issue on kube-ovn directly would get more traction?
Thx, good hint. It looks like my CPU doesn't support avx512 - same issue as with "Kube OVN Charm" on some AWS systems - seems we need the same solution as in "https://bugs.launchpad.net/charm-kube-ovn/+bug/1989363/comments/5".
I was not aware of the -no-avx512
images. Would you mind testing them out to see if that is a solution?
Changing the failing deployments should be enough. If you find that this solves the issue, we can look into updating the addon to do such a check.
After changing the deployment and daemonset images to kubeovn/kube-ovn:v1.10.4-no-avx512
all is up and running. I didn't test the config now, but pods not crashLooping any longer.
Maybe when enabling kube-ovn we should ask if we just use the default or non-avx if the system check is too complex.
Great, thanks for verifying. Indeed, we'll work on improving this, if not with automated checks, at least a large note in the documentation and a flag when enabling the addon.
Thanks again!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Summary
microk8s enable kube-ovn --force failed and did that:
What Should Happen Instead?
addon installed
Reproduction Steps
inspection-report-20221011_192847.tar.gz microk8s enable kube-ovn --force
Introspection Report
attached tar.gz
regards