Samba4 with s3fs configuration currently does has issues handling concurrent login attempts, e.g. against the sysvol share. A shell-script run of 10 backgrounded smbclient processes usually shows at least two NT_STATUS_IO_TIMEOUT failure situations. Adding the "-k no" swith increases the failure rate significantly, only the first smbclient connection succeeds in that case. root@dc:/home/sernet# ./client-login.sh OK OK OK OK OK OK OK OK Connection to \\dc.samba.private\sysvol failed - NT_STATUS_IO_TIMEOUT Connection to \\dc.samba.private\sysvol failed - NT_STATUS_IO_TIMEOUT Again without trying kerberos: root@dc:/home/sernet# OK Connection to \\dc.samba.private\sysvol failed - NT_STATUS_IO_TIMEOUT Connection to \\dc.samba.private\sysvol failed - NT_STATUS_IO_TIMEOUT Connection to \\dc.samba.private\sysvol failed - NT_STATUS_IO_TIMEOUT Connection to \\dc.samba.private\sysvol failed - NT_STATUS_IO_TIMEOUT Connection to \\dc.samba.private\sysvol failed - NT_STATUS_IO_TIMEOUT Connection to \\dc.samba.private\sysvol failed - NT_STATUS_IO_TIMEOUT Connection to \\dc.samba.private\sysvol failed - NT_STATUS_IO_TIMEOUT Connection to \\dc.samba.private\sysvol failed - NT_STATUS_IO_TIMEOUT Connection to \\dc.samba.private\sysvol failed - NT_STATUS_IO_TIMEOUT
Created attachment 7460 [details] smb.conf, level 10 logs and the test script It looks a bit like windind having a problem answering concurrent wbc_sids_to_xids calls: [2012/04/17 18:54:05.892046, 5, pid=2385, effective(0, 0), real(0, 0)] ../source4/libcli/wbclient/wbclient.c:72(wb c_sids_to_xids_send) wbc_sids_to_xids called [...] [2012/04/17 18:54:15.899285, 10, pid=2385, effective(0, 0), real(0, 0)] ../source3/lib/events.c:216(run_events_poll) Running timed event "tevent_req_timedout" 0x8660490 [2012/04/17 18:54:15.899431, 5, pid=2385, effective(0, 0), real(0, 0)] ../source4/libcli/wbclient/wbclient.c:118(wbc_sids_to_xids_recv) wbc_sids_to_xids_recv called [2012/04/17 18:54:15.899483, 1, pid=2385, effective(0, 0), real(0, 0)] ../source3/smbd/sesssetup.c:264(reply_sesssetup_and_X_spnego) Failed to generate session_info (user and group token) for session setup: NT_STATUS_IO_TIMEOUT
Created attachment 7472 [details] Test script for testenv this reproduces trivially with SELFTEST_TESTENV=plugin_s4_dc make testenv and the attached (modified) test script
Created attachment 7501 [details] Patch to use generate_random() not random() for unique ID values This fixes the issue, and is in autobuild.
(In reply to comment #3) > Created attachment 7501 [details] > Patch to use generate_random() not random() for unique ID values > > This fixes the issue, and is in autobuild. I think we should always fill in id.pid = getpid(); id.task_id = generate_random(); id.vnn = NONCLUSTER_VNN; id.unique_id = generate_random();
f10c63810077a6759a9df4e9c653066f9f355d96 seems to have fixed this.