90_ucsschool.94_samba4_check_shares_access.test fails in Jenkins Multiserver → SambaVersion=s4-school-only SambaVersion=s4-school-only-with-slave with the failing message: Trying to connect to Sysvol on DC-Master and list the contents using Samba client: ('smbclient', '//master204.autotest204.local/sysvol', '--user=ucs_test_school_user_u4fqnbkn%Foo3vjvc4n3s', '--timeout=120', '--workgroup=AUTOTEST204.LOCAL', '--command=ls') The Samba client produced the following output to STDOUT: Connection to master204.autotest204.local failed (Error NT_STATUS_CONNECTION_REFUSED) ### FAIL ### The connection with DC-Master failed. See the stdout. ### ### http://jenkins.knut.univention.de:8080/job/UCSschool%204.0/job/UCSschool%204.0%20Multiserver/22/SambaVersion=s4-school-only/testReport/90_ucsschool/94_samba4_check_shares_access/test/ http://jenkins.knut.univention.de:8080/job/UCSschool%204.0/job/UCSschool%204.0%20Multiserver/21/SambaVersion=s4-school-only/testReport/90_ucsschool/94_samba4_check_shares_access/test/ Test is disabled with SKIP-UCSSCHOOL tag, please enable when this bug is fixed.
According to the code the test should have been skripped in these cases: # skip the test if DC-Master has no S4: if not self.dc_master_has_samba4(): self.return_code_result_skip() So essential.test_samba4.TestSamba4.dc_master_has_samba4 needs to be checked.
(In reply to Arvid Requate from comment #1) > According to the code the test should have been skripped in these cases: > > # skip the test if DC-Master has no S4: > if not self.dc_master_has_samba4(): > self.return_code_result_skip() > > > So essential.test_samba4.TestSamba4.dc_master_has_samba4 needs to be checked. Hmm, interesting. The logic there is quite simple. I'll check that.
OK, I've forgot to set 'self.ldap_master' hostname before the check if it has Samba4. r59101: * 90_ucsschool/essential/test_samba4.py: get 'self.ldap_master' if it is none 90_ucsschool/94_samba4_check_shares_access: added skip message, bug reference, enabled the test (Bug #37977). Test re-enabled.