Bug 49045 - stuck connections with ssh reboot using systemd (4.3)
stuck connections with ssh reboot using systemd (4.3)
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: PAM
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3-3-errata
Assigned To: Jannik Ahlers
Felix Botner
https://serverfault.com/questions/706...
: systemd
Depends on: 47233
Blocks:
  Show dependency treegraph
 
Reported: 2019-03-20 11:49 CET by Arvid Requate
Modified: 2019-07-03 13:31 CEST (History)
6 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 5: Will affect all installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.229
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Usability
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2019-03-20 11:49:30 CET
We also need a backport for 4.3-3

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

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

With systemd "reboot", "halt", "shutdown" is too fast, as the sshd gets killed before the connection is closed down properly. This leads to the ssh session staying around until the TCP timeout kicks in.

Calling
 reboot & logout
fixes it.

From #45215:

(In reply to Felix Botner from comment #3)
> OK, works in ec2 utils
> 
> (In reply to Erik Damrose from comment #1)
> > This is not only an issue in UCS Test, it is also annoying while working
> > with UCS in general. We could backport
> > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751636
> 
> yep, but please open a new bug for UCS
Comment 1 Jannik Ahlers univentionstaff 2019-03-20 12:04:02 CET
73737e4 Bug #47233: yaml
3cb6414 Bug #47233: close ssh connection properly when shutting down
16d2629 Bug #49045: yaml
(yes I know the bug numbers are wrong, unfortunately I only noticed when it was already too late)

Successful build
Package: univention-pam
Version: 11.0.1-5A~4.3.0.201903201159
Branch: ucs_4.3-0
Scope: errata4.3-3
Comment 2 Felix Botner univentionstaff 2019-03-21 13:41:41 CET
OK - univention-base-files
OK - yaml
Comment 3 Felix Botner univentionstaff 2019-03-21 13:47:32 CET
(In reply to Felix Botner from comment #2)
> OK - univention-base-files
> OK - yaml

OK univention-pam
Comment 4 Arvid Requate univentionstaff 2019-03-26 13:52:43 CET
4.3/univention-pam      OPEN
 49045     VERIFIED/FIXED      (ready) stuck connections with ssh reboot using systemd (4.3)
[FAIL] bug.49045.scope+version: Bug 49045 scope: UCS 4.3-3-errata
[FAIL] version.scope: scope in version

I've fixed this:

a32bde0835 | fix target release
Comment 5 Arvid Requate univentionstaff 2019-03-27 14:28:42 CET
<http://errata.software-univention.de/ucs/4.3/464.html>