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
bpf: Remove bpf_netdev.o from previously used devices #10087
Conversation
Release note label not set, please set the appropriate release note. |
2 similar comments
Release note label not set, please set the appropriate release note. |
Release note label not set, please set the appropriate release note. |
test-me-please |
bed2b6c
to
17e9f36
Compare
test-me-please |
d135600
to
6406ae2
Compare
test-me-please |
CI hit the |
test-me-please |
6406ae2
to
970e325
Compare
test-me-please |
970e325
to
ff5499d
Compare
test-me-please |
CI provisioning failed. Re-running. |
test-me-please |
1 similar comment
test-me-please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any chance we can work towards unit testing of this kind of functionality? I guess for safety it'd need to run in its own namespace so not super straightforward.. but it'd be nice to be able to validate the corner cases of this.
Maybe this is an item for moving bpf/init.sh
into Golang..
ff5499d
to
f3d4866
Compare
test-me-please |
This commit makes cilium-agent to remove bpf_netdev.o from devices which no longer suppose to have the program attached. This can happen when e.g. a user has specified a different device for NodePort via `--device` or they switched from the direct routing mode to the tunnel mode. Signed-off-by: Martynas Pumputis <m@lambda.lt>
The programs will be removed by cilium-agent during its bootstrap. Signed-off-by: Martynas Pumputis <m@lambda.lt>
@joestringer I was thinking about restarting cilium-agent with different configuration in CI, and checking whether progs were successfully removed from a prev device (added to my follow-up TODO list). Having |
This commit makes cilium-agent to remove
bpf_netdev.o
from devices which no longer suppose to have the program attached. This can happen when e.g. a user has specified a different device for NodePort via--device
or they switched from the direct routing mode to the tunnel mode.This change is