-
Notifications
You must be signed in to change notification settings - Fork 790
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
Unable to enable kube-ovn: coredns still make reference to calico #5012
Unable to enable kube-ovn: coredns still make reference to calico #5012
Comments
kubectl delete pods -n kube-system coredns-79b94494c7-sgv4x kube-system 9s Warning FailedKillPod pod/coredns-79b94494c7-sgv4x error killing pod: failed to "KillPodSandbox" for "c5fc8889-4854-43b7-83f2-e1e838f04297" with KillPodSandboxError: "rpc error: code = Unknown desc = failed to destroy network for sandbox "33a6172891b53d11605ed0791f96f75a876cd54a88d005987866124d7345d124": plugin type="calico" failed (delete): error getting ClusterInformation: connection is unauthorized: Unauthorized" kube-system 0s Warning FailedKillPod pod/coredns-79b94494c7-sgv4x error killing pod: failed to "KillPodSandbox" for "c5fc8889-4854-43b7-83f2-e1e838f04297" with KillPodSandboxError: "rpc error: code = Unknown desc = failed to destroy network for sandbox "33a6172891b53d11605ed0791f96f75a876cd54a88d005987866124d7345d124": plugin type="calico" failed (delete): error getting ClusterInformation: connection is unauthorized: Unauthorized" |
did it again but deleted all calico file before:
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR NAMESPACE NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE CONTAINERS IMAGES SELECTOR NAMESPACE NAME READY UP-TO-DATE AVAILABLE AGE CONTAINERS IMAGES SELECTOR NAMESPACE NAME DESIRED CURRENT READY AGE CONTAINERS IMAGES SELECTOR more ovn/ovs pods! but cni not initialized: on the host, ovn/ovs links appaeared: 10: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 |
Hello, I've also seen this issue as well, as I've been testing First of all, the issue does not occur because Secondly, indeed, enabling the addon gets stuck and fails because of the error you mentioned, that it cannot terminate
That kind of looks like a permissions error, which may be because of the fact that its serviceaccount / cluster role / cluster role binding got deleted before it. Removing it before will allow this to be properly removed. Thirdly, it seems some configuration is missing, which is why it still thinks it has the Calico CNI, and why the nodes are in a |
Summary
enabling kube-ovn do not work: coredns ko
Versions and config
ubuntu 24.04.2
MicroK8s v1.32.3 revision 7964
filesystems:
/ : btrfs
/microk8s/xfs/ : xfs
/microk8s/btrfs/ : btrfs
/var/snap/microk8s/current/args/containerd:
--root /microk8s/xfs/microk8s
/var/snap/microk8s/current/args/containerd-template.toml:
[plugins."io.containerd.grpc.v1.cri".containerd]
fstab:
/dev/disk/by-id/dm-uuid-LVM-vE23bD62zX28eJCFvac8QqVV9DuK5leZB288JscoI30So8sY6rDdDBhA1ApMBse6 /microk8s/xfs xfs defaults 0 1
/microk8s/btrfs/snapshotter /microk8s/xfs/microk8s/io.containerd.snapshotter.v1.btrfs none bind 0 0
What Should Happen Instead?
enabling kube-ovn addon should remove calico completly, and kube ovn should deliver ips to pods.
Reproduction Steps
-> unable to delete calico pods
kube-system 0s Warning FailedKillPod pod/calico-kube-controllers-5947598c79-srbvc error killing pod: failed to "KillPodSandbox" for "a1fbccc4-a2ac-4156-b441-94be51fcb865" with KillPodSandboxError: "rpc error: code = Unknown desc = failed to destroy network for sandbox "a769a15b0f787289f897c0927c9649853ba8f36e1912a9889eb9506b4d3386d7": plugin type="
+lots of iptables rules caliXXX
+vxlan net link still here
= 6. reboot
7. sudo microk8s enable kube-ovn --force , again
8. kubectl get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-79b94494c7-sgv4x 0/1 ContainerCreating 2 3h30m
kube-system ovn-central-687b87db67-5kt89 1/1 Running 5 95m
kube-system ovs-ovn-vtk7w 1/1 Running 5 95m
Apr 05 20:38:39 node3 microk8s.daemon-kubelite[9104]: E0405 20:38:39.750701 9104 kuberuntime_manager.go:1546] "Failed to stop sandbox" podSandboxID={"Type":"containerd","ID":"33a6172891b53d11605ed0791f96f75a876cd54a88d005987866124d7345d124"}
Apr 05 20:38:39 node3 microk8s.daemon-kubelite[9104]: E0405 20:38:39.750748 9104 kuberuntime_manager.go:1146] "killPodWithSyncResult failed" err="failed to "KillPodSandbox" for "c5fc8889-4854-43b7-83f2-e1e838f04297" with KillPodSandboxError: "rpc error: code = Unknown desc = failed to destroy network for sandbox \"33a6172891b53d11605ed0791f96f75a876cd54a88d005987866124d7345d124\": plugin type=\"calico\" failed (delete): error getting ClusterInformation: connection is unauthorized: Unauthorized""
Introspection Report
inspection-report-20250405_201029.tar.gz
Can you suggest a fix?
no
Are you interested in contributing with a fix?
no
The text was updated successfully, but these errors were encountered: