Problem:
All of my hosts are managed by puppet but for the most of them, the reports they send are not identified as puppet reports. But few of them are working properly.
When reporting a failed state, the origin is correctly flagged as Puppet .
I have this behaviour on my 3 Foreman servers (test, qualifying and production)
I migrate from CentOS7 to OracleLinux 8 earlier this year, I don’t know if it’s linked or not.
As a workaround you can change the following file (but I dont know whats the impact):
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/reports/foreman.rb
- next if log.message =~ /^(Finished catalog run|Applied catalog) in \d+.\d+ seconds$/
+ next if log.message =~ /^Finished catalog run in \d+.\d+ seconds$/
The upgrade docs for Foreman 3.5 do mention this issue under “Upgrade Warnings”, there are also links to the related issues in that segment. So yes, this is known and worked on.
The “fix” proposed by @chr1s is just reverting the change that caused this behavior, which was originally inteded to reduce database storage space by filtering out unnecessary lines from the report.