Bug 37855 - schoolinstaller.py dies during apache reload
schoolinstaller.py dies during apache reload
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: ucs-test
UCS@school 4.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: Sönke Schwardt-Krummrich
Ammar Najjar
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-02-20 10:11 CET by Sönke Schwardt-Krummrich
Modified: 2023-03-25 06:46 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 2015-02-20 10:11:32 CET
schoolinstaller.py seems to have problems with failing HTTPS connections during apache reload.

Installation der UCS@school-Pakete - service apache2 reload
Installation der UCS@school-Pakete - service apache2 reload
Installation der UCS@school-Pakete - Reloading web server config: apache2.
Traceback (most recent call last):
  File "/root/schoolinstaller.py", line 124, in <module>
    status = connection.request('schoolinstaller/progress')
  File "/usr/lib/pymodules/python2.7/univention/lib/umc_connection.py", line 131, in request
    con.request('POST', umcp_command, data, headers=self._headers)
  File "/usr/lib/python2.7/httplib.py", line 962, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 996, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 958, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 818, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 780, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 1165, in connect
    self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
  File "/usr/lib/python2.7/ssl.py", line 381, in wrap_socket
    ciphers=ciphers)
  File "/usr/lib/python2.7/ssl.py", line 143, in __init__
    self.do_handshake()
  File "/usr/lib/python2.7/ssl.py", line 305, in do_handshake
    self._sslobj.do_handshake()
socket.error: [Errno 104] Connection reset by peer
*** Failed 1: /root/schoolinstaller.py -uAdministrator -p univention -o School2 -M -e -s 4 && touch UCSSCHOOL_READY4TESTS
Comment 1 Florian Best univentionstaff 2015-02-20 10:17:44 CET
related to bug37484?
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2015-03-02 14:31:00 CET
I don't think that the problem is related to bug 37484.

The schoolinstaller.py has been altered and rechecks the progress state and ignores socket errors until the specified timeout is reached.

Fixed in 
ucs-4.0-1/test/ucs-ec2-tools/examples/jenkins/utils/schoolinstaller.py
ucs-4.0-0/test/ucs-ec2-tools/examples/jenkins/utils/schoolinstaller.py
Comment 3 Ammar Najjar univentionstaff 2015-04-09 11:00:37 CEST
(In reply to Sönke Schwardt-Krummrich from comment #2)
> I don't think that the problem is related to bug 37484.
> 
> The schoolinstaller.py has been altered and rechecks the progress state and
> ignores socket errors until the specified timeout is reached.
> 
> Fixed in 
> ucs-4.0-1/test/ucs-ec2-tools/examples/jenkins/utils/schoolinstaller.py
> ucs-4.0-0/test/ucs-ec2-tools/examples/jenkins/utils/schoolinstaller.py

OK: fixed in utils/schoolinstaller.py.
The traceback did not appear in the last 8 Jenkins runs.