Why can't I see any Puppet reports from the hosts in my Satellite 6?

Solution Verified - Updated

Environment

Issue

  • At "All hosts" most of the listed hosts either don't have any report under "Last report" column or have old (already deleted) reports, but no recent Puppet report is available.

  • When inspecting the details of a host, the "Reports" button under "Details" is missing.

Resolution

Verify that any custom hook is running successfully when hosts submit Puppet reports.

For more KB articles/solutions related to Red Hat Satellite 6.x Puppet Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Puppet Issues

Root Cause

A custom hook for Puppet reports was failing.

Diagnostic Steps

Check log file '/var/log/foreman/production.log' for Puppet reports:

2017-01-11 03:14:46 [app] [I] processing report for host1.example.com
2017-01-11 03:14:46 [app] [W] Action failed
 | ForemanHooks::Error: Hook failure running `/usr/share/foreman/config/hooks/config_report/after_create/10-configuration-complete after_create host1.example.com / 2017-01-11 03:14:13 UTC`:  mkdir: cannot create directory '/etc/foreman-hooks/ongoing-builds.d': Permission denied
 | /usr/share/foreman/config/hooks/config_report/after_create/10-configuration-complete: line 14: jgrep: command not found
SBR
Product(s)

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.