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

host-device: set link up after moving host device to pod namespace #184

Closed
zshi-redhat opened this issue Aug 7, 2018 · 3 comments · Fixed by #679
Closed

host-device: set link up after moving host device to pod namespace #184

zshi-redhat opened this issue Aug 7, 2018 · 3 comments · Fixed by #679

Comments

@zshi-redhat
Copy link
Contributor

Currently host-device plugin only moves the host-device to pod namespace.

But sometimes, when moving the host device to pod, user wants to use that device as an interface for running real network traffic, it would be good to set the device link up in the pod namespace and perhaps even further to add the ability for host-device to run ipam configuration.

one possible use case: pod running in a virtual machine wants to use one of the virtual interfaces in the VM(in this case, the virtual interfaces can be seen as host-device for the pod).

@dpward
Copy link
Contributor

dpward commented Dec 18, 2021

While IPAM can now be used with the host-device plugin, this doesn't help if the interface is being used at layer 2.

This issue seems unique to the host-device plugin. The interface-creating plugins will bring the new interface up automatically. When an interface gets moved into another namespace, though, the kernel automatically brings it down. (The plugin also ensures it is down after it is moved, so that it can be renamed.)

@zshi-redhat
Copy link
Contributor Author

While IPAM can now be used with the host-device plugin, this doesn't help if the interface is being used at layer 2.

We probably want to have a similar code piece like sriov-cni to explicitly set the interface link up.

@jayunit100
Copy link

generally curious about what is meant by "use that device as an interface for running real network traffic" :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants