Univention Bugzilla – Bug 35649
python-lib creates DC slave object on single master system
Last modified: 2018-11-27 19:08:27 CET
http://jenkins.knut.univention.de:8080/view/UCSschool/job/UCSschool%203.2%20Singleserver/84/SambaVersion=s3/testReport/90_ucsschool/40_schoolwizard_school_create/test/ On single master systems, the python lib should not create a DC slave object if the DC slave name has NOT been specified. Output from 40_schoolwizard_school_create: ----------------------[new random OU, no DC specified]------------------------- *** calling ['/usr/sbin/umc-command', '-U', 'Administrator', '-P', 'univention', '-s', 'master200.autotest200.local', 'schoolwizards/schools/create', '-e', '-o', '[{"object": {"display_name": "tzkkwout9l", "name": "tzkkwout9l"}}]', '-f', 'schoolwizards/schools'] *** EXITCODE=0 *** *** STDOUT *** Response: COMMAND data length : 135 message length: 50 --- ARGUMENTS: schoolwizards/schools/create MIMETYPE : application/json STATUS : 200 MESSAGE : None RESULT : [True] [...] Traceback (most recent call last): File "40_schoolwizard_school_create", line 252, in <module> main() File "40_schoolwizard_school_create", line 64, in main utils.verify_ldap_object(dc_dn, expected_attr={'cn': [dc_name]}, strict=True, should_exist=False) File "/usr/lib/pymodules/python2.6/univention/testing/utils.py", line 140, in verify_ldap_object raise LDAPUnexpectedObjectFound('DN: %s' % baseDn) univention.testing.utils.LDAPUnexpectedObjectFound: DN: cn=dctzkkwout9l-01,cn=dc,cn=server,cn=computers,ou=tzkkwout9l,dc=autotest200,dc=local
Probably a bug in the test script. Behaviour is fine for me.
I've not been able to reproduce this error in Jenkins or via CLI. → VERIFIED
UCS@school 3.2 R2 v2 has been released: http://docs.univention.de/release-notes-ucsschool-3.2R2v2-de.html If this error occurs again, please use "Clone This Bug".
*** Bug 38236 has been marked as a duplicate of this bug. ***