autopkgtests failing with systemd-232

Bug #1664453 reported by Ryan Tandy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dogtag-pki (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The autopkgtests for dogtag-pki are failing. It looks like this started with the upgrade of systemd to 232.

Previously, pki-tomcatd was marked as failed on startup:

Job for pki-tomcatd.service failed because the control process exited with error code.
See "systemctl status pki-tomcatd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript pki-tomcatd, action "start" failed.
● pki-tomcatd.service - LSB: Start pki-tomcatd at boot time
   Loaded: loaded (/etc/init.d/pki-tomcatd; generated; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2016-11-07 20:51:19 UTC; 14ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 8100 ExecStart=/etc/init.d/pki-tomcatd start (code=exited, status=5)

Now, the service is marked as started and exited:

● pki-tomcatd.service - LSB: Start pki-tomcatd at boot time
   Loaded: loaded (/etc/init.d/pki-tomcatd; generated; vendor preset: enabled)
   Active: active (exited) since Tue 2017-02-14 06:02:25 UTC; 31s ago
     Docs: man:systemd-sysv-generator(8)

Since systemd-sysv-generator uses RemainAfterExit=true, subsequent "systemctl start pki-tomcatd" invocations do nothing.

I believe the relevant systemd change is:

https://github.com/systemd/systemd/commit/41e2036eb83204df95a1c3e829bcfd78ee17aaa3

which fixed it to detect the special LSB exit codes as intended.

I see that .../scriptlets/configuration.py issues start() when configuring the first tomcat instance and restart() for subsequent instances (line 364). Maybe one workaround would be to use restart() unconditionally for now? That looks like it does roughly the right thing.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

it has no chance of working before tomcat 8.5 is purged from proposed(*), so I'd hold on making any changes before that happens

* https://bugs.launchpad.net/bugs/1662654

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dogtag-pki - 10.3.5+12-3ubuntu1

---------------
dogtag-pki (10.3.5+12-3ubuntu1) zesty; urgency=medium

  * pki-tomcatd.init: If no instance is configured, the initscript
    machinery would return error value 5 or 6. This messes up systemd, so
    just use 'exit 1' on every non-zero return value. (LP: #1664453)

 -- Timo Aaltonen <email address hidden> Thu, 16 Feb 2017 16:43:49 +0200

Changed in dogtag-pki (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.