Test failure: System.Net.Security.Tests.NegotiateStreamTest / NegotiateStream_*
Types of failures
Affected tests:
- NegotiateStream_StreamToStream_AuthToHttpTarget_Success
- NegotiateStream_StreamToStream_KerberosAuthWithoutRealm_Success
- NegotiateStream_StreamToStream_KerberosAuthentication_Success
- NegotiateStream_EchoServer_ClientWriteRead_Successive_Async_Success
- NegotiateStream_EchoServer_ClientWriteRead_Successive_Sync_Success
- NegotiateStream_StreamToStream_KerberosAuthDefaultCredentials_Success
GSSAPI operation failed with error
Invalid status:
- Preauthentication failed - Ubuntu17.04-17.10, Debian90
- Decrypt integrity check failed - Fedora25, Debian87, Ubuntu16.04-16.10
System.Security.Authentication.AuthenticationException : A call to SSPI failed, see inner exception.
---- System.ComponentModel.Win32Exception : GSSAPI operation failed with error - An invalid status code was supplied (Decrypt integrity check failed).
at System.Net.Security.NegoState.ValidateCreateContext(String package, Boolean isServer, NetworkCredential credential, String servicePrincipalName, ChannelBinding channelBinding, ProtectionLevel protectionLevel, TokenImpersonationLevel impersonationLevel) in /root/corefx-1134723/src/System.Net.Security/src/System/Net/Security/NegoState.cs:line 207
at System.Net.Security.NegotiateStream.BeginAuthenticateAsClient(NetworkCredential credential, ChannelBinding binding, String targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel, AsyncCallback asyncCallback, Object asyncState) in /root/corefx-1134723/src/System.Net.Security/src/System/Net/Security/NegotiateStream.cs:line 101
at System.Net.Security.NegotiateStream.BeginAuthenticateAsClient(NetworkCredential credential, String targetName, AsyncCallback asyncCallback, Object asyncState) in /root/corefx-1134723/src/System.Net.Security/src/System/Net/Security/NegotiateStream.cs:line 61
at System.Threading.Tasks.TaskFactory`1.FromAsyncImpl[TArg1,TArg2](Func`5 beginMethod, Func`2 endFunction, Action`1 endAction, TArg1 arg1, TArg2 arg2, Object state, TaskCreationOptions creationOptions) in /root/coreclr/src/mscorlib/src/System/Threading/Tasks/FutureFactory.cs:line 1081
at System.Net.Security.NegotiateStream.AuthenticateAsClientAsync(NetworkCredential credential, String targetName) in /root/corefx-1134723/src/System.Net.Security/src/System/Net/Security/NegotiateStream.cs:line 247
at System.Net.Security.Tests.NegotiateStreamTest.NegotiateStream_EchoServer_ClientWriteRead_Successive_Async_Success() in /root/corefx-1134723/src/System.Net.Security/tests/FunctionalTests/NegotiateStreamTestForUnix.cs:line 356
----- Inner Stack Trace -----
at System.Net.Security.NegotiateStreamPal.AcquireCredentialsHandle(String package, Boolean isServer, NetworkCredential credential) in /root/corefx-1134723/src/Common/src/System/Net/Security/NegotiateStreamPal.Unix.cs:line 313
at System.Net.NTAuthentication.Initialize(Boolean isServer, String package, NetworkCredential credential, String spn, ContextFlagsPal requestedContextFlags, ChannelBinding channelBinding) in /root/corefx-1134723/src/Common/src/System/Net/NTAuthentication.Common.cs:line 127
at System.Net.Security.NegoState.ValidateCreateContext(String package, Boolean isServer, NetworkCredential credential, String servicePrincipalName, ChannelBinding channelBinding, ProtectionLevel protectionLevel, TokenImpersonationLevel impersonationLevel) in /root/corefx-1134723/src/System.Net.Security/src/System/Net/Security/NegoState.cs:line 203
History of failures
| Day | Build | OS | Error message |
|---|---|---|---|
| 7/18-9/18 | N/A | * | 178 failures -- GSSAPI operation failed with error |
| 9/12-9/18 | N/A | * | 109 failures -- Win32Exception : No such file or directory (Invalid argument on Suse422) |
| 9/20-10/18 | N/A | * | 28 failures -- Assert |
| 10/23-10/31 | N/A | * | 11 failures -- GSSAPI operation failed with error |
| 11/1 | 20171101.03 | Ubuntu17.04 | |
| 11/12 | 20171112.01 | Fedora25 | |
| 11/12 | 20171112.01 | Fedora25 | |
| 11/13 | 20171113.01 | Fedora25 | |
| 11/13 | 20171113.01 | Fedora25 | |
| 11/13 | 20171113.02 | Fedora25 | |
| 2/6 | 20180206.04 | Debian90 | all 6 tests failed |
| 2/15 | 20180215.04 | Ubuntu16.04 | 2x all 6 tests failed |
| 3/1 | 20180301.04 | Fedora26 | 2x all 6 tests failed |
failed test: System.Net.Security.Tests.NegotiateStreamTest/NegotiateStream_EchoServer_ClientWriteRead_Successive_Async_Success System.Net.Security.Tests.NegotiateStreamTest/NegotiateStream_EchoServer_ClientWriteRead_Successive_Sync_Success System.Net.Security.Tests.NegotiateStreamTest/NegotiateStream_StreamToStream_AuthToHttpTarget_Success System.Net.Security.Tests.NegotiateStreamTest/NegotiateStream_StreamToStream_KerberosAuthDefaultCredentials_Success System.Net.Security.Tests.NegotiateStreamTest/NegotiateStream_StreamToStream_KerberosAuthWithoutRealm_Success System.Net.Security.Tests.NegotiateStreamTest/NegotiateStream_StreamToStream_KerberosAuthentication_Success
Failed again on Core Tests (Master), detail: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fcli~2F/build/20170720.91/workItem/System.Net.Security.Tests
@davidsh is this just another manifestation of test flakiness? If so please move out of 2.0.
@danmosemsft All these test failures are on Linux (Ubuntu). They are all related to the NegotiateStream class. Those tests use a loopback server and not an Azure endpoint. All the tests seem to be failing in similar way:
"System.Security.Authentication.AuthenticationException : A call to SSPI failed, see inner exception.\n-------- System.ComponentModel.Win32Exception : GSSAPI operation failed with error - An invalid status code was supplied ()."
Looks like a machine-wide problem with Linux GSSAPI. But you'll need a Linux expert to diagnose.
Failed again: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fcli~2F/build/20170724.01/workItem/System.Net.Security.Tests
@davidsh , thanks, I should have noticed it was Linux. @Priya91 I'm going to move this out of 2.0 on the assumption it's a test issue. Feel free to move back.
Requires investigation, seems to happen only on Ubuntu?
This issue is repro in CI, detail: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_netcoreapp_ubuntu14.04_debug/121/testReport/
Failed again in CI, detail: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_netcoreapp_ubuntu14.04_debug/123/testReport/
Failed again in Core Tests (Master), detail: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fcli~2F/build/20170731.01/workItem/System.Net.Security.Tests
Failed again in CI: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_netcoreapp_ubuntu14.04_debug/127/testReport/
failed again on Core Tests (Master), detail: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fcli~2F/build/20170807.01/workItem/System.Net.Security.Tests
failed again in CI: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_netcoreapp_ubuntu14.04_debug/134/testReport/
failed again in CI: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_netcoreapp_ubuntu14.04_debug/137/testReport/
failed again in OuterLoop_netcoreapp_ubuntu14.04_debug, detail: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_netcoreapp_ubuntu14.04_debug/138/testReport/
Still repro in Master branch, detail: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fcli~2F/build/20170829.01/workItem/System.Net.Security.Tests
@karelz this is consistently failing now on Ubuntu 17.10. Could someone please look and either fix the problem or temporarily disable for Ubuntu 17.10 ?
https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fcli~2F/build/20170912.01/workItem/System.Net.Security.Tests
Given it's a consistent failure in Helix, this might well be debuggable locally on a 17.10 machine
@Priya91 can you please take a look at this one? It is one of the last 2 bugs preventing us being green :) Thanks!
@danmosemsft There is no ubuntu 17.10 image on DevTestLabs. Do you know how I can get a repro environment?