Silent fail: Server Error 500 don't generate any email report

asked 2018-04-12 05:25:48 -0600

elof gravatar image

If I accidentally make a major error in the manifests, like a duplicate declaration, a puppet run on the node will fail with:

Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Package[foobar] is already declared

My problem is that this report is not emailed as usual, so even though the puppet agent do a puppet run every 3 hours, I'm never notified about the repeating failures. (also, the reports submitted to puppetDB only show up as empty in PuppetExplorer (no successes, no fails, no pending))

When things go wrong like this I want to be notified via the usual email report. (and in PuppetExplorer the node should have a red warning triangle as per usual)

Silent fail is bad. How can I rectify this?

Current workaround is to monitor the syslog and generate an email-alert.

/Elof

edit retag flag offensive close merge delete