[Pkg-puppet-devel] Bug#894800: puppet-master: Saving catalog to PuppetDB fails with "Server Error: undefined method `key_attributes' for nil:NilClass"

Manfred Stock m-debian at nfred.ch
Sat Jan 19 17:53:25 GMT 2019


Package: puppet-master
Version: 5.5.10-1
Followup-For: Bug #894800

Hi,

intrigeri at debian.org:
> https://tickets.puppetlabs.com/browse/PUP-7654 which says that running
> an older PuppetDB/termini with a newer Puppet can fail. Perhaps this
> would be fixed by upgrading PuppetDB 5.x?

shouldn't this bug be reassigned to puppetdb (or maybe rather
puppet-terminus-puppetdb) then?

I've upgraded a Puppet master from Stretch to Buster today that was
working fine against PuppetDB 4.4.1-1 (that is running on an Ubuntu
17.10 machine, using the package from Ubuntu, so basically an older
snapshot of PuppetDB from Debian) using the puppet-terminus-puppetdb
from Sid, and also ran into this issue. I then quickly threw together a
package with the upstream terminus code from [1] from PuppetDB version
5.2.7, which resulted in a successful execution of Puppet (and according
to the logs on the PuppetDB machine, it did actually access PuppetDB,
but I haven't done any extensive testing). So it seems like updating
the terminus code (and thus also PuppetDB I guess, as they are part of
the same source package) should fix this issue. Since there seem to be
only 12 commits between PuppetDB 4.4.1 and 5.2.7 that affect the
terminus code, one might also get away with cherry picking some of them
and stick with PuppetDB 4.4.1 for now.

The way I currently understand it, the PuppetDB (terminus) from Sid is
not compatible with Puppet from Buster/Sid, so even if PuppetDB still
made it into Buster and was working (#878193 [2] suggests that this
might not be the case, but I haven't tried this), it would probably not
be very useful without updating the terminus code to a version that is
compatible with Puppet, which it currently does not seem to be. 


Kind regards
Manfred


[1] https://github.com/puppetlabs/puppetdb/
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878193

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-8-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages puppet-master depends on:
ii  lsb-base  10.2018112800
ii  puppet    5.5.10-1
ii  ruby      1:2.5.1

puppet-master recommends no packages.

puppet-master suggests no packages.

-- no debconf information



More information about the Pkg-puppet-devel mailing list