Bug 44247

Summary: autotest-201-ucsschool-singleserver-s4-all-components fails to set up
Product: UCS@school Reporter: Sönke Schwardt-Krummrich <schwardt>
Component: JenkinsAssignee: Sönke Schwardt-Krummrich <schwardt>
Status: CLOSED FIXED QA Contact: Daniel Tröder <troeder>
Severity: normal    
Priority: P5 CC: best
Version: UCS@school 4.2   
Target Milestone: UCS@school 4.2 v2   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=44316
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:

Description Sönke Schwardt-Krummrich univentionstaff 2017-04-03 21:10:00 CEST
autotest-201-ucsschool-singleserver-s4-all-components fails to set up; the LDAP server seems to be down at a critical moment:

http://jenkins.knut.univention.de:8080/job/UCSschool%204.2/job/UCSschool%204.2%20Singleserver/ImportTests=NoImportTests,SambaVersion=s4-all-components/22/artifact/management-console-module-schoolinstaller.log

03.04.17 04:03:02.339  MODULE      ( INFO    ) : Executing ['schoolinstaller/progress']
03.04.17 04:03:02.339  MAIN        ( INFO    ) : Setting locale 'en_US'
03.04.17 04:03:02.340  PROTOCOL    ( INFO    ) : Sending UMCP RESPONSE 149120658228503-5640
03.04.17 04:03:02.401  MODULE      ( ERROR   ) : Failed to execute create_ou: ['/usr/share/ucs-school-import/scripts/create_ou', '--displayName', 'School1', 'School1']
Traceback (most recent call last):
  File "/usr/share/ucs-school-import/scripts/create_ou", line 3263, in <module>
    verify_school_ou(ouname, co, lo, baseDN, dcName=dcNameEducational, ShareFileServer=options.ShareFileServer, displayName=options.displayName)
  File "/usr/share/ucs-school-import/scripts/create_ou", line 669, in verify_school_ou
    obj.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 318, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 812, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 501, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
univention.admin.uexceptions.ldapError: Can't contact LDAP server
verify ou for school nr School1

[...]

03.04.17 04:03:02.448  MODULE      ( INFO    ) : Finished installation
03.04.17 04:03:02.448  MODULE      ( WARN    ) : Error during installation: The UCS@school software packages have been installed, however, a school OU could not be created and consequently a re-join of the system has not been performed. Please create a new school OU structure using the UMC module "Add school" on the master and perform a domain join on this machine via the UMC module "Domain join".
03.04.17 04:03:02.448  MODULE      ( WARN    ) : The UCS@school software packages have been installed, however, a school OU could not be created and consequently a re-join of the system has not been performed. Please create a new school OU structure using the UMC module "Add school" on the master and perform a domain join on this machine via the UMC module "Domain join".
Comment 1 Stefan Gohmann univentionstaff 2017-04-07 08:35:53 CEST
The root cause is Bug #44316.
Comment 2 Stefan Gohmann univentionstaff 2017-04-07 08:56:29 CEST
First hotfix:

r78688:
* Switch from modify_s to modify_ext_s which should fix the reconnect handling (Bug #44247)
Comment 3 Stefan Gohmann univentionstaff 2017-04-07 15:55:54 CEST
r78698:

Move switch from modify_s to modify_ext_s which should fix the reconnect handling from monkeypatch to cfg file (Bug #44247)
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2017-04-10 02:00:18 CEST
http://jenkins.knut.univention.de:8080/job/UCSschool%204.2/job/UCSschool%204.2%20Singleserver/ImportTests=NoImportTests,SambaVersion=s4-all-components/30/

Looks much better now → build #30 showed only 2 failing test scripts.
Comment 5 Stefan Gohmann univentionstaff 2017-04-10 06:17:35 CEST
Now, it happens in autotest-201-ucsschool-singleserver-s4-all-components-importonly.cfg. So, I merged the change:

r78703:
Fix reconnect handling in autotest-201-ucsschool-singleserver-s4-all-components-importonly.cfg as well (Bug #44247)
Comment 6 Daniel Tröder univentionstaff 2017-04-11 14:39:47 CEST
OK: jenkins VM is setup successfully
Comment 7 Sönke Schwardt-Krummrich univentionstaff 2017-06-23 13:32:27 CEST
UCS@school 4.2 v2 has been released.

http://docs.software-univention.de/changelog-ucsschool-4.2v2-de.html

If this error occurs again, please clone this bug.