-
Notifications
You must be signed in to change notification settings - Fork 13
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
interface name is now mandatory for dynamic networks attachements #63
Comments
How about we adapt the code to reject handling the update of an existing attachment ? I.e. allow the user to patch the existing annotation's on a pod adding the interface name to the network selection elements, without triggering add / remove of the interface ? This was my original intention, and honestly, I thought the current code would do that. ... I just checked and can confirm it doesn't. |
@maiqueb yeah I think that's would be one approach of handling it right now with the current deficient edge level triggered updates strategy. This would apply I assume as well to other Ideally would be nice to give feedback why things didn't works as expected when someone let say hot-plug/hot-unplug a network selection element without providing an interface name when doing |
Yeah - my intention is to prevent the update of any existing attachment. That would be outside the scope of this project. Hmm, we could throw an event / log. Opened #66 to track this. |
In multus a network interface name in a pod is optional, if the user didn't provide an interface name in the pod's network annotation the latter will be given a net1, net2, etc. as interface name.
To be able to hot-plug/unplug an network interface in a running pod the user must provide an interface name (as it should be) for the network-selection-elements
If a pod get configured with a multus network annotation without providing an interface name, it's not possible to unplug an interface from a running pod unless one add an interface name to the desired network-selection-elements (which would fails since the interface is already plugged) than unplug it (not a good user experience)
see also #48
To Reproduce
Steps to reproduce the behavior:
Environment:
kubectl version
): N/AcriSocketPath
/multusSocketPath
): N/Auname -a
): N/AAdditional info / context
Not sure how this should be resolved since we can't change current multus behaviour regarding having an interface name optional, but though this should be tracked some how!
The text was updated successfully, but these errors were encountered: