Puppet The node parameter 'fqdn' for node <host> was already set to <host>

Problem:
Last week I upgraded our Foreman/Katello from version 2.4.x/4.0.x → 2.5.x/4.1.x → 3.0.1/4.2.1.

All, works well, except …

All hosts have:

  • “Last report” has “4 days ago”
  • “Configuration” status “Out of sync”
  • “Runtime” and “Resources” Graphs not updated

Also for a clean install of a new host, the “Last report” is empty, a “Configuration” status “Out of sync” and empty “Runtime” and “Resources” graphs.

However, when I execute “puppet agent -t” on a host, this goes well:

[root@< New Host > ~]# puppet agent -t
Info: Using configured environment ‘production’
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Caching catalog for < New Host FQDN >
Info: Applying configuration version ‘1639471216’
Notice: Applied catalog in 0.01 seconds
Here te active features:

When I restart the puppetserver-daemon I see following in the log:

For each host it logs:
“Puppet The node parameter ‘fqdn’ for node < host > was already set to < host > …” as well "Puppet The node parameter ‘hostname’ for node < host > was already set to < host > …
However, it also logs that it “Compiled catalog for < host > …”

2021-12-14T09:24:17.508+01:00 INFO [qtp100270800-15646] [puppetserver] Puppet Compiled catalog for < host-x > in environment production in 0.01 seconds
2021-12-14T09:24:24.291+01:00 INFO [qtp100270800-15727] [puppetserver] Puppet Compiled catalog for < host-y > in environment production in 0.02 seconds

Expected outcome:

All hosts:

  • not reporting “Out of sync”
  • “Last report” reporting a recent run
  • “Runtime” and “Resources” graphs updated

Foreman and Proxy versions:

  • Foreman 3.0.1
  • Katello 4.2.1
  • Puppetserver 6.17.1

Foreman and Proxy plugin versions:

Distribution and version:

CentOS 8.5

Other relevant data:

This is due to Bug #31168: Show host name in ENC output - Foreman and Bug #31882: The fix for #31168 overwrites $::hostname with the FQDN in Puppet - Foreman.

These are warnings. Perhaps we should open an issue for Puppetserver that it should not warn if they match. That way the ENC can be used to detect mismatches while not warning about correct settings.

Hello @langesmalle

did the Bugfixes mentioned by ekohl fix the issue of “Last Report” not getting updated?
Wondering since i am getting the same log entries and behaviour.

Best Regards