Catalog compilation fails on Puppet 6 Master
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
puppet-pacemaker |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
when using my Puppet Master to compile the catalog for a cluster node, the compilation fails with the error:
Evaluation Error: Error while evaluating a Function Call, uninitialized constant Facter::Util (file: /etc/puppetlabs
The actual problem is not in the corosync.pp file, but in lib/puppet/
# puppetserver irb
irb(main):001:0> require 'facter'
=> true
irb(main):002:0> Facter:
Traceback (most recent call last):
9: from -e:1:in `<main>'
8: from org/jruby/
7: from /opt/puppetlabs
6: from org/jruby/
5: from org/jruby/
4: from org/jruby/
3: from org/jruby/
2: from (irb):2:in `evaluate'
1: from org/jruby/
NameError (uninitialized constant Facter::Util)
irb(main):003:0>
Unfortunately I'm not quite sure how to fix this, because from my understanding functions should only use code and data from puppet and Hiera and should not query things themselves.
Regards,
Manfred
I fixed this by adding a pacemaker_node_list fact and make pcmk_nodes_added use it. Looks good so far, but I want to do some more testing, before filing a merge request.