Bug 40562 - Setup with multiple Samba DCs (DRS) and school import
Setup with multiple Samba DCs (DRS) and school import
Status: RESOLVED FIXED
Product: UCS@school
Classification: Unclassified
Component: ucs-test
UCS@school 4.1
Other Linux
: P5 normal (vote)
: UCS@school 4.1 R2 vXXX
Assigned To: Stefan Gohmann
:
Depends on:
Blocks: 40321
  Show dependency treegraph
 
Reported: 2016-02-02 16:54 CET by Stefan Gohmann
Modified: 2017-01-05 07:20 CET (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2016-02-02 16:54:37 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.
Comment 1 Stefan Gohmann univentionstaff 2016-08-23 13:08:44 CEST
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.
Comment 2 Stefan Gohmann univentionstaff 2016-08-26 13:08:05 CEST
ucs-school-testuser-import --students 20000 --classes 2000 --teachers 1000 --inclasses 3 -v Schule1 SChule2 Schule3
Comment 3 Stefan Gohmann univentionstaff 2016-09-01 10:29:02 CEST
(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 ------
Comment 4 Daniel Tröder univentionstaff 2016-09-07 08:31:12 CEST
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.
Comment 5 Daniel Tröder univentionstaff 2016-09-20 12:39:02 CEST
r72685: the class TestUserCsvExporter was moved into a separate module, so that it can be used by other test scripts
Comment 6 Daniel Tröder univentionstaff 2016-09-20 12:40:05 CEST
s/TestUserCsvExporter/TestUserCreator/
Comment 7 Stefan Gohmann univentionstaff 2016-12-16 07:16:35 CET
A large environment has been added:
http://jenkins.knut.univention.de:8080/job/UCSschool%204.1/job/UCSschool%204.1%20(R2)%20Large%20Environment/