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

ip rule priority change causes issues #903

Open
marosg42 opened this issue Dec 13, 2024 · 0 comments
Open

ip rule priority change causes issues #903

marosg42 opened this issue Dec 13, 2024 · 0 comments

Comments

@marosg42
Copy link

Summary

When k8s snap is bootstrapped it moves rule 0: from all lookup local to 100: from all lookup local.
However if there is already a rule with priority 100 it causes issues like not able to reach machine's own IP address
These are rules before k8s bootstrap

0:	from all lookup local
100:	from 10.241.32.0/21 lookup 1 proto static
32764:	from 10.241.32.0/21 to 10.241.32.0/21 lookup main proto static
32766:	from all lookup main
32767:	from all lookup default

and when bootstrap started

9:	from all fwmark 0x200/0xf00 lookup 2004
100:	from 10.241.32.0/21 lookup 1 proto static
100:	from all lookup local
32764:	from 10.241.32.0/21 to 10.241.32.0/21 lookup main proto static
32766:	from all lookup main
32767:	from all lookup default

This causes also bootstrap noit to be able to finish becasue it cannot use local sockets.

What Should Happen Instead?

It should check what priorities already exists and set new accordingly

Reproduction Steps

Have a netplan with routing policy which sets priority 100. Then try to bootstrap k8s snap

System information

ubuntu 22.04 and 24.04

Can you suggest a fix?

No response

Are you interested in contributing with a fix?

No response

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

No branches or pull requests

1 participant