k3s icon indicating copy to clipboard operation
k3s copied to clipboard

K3s flannel doesn't work with netscript service in ubuntu

Open orangedeng opened this issue 2 years ago • 2 comments

Environmental Info: K3s Version: v1.21.7+k3s1/v1.28.2+k3s1

Node(s) CPU architecture, OS, and Version: Ubuntu 22.04 LTS, amd64

Cluster Configuration: 1 server

Describe the bug: If the netscript is installed and enabled in ubuntu, the pods in k3s won't start normally. The cause of the pods failed is the flannel bridge cni0 got deleted by netscript time to time. And it cause the overlay network doesn't work appropriately.

Steps To Reproduce:

  • apt install netscript-2.4
  • systemctl enable netscript && systemctl start netscript and reboot
  • Install K3s

Expected behavior: I am not sure k3s should be compatible with netscript or not. If it shouldn't, it might need to be documented.

Actual behavior:

  • K3s runs well but he pod in the k3s keep failing.
  • ip a show cni0 returns nothing

Additional context / logs: After disable and remove netscript, k3s and the pods of it work fine.

orangedeng avatar Feb 23 '24 06:02 orangedeng

I'm not familiar with the netscript service, is it something you installed, or something that recent releases of ubuntu come with by default?

the flannel bridge cni0 got deleted by netscript time to time.

Yes, that would be a problem. Why would you install something that randomly deletes interfaces it does not expect to be present?

brandond avatar Feb 23 '24 17:02 brandond

I'm not familiar with the netscript service, is it something you installed, or something that recent releases of ubuntu come with by default?

Seems like it's a network tools in linux to manage network interfaces but not come with ubuntu LTS by default. In my case, the operation team installed it to have ifup ifdown ifquery tools to fix the network setting problems of the host. After the configuration fixed, the tools are not longer needed.

I just want to write this down in case someone encounter the same problem in the future.

orangedeng avatar Feb 26 '24 08:02 orangedeng

Was there a specific service that was started that was associated with the periodic interface removal? Or was it just happening whenever someone ran ifdown on the node?

brandond avatar Feb 26 '24 23:02 brandond

This repository uses a bot to automatically label issues which have not had any activity (commit/comment/label) for 45 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions.

github-actions[bot] avatar Apr 12 '24 20:04 github-actions[bot]