Univention Bugzilla – Bug 40562
Setup with multiple Samba DCs (DRS) and school import
Last modified: 2017-01-05 07:20:21 CET
We should add a setup with 4 Samba 4 DCs (Master + 3 Backups) in Jenkins. The tests should include a school import and a rename of classes.
The scenario should be master, backup, slave and two school DCs. We should import about 20.000 users and more than 2000 groups and we should check the DRS replication (master, backup, slave) and the replication to the school DC (OpenLDAP and Samba4). We should test the class rename and the move of users from one school to another. One school DC should be re-joined.
ucs-school-testuser-import --students 20000 --classes 2000 --teachers 1000 --inclasses 3 -v Schule1 SChule2 Schule3
(In reply to Stefan Gohmann from comment #2) > ucs-school-testuser-import --students 20000 --classes 2000 --teachers 1000 > --inclasses 3 -v Schule1 SChule2 Schule3 ------ Creating / modifying users... ------ Entry #2: Could not retrieve mail domain from configuration nor from UCRV mail/hosteddomains. Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/ucsschool/importer/mass_import/user_import.py", line 106, in create_and_modify_users user = self.determine_add_modify_action(imported_user) File "/usr/lib/pymodules/python2.7/ucsschool/importer/mass_import/user_import.py", line 195, in determine_add_modify_action imported_user.prepare_all(new_user=True) File "/usr/lib/pymodules/python2.7/ucsschool/importer/models/import_user.py", line 228, in prepare_all self.prepare_attributes(new_user) File "/usr/lib/pymodules/python2.7/ucsschool/importer/models/import_user.py", line 250, in prepare_attributes self.make_email() File "/usr/lib/pymodules/python2.7/ucsschool/importer/models/import_user.py", line 382, in make_email "mail/hosteddomains.", entry=self.entry_count, import_user=self) MissingMailDomain: Could not retrieve mail domain from configuration nor from UCRV mail/hosteddomains. Starting univention-directory-notifier Starting Univention Directory Notifier daemon. ok: run: univention-directory-notifier: (pid 20247) 0s, normally down done. univention-directory-notifier started More than 0 errors. Exiting. Errors: 2: Could not retrieve mail domain from configuration nor from UCRV mail/hosteddomains. 2016-09-01 03:28:45 INFO ucs-school-testuser-import.main:244 ------ ucs-school-user-import return with exit code 1 ------
Options for the import script can be set in a JSON file (those read and their order is printed at the beginning of each import job) or on the command line: --set verbose=True input:type=csv maildomain=test.local All configuration options set in this way will overwrite the respective setting from the JSON files. All configuration options on the command line must be written in one go ("--set" argument must be used only once). Like in the example above for three options.
r72685: the class TestUserCsvExporter was moved into a separate module, so that it can be used by other test scripts
s/TestUserCsvExporter/TestUserCreator/
A large environment has been added: http://jenkins.knut.univention.de:8080/job/UCSschool%204.1/job/UCSschool%204.1%20(R2)%20Large%20Environment/