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

libnetwork/cni: use 'ifconfig -j' on FreeBSD if it is supported #1619

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

dfr
Copy link
Contributor

@dfr dfr commented Aug 17, 2023

This allows us to use a single jail for containers with networking since CNI can initialise the network without needing a separate jail to own the network namespace.

This allows us to use a single jail for containers with networking since
CNI can initialise the network without needing a separate jail to own
the network namespace.

Signed-off-by: Doug Rabson <dfr@rabson.org>
Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 17, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dfr, vrothberg

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dfr Do you have any plans to migrate the network code to the netavark backend? I am happy to chat with you about it if you need any help. We plan to remove CNI support sooner or later (I cannot give you any timeline on that yet) so it would be unfortunate if we need to keep it around only in the freebsd code.

Regardless this change LGTM

@Luap99
Copy link
Member

Luap99 commented Aug 17, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Aug 17, 2023
@openshift-merge-robot openshift-merge-robot merged commit 6135cf6 into containers:main Aug 17, 2023
6 checks passed
@dfr
Copy link
Contributor Author

dfr commented Aug 17, 2023

@dfr Do you have any plans to migrate the network code to the netavark backend? I am happy to chat with you about it if you need any help. We plan to remove CNI support sooner or later (I cannot give you any timeline on that yet) so it would be unfortunate if we need to keep it around only in the freebsd code.

Moving to netavark is possible - FreeBSD added support for AF_NETLINK a while ago and its available in FreeBSD 13.2 and later. It would need AF_NETLINK support for FreeBSD to be added to rust-lang/libc which should make it possible to use the same netlink crates as Linux. I'm not sure when I will have the time for it though - I'm still concentrating on stabilising and testing the FreeBSD podman port as well as working on prototype ports for cri-o and kubernetes.

@Luap99
Copy link
Member

Luap99 commented Aug 17, 2023

Yes this is nothing that needs to happen immediately. I just wanted to let you know in case you wasn't aware so that you do not spend time on a new CNI feature just for us to remove it later. We can certainly keep the CNI code around for freebsd until we have netavark working with freebsd.

@dfr dfr deleted the freebsd-cni branch August 17, 2023 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants