-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
vxlanTunnelMACAddr not published in Node resource spec #9086
Comments
Hi @mgrove36, Thanks for the report. Do you change the tunnel mode? Do you use the VXLANCrossSubnet mode when you install the calico? |
Hey @cyclinder 👋 |
Did you find anything suspicious in the calico-node logs? I will try to reproduce it. |
Thanks. |
And the API resources themselves never seem to publish the MACs at all |
Hm, that field should be set from the |
Nope, it's not set |
Has anyone been able to replicate this? |
I can confirm that I also do not see the MAC address annotation. However, my VXLAN network seems to be functioning just fine. I believe this is because the MAC address is deterministically calculated when that annotation isn't present: calico/felix/calc/vxlan_resolver.go Lines 359 to 363 in 05f32ea
So, I think this is working as intended but the reference documentation isn't correct. |
Makes sense, thanks for verifying. VXLAN works fine for me too - it was just that annotation missing. Is it worth updating the implementation so the annotation is published via the API server? This would be the same functionality that Flannel provides |
I'd rather just update the documentation to say that field is deprecated and kept around for legacy reasons (which I believe is the case). Unless there's a reason we want to have it written into the API? |
Don't think so, was just a suggestion. Sounds good to me :) |
My colleagues just reminded me that this field is indeed used specifically to handle migration from flannel->Calico, in order to maintain the use of the existing tunnel MAC to avoid network disruptions. |
Ah, makes sense! |
Expected Behavior
A
vxlanTunnelMACAddr
key-value pair should be present in thespec
section of theNode
resource created by Calico when acalico/node
instance is started.Current Behavior
No
vxlanTunnelMACAddr
key-value pair is present.calicoctl get node master -o yaml
gives:Possible Solution
Steps to Reproduce (for bugs)
VXLANCrossSubnet
mode.calicoctl get node node_name -o yaml
Context
The reference for the Node resource states that
vxlanTunnelMACAddr
should be populated by the system - and not added manually - so I would expect it to be present whenever Calico is running with VXLAN.Your Environment
Linux master 6.1.0-23-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.99-1 (2024-07-15) x86_64 GNU/Linux
)The text was updated successfully, but these errors were encountered: