Univention Bugzilla – Bug 52745
01_base/96rename* fail in UCS5
Last modified: 2021-05-25 16:02:42 CEST
In UCS5 all the testcases which test the renaming of well-known groups and users (Administrator, Domain Admins, Domain Users) fail almost constantly. They rename the user/group, wait for replication and postrun, check if the corresponding ucr var is set, and check all the ucr templates, if those well-known objects are renamed in them. In scenarios with S4, usually the postrun which sets the UCR var (groups/default/domainadmins/ groups/default/domainusers /users/default/Administrator) is never executed, and the test fails with "LDAPReplication Failed". Every time I observed this, an S4Connector loop was present (See Bug #52358). This loop most likely prevented the postrun. In scenarios without S4, 96rename_domain_admins and 95rename_administrator fail, even though the postrun is executed and the UCR var is renamed. Still, some of the templates are not renamed when the test checks them. On my machine, it was necessary to increase some "sleeps" for the tests to be successful. I find it puzzling though, why it seems to take quite a bit longer than in UCS4, where the tests always succeed.
4817775503 Bug #52745: Put some files on ignorelist, wait longer 58c2e7e361 Bug #52745: version bump 8a55e8a829 Bug #52745: use new admin credentials for cleanup ca03aa0710 Bug #52745: Translate 95rename_administrator to python I adjusted the tests, but some still failed due to Bug #34003 (it took a long time to commit slapd.conf) And some failed due to Bug #52358 (S4Connector loop inhibited postrun). Fixes on those bugs repaired these tests.
as discussed, please adjust the test cases according to: 85605da9f0309ef654d7e4991b5c8a34fe95e945 + ac46d66d9fb1c759faa41d06dd32fbc5f4f35be7
f3ac77b942 Bug #52745: Code cleanup a9d48c25bd Bug #50278: fixup! Code cleanup done
- wait_for_drs_replication('(sAMAccountName=%s)' % (new_admin_name,)) + wait_for_drs_replication(filter_format('(sAMAccountName=%s)' % (new_admin_name,))) → "%" has to be replaced with "," (2 times)
(In reply to Julia Bremer from comment #3) > a9d48c25bd Bug #50278: fixup! Code cleanup > did that in this commit
alright.
UCS 5.0 has been released: https://docs.software-univention.de/release-notes-5.0-0-en.html https://docs.software-univention.de/release-notes-5.0-0-de.html If this error occurs again, please use "Clone This Bug".