Bug 42305 - schoolinstaller.py fails sometimes on the first School DC
schoolinstaller.py fails sometimes on the first School DC
Status: RESOLVED FIXED
Product: UCS@school
Classification: Unclassified
Component: ucs-test
UCS@school 4.1 R2
Other Linux
: P5 normal (vote)
: ---
Assigned To: Stefan Gohmann
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-07 15:33 CEST by Stefan Gohmann
Modified: 2016-09-29 17:24 CEST (History)
1 user (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2016-09-07 15:33:30 CEST
The schoolinstaller.py tool which is used in our Jenkins setups fails sometimes on the first school DC:
---------------------------------------------------------------------------------
Running command phase (5/7) on VM [master203]
  /root/schoolinstaller.py -uAdministrator -p univention -M       done
Running command phase (5/7) on VM [slave2031]
  echo -n "univention" >/tmp/univention                           done
  /root/schoolinstaller.py -uAdministrator -p univention -o Sch.. fail: return code 1
Running command phase (5/7) on VM [slave2032]
  echo -n "univention" >/tmp/univention                           done
  /root/schoolinstaller.py -uAdministrator -p univention -o Sch.. done
---------------------------------------------------------------------------------

The log messages shows:
---------------------------------------------------------------------------------
Execute: /root/schoolinstaller.py -uAdministrator -p univention -o School1 -M -e -s 4
ERROR: Failed to run installer!
output: {u'success': False, u'error': u'Eine LDAP-Verbindung zu dem Master-System master203.autotest203.local konnte nicht aufgebaut werden.'}
*** Failed 1: /root/schoolinstaller.py -uAdministrator -p univention -o School1 -M -e -s 4
---------------------------------------------------------------------------------

Background (after debugging the issue with Florian):
The schoolinstaller.py sends a lib/server/restart which restarts the UMC server and Apache. Unfortunately, the schoolinstaller.py tool doesn't wait until it has been finished.
Comment 1 Stefan Gohmann univentionstaff 2016-09-07 15:36:07 CEST
Added a 'sleep 20': r72369