Univention Bugzilla – Bug 51341
Backport 4.3: memberOf differences between master and backup in slapcat output
Last modified: 2020-06-03 12:57:53 CEST
This fix should be backported to UCS 4.3-5. +++ This bug was initially created as a clone of Bug #46590 +++ After comparing slapcat on the master and the backup (of a setup with two DC slaves) with diff-ldif I got the following diff: https://pastebin.knut.univention.de/WATiXDm9 UCS@school 4.3
Backported commits to errata 4.3-5: [4.3-5] 43631f226b Bug #51341: add changelog entry [4.3-5] 8a3040d8ea Bug #51341: wait_for does not exist in UCS 4.3 [4.3-5] aadf10e14c Bug #51341: add 10_ldap/42replication_memberof [4.3-5] e4ce692bde Bug #51351: add advisory [4.3-5] 39c874d777 Bug #51341: add changelog entry [4.3-5] 09573095aa Bug #51341: replication.py: fix memberOf handling Package: univention-directory-replication Version: 11.0.0-9A~4.3.0.202005242228 Branch: ucs_4.3-0 Scope: errata4.3-5
Package: ucs-test Version: 8.0.30-5A~4.3.0.202005261528 Branch: ucs_4.3-0 Scope: errata4.3-5
The test case is failing. Please either backport the retry_count or remove it. (2020-05-27 10:31:21.948336) Traceback (most recent call last): (2020-05-27 10:31:21.948460) File "42replication_memberof", line 275, in <module> (2020-05-27 10:31:21.948592) testcases.run() (2020-05-27 10:31:21.948636) File "42replication_memberof", line 264, in run (2020-05-27 10:31:21.948751) func(with_listener) (2020-05-27 10:31:21.948791) File "42replication_memberof", line 113, in test_user_then_group (2020-05-27 10:31:21.948871) utils.verify_ldap_object(dn_grp1, {'uniqueMember': [dn_user1, dn_user2]}, strict=True, retry_count=RETRY_COUNT, delay=DELAY) (2020-05-27 10:31:21.948994) TypeError: verify_ldap_object() got an unexpected keyword argument 'retry_count'
For simplicity I removed the retry_count and tested manually on my 4.3 machine. Looked good on that machine, let's hope the best for the jenkins tests. [4.3-5] 27dcd7dc84 Bug #51341: add changelog entry [4.3-5] fab0a716ab Bug #51341: udm.modify_object() does not return the new DN [4.3-5] 399dcd67ce Bug #51341: remove UCS 4.4 features in 10_ldap/42replication_memberof Package: ucs-test Version: 8.0.30-6A~4.3.0.202005281758 Branch: ucs_4.3-0 Scope: errata4.3-5
The test case is still failing: https://jenkins.knut.univention.de:8181/job/UCS-4.3/job/UCS-4.3-5/job/AutotestUpgrade/lastCompletedBuild/SambaVersion=s4,Systemrolle=master-part-II/testReport/10_ldap/42replication_memberof/test/
The test shouldn't have been run on that machine because the memberOf overlay is disabled: https://jenkins.knut.univention.de:8181/job/UCS-4.3/job/UCS-4.3-5/job/AutotestUpgrade/lastCompletedBuild/SambaVersion=s4,Systemrolle=master-part-II/testReport/10_ldap/92_memberOf/ (2020-06-02 10:58:03.505627) + member_of_not_available (2020-06-02 10:58:03.505849) + grep -i '^memberOf:' (2020-06-02 10:58:03.507046) + univention-ldapsearch -ALLLL '(&(objectClass=posixAccount)(uid=*))' + (2020-06-02 10:58:03.816867) + test 1 -eq 0 (2020-06-02 10:58:03.816895) + return 0 The test now skips itself if the overlay is not activated. Package: ucs-test Version: 8.0.30-8A~4.3.0.202006022137 Branch: ucs_4.3-0 Scope: errata4.3-5 [4.3-5] fef2a18625 Bug #51341: skip 10_ldap/42replication_memberof if memberOf is disabled
OK: backport OK: ucs-test case OK: ucs-test case if disabled memberof OK: YAML
<http://errata.software-univention.de/ucs/4.3/681.html>