-
Notifications
You must be signed in to change notification settings - Fork 592
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
Support 'mac' to specify MAC address for interface #148
Conversation
Pull Request Test Coverage Report for Build 474
💛 - Coveralls |
@rkamudhan @dougbtv Fixed conflicts. |
I pulled this feature branch and have been testing it in an Openshift environment using the Ansible playbook provided by @dougbtv . I put my network annotations with the "interfaceRequest" and "macRequest" fields in and the interface name reflected my chosen "mgmt". However, the MAC assignment doesn't seem to be working. Here's my network definition:
And my pod definition which uses it:
I captured the following logs and it looks like there may be some annotation parsing in that's missing for the "MacRequest". In k8sclient/k8sclient.go:parsePodNetworkAnnotation() it appears to only capture the network name, network namespace and interface request fields. See the logs below that show my "macRequest" annotation that is noted but not captured when performing the final interface configuration.
and then probing my pod after deployment (ignore the differing MAC, this was several iterations after that log dump. In any case it wasn't what I assigned):
Thanks, appreciate your work on this! |
@manndavidj , thank you for your testing! Could you please check the following things in your lab?:
Here is my example:
|
Changed Top description and titles ("macRequest" -> "mac") |
/lgtm |
…nsistency-openshift-4.14-multus-cni Updating multus-cni images to be consistent with ART
This change supports
mac
to specify MAC address for interface. This feature interworks with the latest 'tuning' CNI plugin of CNCF repo (https://github.com/containernetworking/plugins) and change MAC address.