-
-
Notifications
You must be signed in to change notification settings - Fork 340
Use netlink instead of calling iproute2 commands #1990
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
Conversation
@stgraber we currently don't have any tests specifically for this package, if any of the functions are tested then only incidentally. |
a27e9ff
to
687b6a6
Compare
Yeah, it's not the kind of code that's particularly directly testable, it makes more sense to have it be indirectly tested through or normal system tests and the daily test runs we have on Jenkins too. |
Hmh can we generate coverage data from the existing tests to see if they hit all the code paths in this package? |
Hmm, not particularly easily as we typically run our tests across a LOT of |
Hmh I see |
@gwenya yeah, the best we can do is land this one early in the release to maximize the time we have for all our various tests to catch issues. |
623d642
to
e2d12a6
Compare
6a6fb6a
to
94115dd
Compare
Remaining issue to track down:
That hits in the cluster tests. It's non-fatal as it's a non-fatal backup/restore of routes, but the failure is unexpected. |
I added the scope to our route struct so we can add it back with the same scope, I think that should fix it |
Sounds good. I'm planning on doing another quick review/rebase pass on this one and then merging it shortly after 6.14 is out. That will give us a full dev cycle to catch any extra regressions. |
Signed-off-by: Gwendolyn <me@gwendolyn.dev>
Signed-off-by: Gwendolyn <me@gwendolyn.dev>
Signed-off-by: Gwendolyn <me@gwendolyn.dev>
Signed-off-by: Gwendolyn <me@gwendolyn.dev>
Signed-off-by: Gwendolyn <me@gwendolyn.dev>
Signed-off-by: Gwendolyn <me@gwendolyn.dev>
Signed-off-by: Gwendolyn <me@gwendolyn.dev>
Signed-off-by: Gwendolyn <me@gwendolyn.dev>
Signed-off-by: Gwendolyn <me@gwendolyn.dev>
Signed-off-by: Gwendolyn <me@gwendolyn.dev>
…g netlink ourselves Signed-off-by: Gwendolyn <me@gwendolyn.dev>
Signed-off-by: Gwendolyn <me@gwendolyn.dev>
Signed-off-by: Gwendolyn <me@gwendolyn.dev>
Signed-off-by: Gwendolyn <me@gwendolyn.dev>
@gwenya thanks for the great work! |
@gwenya FYI, I'm seeing a couple of potentially related CI failures in Jenkins today. Another is a macvlan related network test which is now failing to give us an IPv6 address. I'll look at these two a bit closer this week. It shouldn't be too difficult to figure out what's going on and fix it and that's exactly why I wanted this merged right after a stable release so we can catch those weird edge cases ;) |
@stgraber At a quick glance, I think I'm not setting the all multicast flag properly, could that be the cause for the IPv6 issue? |
Quite likely. IPv6 actively relies on multicast for router advertisements. We also got this is failure that showed up a few hours ago: https://jenkins.linuxcontainers.org/job/incus-test-usb/651/console |
Ah yeah, we should probably ignore that error in Flush. Should I push fixes for these things in here or in a new PR? |
In a new PR since we've merged this one. Can still come out of the same branch though. |
See #1978
This is still WIP, the PR at this time is mainly for running the CI. Feedback is very welcome though, especially on the non-trivial TODOs.