#1050343 puppetserver: confusing state of systemd units after upgrading from puppet-master

#1050343#5
Date:
2023-08-23 13:41:29 UTC
From:
To:
Package: puppetserver
Version: 7.9.5-2
Severity: important

Hi,

After a bullseye to bookworm upgrade, my system was left in a weird
state; since that's a rather old system, which went through a lot of
upgrades, I've checked that I could reproduce the following in a fresh
bullseye VM, installing puppet-master, then dist-upgrading to bookworm:
that's indeed the case.

Initially (on bullseye), we have a proper puppet-master systemd unit.
After the upgrade, there's still one, but that's using the LSB
generator, possibly because puppet-master is still installed, and its
(unchanged) /etc/init.d/puppet-master script is picked up by systemd and
its systemd-sysv-generator.

That unit of course fails as it tries to run `puppet master` and that
subcommand is gone.

Workaround:

    systemctl disable --now puppet-master
    systemctl reset-failed puppet-master


Meanwhile, a puppetserver.service unit has been deployed, with
`systemctl status` reporting it disabled even though the preset is
enabled.

Workaround:

    systemctl enable --now puppetservice

I was really surprised by the startup time, until I discovered the
server is now Java-based, hence 30 seconds to start. The increase in
memory footprint is also very noticeable. I might follow up here with
a configuration tweak in case it's useful to other users migrating
from the good old built-in server that nobody was supposed to run but
that worked so well for a number of use cases…


Cheers,

#1050343#10
Date:
2023-08-24 07:14:38 UTC
From:
To:
Hi Cyril! Thanks for the bug report.

I'm really not sure about the systemd state stuff, though if you have
suggestions on what to write in the preinst / postinst of puppet server,
let us know.

Not only Java, but Clojure too (which uses the JVM). It was kind of a
nightmare to package, if you didn't know: dozens of weirdo clojure, java
and Ruby dependencies to package (I suppose you saw the dependency chain
when installing?).

Please do share. Maybe we can set your configuration tweak as the
default on next upload...

Cheers,

Thomas Goirand (zigo)

#1050343#15
Date:
2023-08-24 11:26:44 UTC
From:
To:
Thomas Goirand <zigo@debian.org> (2023-08-24):

I fixed a number of Clojure packages to get puppetdb back into buster
right before the relevant stage of the freeze, so believe me: I had some
front row seat (and still remember bits of it, like leiningen).


Cheers,