-
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
Failed to get management ip for cbr0 network with host-gw mode on windows. #1066
Comments
aiting for the Network to be created goroutine 1 [running]: also encounter this issue , do we have workaround for this ? |
Getting the same issue deploying kubernetes 1.12.2. It was working 1 week ago.
|
Hello, Here the output of flannel:
|
Hmm... The patch works for me. Not sure waiting for 5 seconds would be enough or not. If you get more results, please let me know. |
I confirm 5 seconds is too low, I put 25 seconds and It's working. I'm working on Azure, maybe that explains the delay... |
Fix nil pointer error where get ManagementIP timeout, and extended get ManagementIP wait time to 30s Fix issues flannel-io#1066
microsoft doc show:
My environment is a VM, I tried to change the waiting time to one minute, but the system still could not allocate IP. Whether it is related to the appeal description or not is not supported. |
If the IP is not allocated after a certain period of time, it is absolutely useful to restart the machine. |
Is the flanneld.exe updated anywhere for the master flannel code, or do I need to build it myself? [Edit] I have flanneld.exe building successfully now - #1081 |
I haven't see the patch for flanneld.exe. And I failed to build a flannel.exe according to the building.md. [Edit] I created a PR to enhance the document about how to build the flanned.exe. #1089 |
+1 Same issue after using the patched flanneld.exe. |
@JohnJAS - I get the same problem in my environment. I'm working in AWS and my windows node is an 1803 instance. I had to modify the Get-MgmtSubnet function in SDN start-kubelet.ps1 as well, as that code was failing. I am still getting the "Error registering network: timeout, failed to get management IP from HNSNetwork cbr0: timed out waiting for the condition" problem. There is no "ManagementIP" element showing when I look at cbr0: PS C:\k> Get-HnsNetwork -Id 207cd47b-66af-419f-98c2-c0699927f9b5 ActivityId : 16605ab1-ba02-4009-a984-375bded9b3cd |
After moving to Windows 1809 on AWS, I no longer have any problems with flannel or with the cbr0 network. In addition to changing platforms, I also have made sure that my linux and windows EC2 instances are on the same subnet, plus I have disabled source/destination checks. I found these suggestions on the following web page: https://rancher.com/docs/rancher/v2.x/en/cluster-provisioning/rke-clusters/windows-clusters/ My windows pods are now working correctly and can be accessed successfully through the service. |
Indeed, this issue is reproducible on 1803. With the same configuration, it seems to work for 1809. We are going to investigate what the diff is and post back here. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Flanneld failed to get management ip and panic.
Expected Behavior
Flanneld should get management ip successfully.
Current Behavior
Running flanneld.exe on windows node. (AWS Windows_Server-1803-English-Core-ContainersLatest-2018.08.15, kubernetes 1.11.4, host-gw mode). Hit runtime error.
Possible Solution
RegisterNetwork
still returns error asnil
.https://github.com/coreos/flannel/blob/master/backend/hostgw/hostgw_windows.go#L170
Steps to Reproduce (for bugs)
Context
Your Environment
The text was updated successfully, but these errors were encountered: