-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Drop pkg/util/ipcmd, port to vishvananda/netlink (mostly) #15834
Drop pkg/util/ipcmd, port to vishvananda/netlink (mostly) #15834
Conversation
/assign dcbw |
/test extended_networking |
/unassign |
changes break the cross build; see #15838 for the fix. |
Automatic merge from submit-queue (batch tested with PRs 15904, 15962, 15838, 15965, 15963) Only build pkg/sdn/plugin on linux We are currently building (most of) the SDN code on Darwin and Windows, even though it is totally linux-specific. I ran into this when trying to make more use of the "netlink" library in the sdn code (#15834). The library only builds on linux, so any file that imports it has to also be only built on linux. So this tries to fix the main openshift binary to only include the SDN code when building on Linux. I don't know if it's correct stylistically. I'm happy to rewrite it however. @openshift/networking FYI
fe5bc69
to
1237a3b
Compare
extended_conformance_gce flake is #15969, cross build failure was probably real but the logs are already gone... |
/test cross |
1237a3b
to
2c0ea84
Compare
2c0ea84
to
026d804
Compare
@eparis can you approve this? (Needs someone to approve the changes to pkg/util, which consist solely of removing pkg/util/ipcmd.) |
026d804
to
ca7be16
Compare
The netlink PR merged, so I updated this to bump the netlink import and use The netlink bump was pretty huge (we previously had a version from 2015), but it's small (a few months) relative to the version currently in kubernetes. And the tests pass... |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danwinship, dcbw, eparis The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/hold cancel |
/test all [submit-queue is verifying that this PR is safe to merge] |
/test extended_networking_minimal |
@danwinship: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Automatic merge from submit-queue (batch tested with PRs 15834, 16321, 16353, 15298, 15433) |
This drops our wrapper around /sbin/ip and ports the remaining code to use the netlink library instead.
Except for the one place we were using ipcmd in pod_linux because netlink doesn't yet have a
LinkSetTxQLen
. I've submitted a PR for that (vishvananda/netlink#257) but until then, I just changed the code to callexec
directly.