Ask Your Question
0

"Unable to fetch my node definition" and "Could not find terminus rest for indirection node" after upgrade from Puppet 3.8 to 4.7

asked 2016-09-28 11:57:30 -0500

billglick gravatar image

updated 2016-09-28 22:25:16 -0500

After upgrading our Puppet environment from 3.8 to 4.7 (puppetserver-2.6.0-1 and puppet-agent-1.7.0-1), I'm seeing reports from the agents like the following:

2016-09-28 09:37:06 -0500 Puppet (warning): Unable to fetch my node definition, but the agent run will continue:
2016-09-28 09:37:06 -0500 Puppet (warning): Could not find terminus rest for indirection node
2016-09-28 09:37:06 -0500 /File[/var/lib/puppet/lib] (err): Failed to generate additional resources using 'eval_generate': Could not find terminus file for indirection file_metadata
2016-09-28 09:37:06 -0500 /File[/var/lib/puppet/lib] (err): Could not evaluate: Could not retrieve file metadata for puppet://host.domain.com/plugins: Could not find terminus rest for indirection file_metadata
2016-09-28 09:37:06 -0500 Puppet (err): Failed to apply catalog: Could not find terminus rest for indirection catalog

Some background...

  • The puppetserver is running CentOS 7.2.
  • The Puppet agents are CentOS 6.8 and were upgraded using the puppetlabs/puppet_agent module via puppet.
  • The above warnings and errors are only produced when puppet-agent runs on it's schedule. Running it manually does not produce these warnings and errors.
  • We are also using puppetlabs/tagmail for email reporting.
  • I'm seeing these errors in both the tagmail and /var/log/messages on each agent node.

Can anyone help me debug this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-09-28 15:29:23 -0500

billglick gravatar image

updated 2016-09-28 16:43:56 -0500

I think I may have figured out the solution.

The broken servers are using puppet.conf as follows:

[main]
    logdir = /var/log/puppet

[agent]
    server = puppet.domain.com
    certname = hostname.domain.com
    environment = test

Changing that to the following seems to resolve the issue (after restarting the puppet agent):

[main]
    server = puppet.domain.com
    certname = hostname.domain.com

[agent]
    environment = test

Does that make sense?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2016-09-28 11:57:30 -0500

Seen: 98 times

Last updated: Sep 28 '16