-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
flannel: windows: host-gw: pod restart: failed to enable forwarding on host interface (not found), yet interface definitely exists #1858
Comments
What id you try to run the powershell command manually? https://github.com/flannel-io/flannel/blob/master/pkg/ip/iface_windows.go#L134 |
manually enabling forwarding works... but this isn't an ideal solution for a self-healing environment |
Agree. I just wanted to understand if it was something related to your OS |
flannel
host
|
Expected Behavior
flannel (windows) starts healthy after node restart.
Current Behavior
flannel (windows) host-gw backend crashloops after windows node restart. sometimes, after repeated node reboots, flannel recovers and runs in healthy state.
flannel pod logs:
checking net adapters on the windows host, the mentioned
vEthernet (Ethernet0)
(index 25) is definitely present.during this time the other pods running on the node schedule and run without issues
seems like the interface identification logic gets scrambled here:
https://github.com/flannel-io/flannel/blob/v0.24.0/pkg/backend/hostgw/hostgw_windows.go#L254-L268
Possible Solution
unsure
Steps to Reproduce (for bugs)
Context
trying to deliver a k8s 1.28 linux/windows cluster with flannel host-gw backend
seems like the only current way i can consistently resolve this issue is to drain the node, console into the node, stop kubelet service, disable
vEthernet (Ethernet0)
adapter, and reboot the node again, forcing flannel through the not-exists && create logic. sometimes, rebooting the node a few times is enough to restore flannel.Your Environment
The text was updated successfully, but these errors were encountered: