Univention Bugzilla – Bug 42392
90_ucsschool.94_samba4_check_shares_access.test test case fails
Last modified: 2019-02-05 21:16:11 CET
*** BEGIN *** ['/usr/bin/python', '94_samba4_check_shares_access'] *** *** 90_ucsschool/94_samba4_check_shares_access *** Test the DC Locator Master shares access from DC-Slave. *** *** START TIME: 2016-09-14 01:24:48 *** Obtaining Administrator username and password for the test from the UCR create_and_run_process(('udm', 'computers/domaincontroller_master', 'list', '--filter', 'service=Samba 4'), shell=False) Creating a student for the test with a name 'ucs_test_school_user_qm9037hs' and a password 'Foo3z9sy9xmu' Selecting the School OU for the test create_and_run_process(('udm', 'computers/domaincontroller_slave', 'list', '--filter', 'service=Samba 4'), shell=False) create_and_run_process(('sed', '-n', 's/^DN: //p'), shell=False) select_school_ou: SchoolSearchBase found these OUs: ['School2'] *** Creating new user 'ucs_test_school_user_qm9037hs' with {'disabled': False, 'school': 'School2', 'name': 'ucs_test_school_user_qm9037hs', 'firstname': 'gerkbsootv', 'schools': ['School2'], 'lastname': 'hhakvmfqvf', 'password': 'Foo3z9sy9xmu', 'email': '', 'school_classes': {}}. /usr/share/ucs-school-import/hooks/user_create_pre.d not found or empty. Getting Student UDM object by filter: username=ucs_test_school_user_qm9037hs Creating Student(name='ucs_test_school_user_qm9037hs', school='School2', dn='uid=ucs_test_school_user_qm9037hs,cn=schueler,cn=users,ou=School2,dc=autotest208,dc=local') Initializing ('School', ('name', 'School2')) Getting School UDM object by dn: ou=School2,dc=autotest208,dc=local Initializing ('Group', ('name', 'Domain Users School2'), ('school', 'School2')) /usr/share/ucs-school-import/hooks/group_create_pre.d not found or empty. Getting Group UDM object by filter: name=Domain Users School2 Initializing ('Group', ('name', 'schueler-School2'), ('school', 'School2')) Getting Group UDM object by filter: name=schueler-School2 Looking up School with dn 'ou=School2,dc=autotest208,dc=local' Getting all AnyComputer of School2 with filter 'univentionService=Windows Profile Server' Student(name='ucs_test_school_user_qm9037hs', school='School2', dn='uid=ucs_test_school_user_qm9037hs,cn=schueler,cn=users,ou=School2,dc=autotest208,dc=local') successfully created /usr/share/ucs-school-import/hooks/user_create_post.d not found or empty. *** Result of User(...).create(): True Waiting for replication... . . . . Done: replication complete. Waiting for DRS replication, filter: '(sAMAccountName=ucs_test_school_user_qm9037hs)' DRS replication took 0 seconds Trying to connect to Sysvol on DC-Master and list the contents using Samba client: The test case 90_ucsschool.94_samba4_check_shares_access.test fails in Jenkins: http://jenkins.knut.univention.de:8080/job/UCSschool%204.1/job/UCSschool%204.0%20to%204.1%20Multiserver/lastCompletedBuild/SambaVersion=s4/testReport/90_ucsschool/94_samba4_check_shares_access/test/ ('smbclient', '//master208.autotest208.local/sysvol', '--user=ucs_test_school_user_qm9037hs%Foo3z9sy9xmu', '--timeout=120', '--workgroup=AUTOTEST208.LOCAL', '--command=ls') create_and_run_process(('smbclient', '//master208.autotest208.local/sysvol', '--user=ucs_test_school_user_qm9037hs%Foo3z9sy9xmu', '--timeout=120', '--workgroup=AUTOTEST208.LOCAL', '--command=ls'), shell=False) The Samba client produced the following output to STDOUT: session setup failed: NT_STATUS_LOGON_FAILURE ### FAIL ### The connection with DC-Master failed. See the stdout. ### ### Removing the test student user 'ucs_test_school_user_qm9037hs': *** Calling following command: ['/usr/sbin/udm-test', 'users/user', 'remove', '--dn', 'uid=ucs_test_school_user_qm9037hs,cn=schueler,cn=users,ou=School2,dc=autotest208,dc=local'] Object removed: uid=ucs_test_school_user_qm9037hs,cn=schueler,cn=users,ou=School2,dc=autotest208,dc=local *** END TIME: 2016-09-14 01:25:20 *** *** TEST DURATION (H:MM:SS.ms): 0:00:31.635229 *** *** END *** 1 ***
The test currently only fails in the environment "s4 with slave": [2017-02-11 20:18:08.993507] [2017-02-11 20:18:08.993628] Obtaining Administrator username and password for the test from the UCR [2017-02-11 20:18:09.004520] [2017-02-11 20:18:09.004573] create_and_run_process(('udm', 'computers/domaincontroller_master', 'list', '--filter', 'service=Samba 4'), shell=False) [2017-02-11 20:18:09.194830] [2017-02-11 20:18:09.194874] Creating a student for the test with a name 'ucs_test_school_user_zjodb1pc' and a password 'Foo3ibbunbrl' [2017-02-11 20:18:09.194885] Selecting the School OU for the test [2017-02-11 20:18:09.194896] create_and_run_process(('udm', 'computers/domaincontroller_slave', 'list', '--filter', 'service=Samba 4'), shell=False) [2017-02-11 20:18:09.373002] [2017-02-11 20:18:09.373045] create_and_run_process(('sed', '-n', 's/^DN: //p'), shell=False) [2017-02-11 20:18:09.389162] [2017-02-11 20:18:09.389181] select_school_ou: SchoolSearchBase found these OUs: ['School1'] [2017-02-11 20:18:09.389199] *** Creating new user 'ucs_test_school_user_zjodb1pc' with {'disabled': False, 'school': 'School1', 'name': 'ucs_test_school_user_zjodb1pc', 'firstname': 'bhozxqpsvv', 'schools': ['School1'], 'lastname': 'owaztgkmjw', 'password': 'Foo3ibbunbrl', 'email': '', 'school_classes': {}}. [2017-02-11 20:18:09.750929] *** Result of Student(...).create(): True [2017-02-11 20:18:09.751014] Waiting for replication... [2017-02-11 20:18:10.939950] . Done: replication complete. (2017-02-11 20:18:11.038712) Searching for dsServiceName in rootDSE failed: operations error at ../source4/dsdb/samdb/ldb_modules/rootdse.c:516 (2017-02-11 20:18:11.038802) Failed to find our own NTDS Settings DN in the ldb! (2017-02-11 20:18:11.038860) dsdb_schema_from_db() failed: 53:Unwilling to perform: dsdb_schema: failed to search the schema head: Could not verify if Recycle Bin is enabled (2017-02-11 20:18:11.038897) (2017-02-11 20:18:11.038956) dsdb_get_schema: refresh_fn() failed (2017-02-11 20:18:11.039011) schema_load_init: dsdb_get_schema failed (2017-02-11 20:18:11.039064) module schema_load initialization failed : Operations error (2017-02-11 20:18:11.039115) module dsdb_notification initialization failed : Operations error (2017-02-11 20:18:11.039164) module rootdse initialization failed : Operations error (2017-02-11 20:18:11.039214) module samba_dsdb initialization failed : Operations error (2017-02-11 20:18:11.039268) Unable to load modules for tdb:///var/lib/samba/private/sam.ldb: schema_load_init: dsdb_get_schema failed (2017-02-11 20:18:11.039353) Traceback (most recent call last): (2017-02-11 20:18:11.039465) File "94_samba4_check_shares_access", line 105, in <module> (2017-02-11 20:18:11.039550) exit(TestDCLocatorShares.main()) (2017-02-11 20:18:11.039598) File "94_samba4_check_shares_access", line 89, in main (2017-02-11 20:18:11.039670) student_name, student_dn, student_password = self.create_student() (2017-02-11 20:18:11.039716) File "94_samba4_check_shares_access", line 71, in create_student (2017-02-11 20:18:11.039785) wait_for_drs_replication("(sAMAccountName=%s)" % escape_filter_chars(student_name), attrs="objectSid") (2017-02-11 20:18:11.039830) File "/usr/lib/pymodules/python2.7/univention/testing/ucs_samba.py", line 32, in wait_for_drs_replication (2017-02-11 20:18:11.039905) samdb = SamDB("tdb://%s" % lp.private_path("sam.ldb"), session_info=system_session(lp), lp=lp) (2017-02-11 20:18:11.039953) File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 57, in __init__ (2017-02-11 20:18:11.040025) options=options) (2017-02-11 20:18:11.040067) File "/usr/lib/python2.7/dist-packages/samba/__init__.py", line 115, in __init__ (2017-02-11 20:18:11.040141) self.connect(url, flags, options) (2017-02-11 20:18:11.040184) File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 72, in connect (2017-02-11 20:18:11.040251) options=options) (2017-02-11 20:18:11.040397) _ldb.LdbError: (1, 'schema_load_init: dsdb_get_schema failed') Standard Fehler (STDERR)
This issue has been filled against UCS@school 4.1 (R2). The maintenance with bug and security fixes for UCS@school 4.1 (R2) has ended on 5th of April 2018. Customers still on UCS 4.1 are encouraged to update to UCS 4.3 (or later). Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.