migrate from puppetmaster 3.4.3 -> 4.8.2

52 views
Skip to first unread message

Anton Gorlov

unread,
Jun 4, 2017, 4:44:15 PM6/4/17
to puppet...@googlegroups.com
Hi all.
In old puppet master node with puppetmaster 3.4.3 i use mysql to
storу data.
In [master] section of puppet.conf configured data to access the database:

storeconfigs = true
dbadapter = mysql
dbname = puppetdb
dbuser = puppetdbu
dbpassword = *****
dbserver = localhost

it works fine.

On fresh install with puppetmaster 4.8.2 I get error on client node:

=======
Warning: Unable to fetch my node definition, but the agent run will
continue:
Warning: Error 500 on SERVER: Server Error: Could not retrieve facts for
debian9-lab3: Could not find terminus active_record for indirection facts
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on
SERVER: Server Error: Could not find terminus active_record for
indirection facts
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
=====


Is it possible to use storeconfig in database without using puppetdb?



Christopher Wood

unread,
Jun 4, 2017, 7:31:12 PM6/4/17
to puppet...@googlegroups.com
While I am not the authority on the matter, it looks like the answer is no, and the activerecord terminus is not part of puppet 4.

https://tickets.puppetlabs.com/browse/PUP-4627
https://docs.puppet.com/puppet/4.8/lang_exported.html
https://docs.puppet.com/puppet/4.8/configuration.html#storeconfigs

Try grepping for activerecord in the puppet 3.x software:

https://apt.puppetlabs.com/pool/wheezy/main/p/puppet/puppet-common_3.8.7-1puppetlabs1_all.deb
https://apt.puppetlabs.com/pool/wheezy/main/p/puppet/puppet-el_3.8.7-1puppetlabs1_all.deb

wget file
ar x file
tar xf data.tar.gz
(repeat)
grep -r ActiveRecord usr

By contrast, there is no similar set of ActiveRecord calls in the puppet-agent deb. (Obviously I don't have a great understanding of ruby coding!)

https://apt.puppetlabs.com/pool/jessie/PC1/p/puppet-agent/puppet-agent_1.10.1-1jessie_amd64.deb

Puppetdb is fairly easy to configure with the forge module, at least.

https://forge.puppet.com/puppetlabs/puppetdb

As a postscript, you may consider upgrading to puppet 4.10.1 or ensuring you have some backported fixes out of this set:

https://docs.puppet.com/security/index.html
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a3d48e4b-c946-00bd-b6cb-68397d296b00%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages