-
Notifications
You must be signed in to change notification settings - Fork 3.4k
datapath: Switch to upstream bpftool, remove additional arguments #10353
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
Release note label not set, please set the appropriate release note. |
@borkmann is going to submit a change in packer-ci-build repository which will switch bpftool to bpf-next tree this week. But anyway, accepting this PR now should be fine. Even if Vagrant images are shipping the old bpftool now, this pull request should still work, although it will emit the dmesg warnings. But it's master, so it should be fine. And after the new VM image will ship the newest bpftool, dmesg warnings will be not emitted anymore. /cc @qmonnet @joestringer |
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.
LGTM. Any reservations on backporting into 1.7.1 so we have an official bpftool version in the main images for the latest release?
I think we need new Vagrant image with upstream bpftool before we backport it to any stable release. So we need to wait for @borkmann's PR in packer-ci-build. |
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.
One minor nit on bpftool invocation, looks good otherwise! Thanks.
Upstream bpftool does not run probes which emit dmesg messages by default anymore. Additional arguments for filtering out probes are not needed anymore. Link: https://lore.kernel.org/bpf/20200226165941.6379-1-mrostecki@opensuse.org/T/ Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
Forked sources of the Linux kernel are not needed anymore, upstream bpftool does not run probes which emit dmesg messages by default. Link: https://lore.kernel.org/bpf/20200226165941.6379-1-mrostecki@opensuse.org/T/ Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
076c4c5
to
c97e29d
Compare
@aanm Sorry for that! Also the dir name was wrong. Now it should work. |
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.
@mrostecki please add the following changes to the docker: Switch to upstream bpftool
commit
diff --git a/Dockerfile b/Dockerfile
index 7699103b7..1c724d074 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -37,7 +37,7 @@ RUN make LOCKDEBUG=$LOCKDEBUG PKG_BUILD=1 V=$V LIBNETWORK_PLUGIN=$LIBNETWORK_PLU
# built while allowing the new versions to make changes that are not
# backwards compatible.
#
-FROM quay.io/cilium/cilium-runtime:2020-02-26
+FROM quay.io/cilium/cilium-runtime:2020-02-27
LABEL maintainer="maintainer@cilium.io"
COPY --from=builder /tmp/install /
COPY --from=cilium-envoy / /
Once this PR is merged and PR #10354 is also merged, we need to open a PR against 1.7 for which the cilium-runtime
image tag will be 2020-02-27-v1.7
c97e29d
to
21c06f5
Compare
test-me-please |
We also need a change in packer-ci-build before doing that, but again, on sig-datapath meeting we decided that Daniel will do that alongside with the other changes he's preparing. |
@mrostecki in that case, shouldn't we wait for the VM to be made available? Otherwise the cilium build will fail for old VMs, no? |
@mrostecki
the builder is not required, it should be the |
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.
Looks good apart from the builder vs. runtime issue @aanm pointed out.
Forked sources of the Linux kernel are not needed anymore, upstream bpftool does not run probes which emit dmesg messages by default. OCI images of Cilium used to clone the mainline Linus' tree of the kernel sources, but to get upstream changes faster, this change uses the bpf-next tree. Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
21c06f5
to
71ca02e
Compare
@aanm @jrajahalme Sorry for that, now it should work.
Well, the thing is that this pull request will work on old VMs (in terms of not being completely broken or making the CI red 😉 ), but will generate dmesg messages, which I guess is not a big deal on master branch (although it would be a big deal on stable branches). That's because this PR goes back to the default set of arguments for But on the other hand, I don't mind waiting for the change in packer-ci-build. I'm fine doing it either way. Maybe it's better to wait for the new VM to not confuse people and start backporting right after this PR is merged. |
test-me-please |
Upstream bpftool does not run probes which emit dmesg messages by
default anymore. Additional arguments for filtering out probes are not
needed anymore.
Link: https://lore.kernel.org/bpf/20200226165941.6379-1-mrostecki@opensuse.org/T/
Signed-off-by: Michal Rostecki mrostecki@opensuse.org
This change is