-
Notifications
You must be signed in to change notification settings - Fork 259
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
connectex: A socket operation was attempted to an unreachable error AND HNS Unspecified error #108
Comments
The workaround is to sleep for 2 seconds after POST request, but this is unacceptable. |
When creating a new vswitch via hyper-v manager, it informs you that connectivity may break. I understand similar thing is happening here: when HNS switch is being created, HNS network creation returns success, even though the system is not done dealing with all the configuration changes of vswitch and net adapters. But as a user of HNS, I care about when the network is ready, not when it is just created. I think HNS should block until everything is up and running. If that is not possible, then I would like to know some workaround, like polling network adapters or something, so that I don't have to use Sleeps in the code. |
@m-kostrzewa In our test scripts we do a similar thing to wait of connectivity before invoking new-containernetwork. Example is
|
client: fix error message
Issue seems similar to #95
There are two test cases and two different errors, but I think the underlying root cause may be the same, that's why I report both errors in the same issue.
Here's the first test case:
net.Dial sometimes fails with:
Powershell script that kinda replicates it (but prints a different error):
I sometimes get error:
which I believe to be a coarse error message encompassing aforementioned
connectex...
error.Here's the second test case, which is very similar to the first one but we don't specify a subnet when creating the HNS network:
This time, we get a HNS error when invoking POST request on HNS:
To replicate via powershell:
Which sometimes returns:
The text was updated successfully, but these errors were encountered: