-
Notifications
You must be signed in to change notification settings - Fork 4.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
System.Net.NameResolution.Functional.Tests failing on Ubuntu 16.04 and Debian9 #56295
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsFailing tests ("Name or service not known"):
Similar to SLES failures in #55271 Failures 5/26-7/26 (incl. PRs):
Failures callstacks:
Failure:
- DnsObsoleteGetHostByName_EmptyString_ReturnsHostName
- DnsObsoleteBeginEndGetHostByName_EmptyString_ReturnsHostName
```
System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : Name or service not known
at System.Net.Dns.GetHostEntryOrAddressesCore(String hostName, Boolean justAddresses, AddressFamily addressFamily) in //src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 403
Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Remote process failed with an unhandled exception. Child exception: Child process: Child arguments:
System.Exception : Failed for empty hostname. The following lines are desirable for IPv6 capable hosts::1 ip6-localhost ip6-loopback ---- System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : Name or service not known
System.AggregateException : One or more errors occurred. (One or more errors occurred. (Name or service not known)) (One or more errors occurred. (Name or service not known)) at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in //src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 80 ----- Inner Stack Trace ----- ----- Inner Stack Trace -----
|
Disabled tests tracked by dotnet#56295
@antonfirsov @wfurt any idea what is going on? Looks like 2 more distros (beside SLES) have now problem with DNS resolution of empty string. |
Tests disabled in PR #56296 on 7/26 |
@dotnet/dncenghot it looks like these 2 images changed and regressed behavior of self-resolution (empty string passed to DNS). Can they be fixed please? Also, is there a way to add it as a smoke test for new images? |
Nothing has changed in the time range you're listing; we roll out updates on Wednesdays, and the first day you list is 7/25. Neither image has changed since 6/25/2021, nor has anything we run on them (client scripts, and only these, updated 7/21). I'll take a few minutes to investigate your failures; I suspect something running before your work items is badly behaved. |
This is not necessarily just about the image. It is about ability for machine to resolve own name. |
Sure, I was responding to " it looks like these 2 images changed" and letting you know that hasn't happened for over a month. |
For completeness: We discussed making our tests resilient to this technically valid setup of Linux, however -- that would remove our code coverage as we wouldn't know if all images are already in the bucket of "tainted" or not ... |
Created https://github.com/dotnet/core-eng/issues/13889. I ran your exact failing work items on Debian 9 and Ubuntu 16.04 and am convinced the problem has nothing to do with the behaviors of any previous work items, rather this seems like a symptom of VMs starting up a bit fast and the child processes of the Helix client not having functional DNS ready. We had worked around this in the past but unintentionally lost the kludge when moving off cron to start agents. (see other issue for notes) |
@MattGal no rush - if the number of affected distros doesn't go up in the meantime, we can live in this state for a while. |
The underlying infrastructure issue was addressed in dotnet/core-eng#13889 Fixes dotnet#55271 Fixes dotnet#56295
…7509) The underlying infrastructure issue was addressed in dotnet/core-eng#13889 Fixes #55271 Fixes #56295
Failing tests ("Name or service not known"):
Similar to SLES failures in #55271
Failures 5/26-7/27 (incl. PRs):
Failures callstacks:
at System.Net.Dns.GetHostEntryOrAddressesCore(String hostName, Boolean justAddresses, AddressFamily addressFamily) in //src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 403
at System.Net.Dns.GetHostEntryCore(String hostName, AddressFamily addressFamily) in //src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 384
at System.Net.Dns.GetHostByName(String hostName) in //src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 271
at System.Net.NameResolution.Tests.GetHostByNameTest.DnsObsoleteGetHostByName_EmptyString_ReturnsHostName() in //src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostByNameTest.cs:line 116
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in /_/src/mono/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs:line 370
Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Remote process failed with an unhandled exception.
Child exception:
System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name or service not known
at System.Net.Dns.GetHostEntryOrAddressesCore(String hostName, Boolean justAddresses, AddressFamily addressFamily) in //src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 403
at System.Net.Dns.GetHostEntryCore(String hostName, AddressFamily addressFamily) in //src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 384
at System.Net.Dns.<>c.b__33_1(Object s) in //src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 591
at System.Net.Dns.<>c__DisplayClass39_0
1[[System.Net.IPHostEntry, System.Net.NameResolution, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].<RunAsync>b__0(Task <p0>, Object <p1>) in /_/src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 688 at System.Threading.Tasks.ContinuationResultTaskFromTask
1[[System.Net.IPHostEntry, System.Net.NameResolution, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].InnerInvoke() in //src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TaskContinuation.cs:line 94at System.Threading.Tasks.Task.<>c.<.cctor>b__271_0(Object obj) in //src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 2369
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in //src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 268
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in //src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 293
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) in //src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 2331
--- End of stack trace from previous location ---
at System.Net.NameResolution.Tests.GetHostEntryTest.<Dns_GetHostEntryAsync_DisableIPv6_ExcludesIPv6Addresses>g__RunTest|8_0(String hostnameInner) in /_/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs:line 152
at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args) in Microsoft.DotNet.RemoteExecutor.dll:token 0x6000006+0xf5
Child process:
System.Net.NameResolution.Functional.Tests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 System.Net.NameResolution.Tests.GetHostEntryTest System.Threading.Tasks.Task <Dns_GetHostEntryAsync_DisableIPv6_ExcludesIPv6Addresses>g__RunTest|8_0(System.String)
Child arguments:
System.Exception : Failed for empty hostname.
Dns.GetHostName() == a008NNH
getHostEntryException==System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name or service not known
at System.Net.Dns.GetHostEntryOrAddressesCore(String hostName, Boolean justAddresses, AddressFamily addressFamily) in //src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 403
at System.Net.Dns.GetHostEntryCore(String hostName, AddressFamily addressFamily) in //src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 384
at System.Net.Dns.GetHostEntry(String hostNameOrAddress, AddressFamily family) in //src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 91
at System.Net.Dns.GetHostEntry(String hostNameOrAddress) in //src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 60
at System.Net.NameResolution.Tests.GetHostEntryTest.Dns_GetHostEntry_HostString_Ok(String hostName) in /_/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs:line 60
etcHostsException==
/etc/host ==
127.0.0.1 localhost
The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
---- System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : Name or service not known
System.AggregateException : One or more errors occurred. (One or more errors occurred. (Name or service not known)) (One or more errors occurred. (Name or service not known))
---- System.AggregateException : One or more errors occurred. (Name or service not known)
-------- System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : Name or service not known
---- System.AggregateException : One or more errors occurred. (Name or service not known)
-------- System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : Name or service not known
at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in //src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 80
at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks, Int32 millisecondsTimeout) in //src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 49
at System.Net.NameResolution.Tests.GetHostEntryTest.TestGetHostEntryAsync(Func`1 getHostEntryFunc) in //src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs:line 112
at System.Net.NameResolution.Tests.GetHostEntryTest.Dns_GetHostEntryAsync_HostString_Ok(String hostName) in //src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs:line 100
--- End of stack trace from previous location ---
----- Inner Stack Trace #1 (System.AggregateException) -----
----- Inner Stack Trace -----
at System.Net.Dns.GetHostEntryOrAddressesCore(String hostName, Boolean justAddresses, AddressFamily addressFamily) in //src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 403
at System.Net.Dns.GetHostEntryCore(String hostName, AddressFamily addressFamily) in //src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 384
at System.Net.Dns.<>c.b__33_1(Object s) in //src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 591
at System.Net.Dns.<>c__DisplayClass39_0
1[[System.Net.IPHostEntry, System.Net.NameResolution, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].<RunAsync>b__0(Task <p0>, Object <p1>) in /_/src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 688 at System.Threading.Tasks.ContinuationResultTaskFromTask
1[[System.Net.IPHostEntry, System.Net.NameResolution, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].InnerInvoke() in //src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TaskContinuation.cs:line 94at System.Threading.Tasks.Task.<>c.<.cctor>b__271_0(Object obj) in //src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 2369
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in //src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 268
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in //src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 293
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) in //src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 2331
--- End of stack trace from previous location ---
at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 63
----- Inner Stack Trace #2 (System.AggregateException) -----
----- Inner Stack Trace -----
at System.Net.Dns.GetHostEntryOrAddressesCore(String hostName, Boolean justAddresses, AddressFamily addressFamily) in //src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 403
at System.Net.Dns.GetHostEntryCore(String hostName, AddressFamily addressFamily) in //src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 384
at System.Net.Dns.<>c.b__33_1(Object s) in //src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 591
at System.Net.Dns.<>c__DisplayClass39_0
1[[System.Net.IPHostEntry, System.Net.NameResolution, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].<RunAsync>b__0(Task <p0>, Object <p1>) in /_/src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs:line 688 at System.Threading.Tasks.ContinuationResultTaskFromTask
1[[System.Net.IPHostEntry, System.Net.NameResolution, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].InnerInvoke() in //src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TaskContinuation.cs:line 94at System.Threading.Tasks.Task.<>c.<.cctor>b__271_0(Object obj) in //src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 2369
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in //src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 268
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in //src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 293
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) in //src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 2331
The text was updated successfully, but these errors were encountered: