Bug 35649 - python-lib creates DC slave object on single master system
python-lib creates DC slave object on single master system
Status: CLOSED INVALID
Product: UCS@school
Classification: Unclassified
Component: Ucsschool-lib
UCS@school 3.2 R2
Other Linux
: P5 normal (vote)
: UCS@school 3.2 R2 Errata
Assigned To: Dirk Wiesenthal
Sönke Schwardt-Krummrich
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-20 08:38 CEST by Sönke Schwardt-Krummrich
Modified: 2018-11-27 19:08 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
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 Sönke Schwardt-Krummrich univentionstaff 2014-08-20 08:38:57 CEST
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
Comment 1 Dirk Wiesenthal univentionstaff 2014-08-25 10:12:25 CEST
Probably a bug in the test script. Behaviour is fine for me.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2014-08-27 10:46:29 CEST
I've not been able to reproduce this error in Jenkins or via CLI.
→ VERIFIED
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2014-08-27 17:01:51 CEST
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".
Comment 4 Julia Bremer univentionstaff 2018-11-27 19:08:27 CET
*** Bug 38236 has been marked as a duplicate of this bug. ***