Bug 37980 - ucs-test: Connection to download server updates.software-univention.de gets stuck / stalls
ucs-test: Connection to download server updates.software-univention.de gets s...
Status: NEW
Product: UCS Test
Classification: Unclassified
Component: Updater
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-10 10:49 CET by Sönke Schwardt-Krummrich
Modified: 2018-04-14 13:51 CEST (History)
2 users (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
TimeoutHTTPServer.py (1.04 KB, text/plain)
2015-03-10 10:49 CET, Sönke Schwardt-Krummrich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2015-03-10 10:49:32 CET
Created attachment 6752 [details]
TimeoutHTTPServer.py

During QA for Bug 36044 I tested with the attached script that provides a simple HTTP server that hangs for 10 seconds during the first request for certains URLs. The response is simply delayed by 10 seconds.

omar:/mnt/omar/vmwares/mirror/ftp$ ~/bin/TimeoutHTTPServer.py
serving at port 8000
[...]

client# ucr set repository/online/timeout=3 \
                repository/online/server=omar.knut.univention.de \
                repository/online/port=8000


Similar setup for mirror timeout tests.

+++ This bug was initially created as a clone of Bug #36044 +++

The UCS 4 installation hangs, it seems the connection to our download server is the problem:

root@ucs401:~# ps -ef | grep 11967
root     11967 11966  0 03:50 tty1     00:00:00 /usr/bin/python2.7 /usr/sbin/ucr commit
root     13305 11967  0 03:51 tty1     00:00:00 /usr/bin/python2.7
root     13808 13720  0 07:45 pts/0    00:00:00 grep 11967
root@ucs401:~# ps -ef | grep 13305
root     13305 11967  0 03:51 tty1     00:00:00 /usr/bin/python2.7
root     13810 13720  0 07:45 pts/0    00:00:00 grep 13305
root@ucs401:~# strace -p 13305
Process 13305 attached - interrupt to quit
recvfrom(3, ^C <unfinished ...>
Process 13305 detached
root@ucs401:~# ls -la /proc/13305/fd
total 0
dr-x------ 2 root root  0 Oct  3 07:46 .
dr-xr-xr-x 9 root root  0 Oct  3 04:36 ..
lr-x------ 1 root root 64 Oct  3 07:46 0 -> pipe:[243560]
l-wx------ 1 root root 64 Oct  3 07:46 1 -> pipe:[243561]
l-wx------ 1 root root 64 Oct  3 07:46 2 -> pipe:[241391]
lrwx------ 1 root root 64 Oct  3 07:46 3 -> socket:[243573]
root@ucs401:~# netstat -tupen | grep 243573
tcp        0      0 10.201.40.1:44538       176.9.114.147:80        ESTABLISHED 0          243573      13305/python2.7
root@ucs401:~# host 176.9.114.147
147.114.9.176.in-addr.arpa domain name pointer download2.software-univention.de.
root@ucs401:~#