[Bug 2089049] Re: systemd-socket-activation test can be flaky

Launchpad Bug Tracker 2089049 at bugs.launchpad.net
Thu Nov 21 23:16:15 UTC 2024


This bug was fixed in the package openssh - 1:9.9p1-3ubuntu2

---------------
openssh (1:9.9p1-3ubuntu2) plucky; urgency=medium

  * document /etc/ssh/sshd_config.d/*.conf better in sshd_config
    (LP: #2088207)
    - d/p/debian-config.patch: expand comment about configuration options
      and precedence of configuration snippets
    - d/openssh-server.ucf-md5sum: update for new sshd_config comments
    - d/p/sshd-socket-generator.patch: refresh for sshd_config comment
  * d/t/systemd-socket-activation: add wait while unit is reloading
    This avoids a race condition where we sometimes fail the assertion
    that ActiveState=active after systemctl reload.
    (LP: #2089049)

 -- Nick Rosbrook <enr0n at ubuntu.com>  Tue, 19 Nov 2024 12:06:14 -0500

** Changed in: openssh (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/2089049

Title:
  systemd-socket-activation test can be flaky

Status in openssh package in Ubuntu:
  Fix Released

Bug description:
  There is a race condition in this test when checking the the
  ssh.service ActiveState after calling systemctl reload. E.g. from [1]:

  1537s autopkgtest [11:13:00]: test systemd-socket-activation: [-----------------------
  1538s Stopping ssh.service...
  1538s Checking that ssh.socket is active and listening...
  1538s Checking that ssh.service is inactive/dead...
  1538s Checking that a connection attempt activates ssh.service...
  1539s Warning: Permanently added 'localhost' (ED25519) to the list of known hosts.
  1539s Checking that sshd can be re-executed...
  1539s Fail: ssh.service: expected ActiveState=active, but got ActiveState=reloading
  1539s autopkgtest [11:13:02]: test systemd-socket-activation: -----------------------]
  1540s systemd-socket-activation FAIL non-zero exit status 1

  This is because we immediately check the active state after reload,
  and do not account for the "reloading" state.

  [1] https://autopkgtest.ubuntu.com/results/autopkgtest-
  plucky/plucky/s390x/o/openssh/20241117_111312_632ee@/log.gz

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2089049/+subscriptions




More information about the foundations-bugs mailing list