Open taikaa opened 1 month ago
@bastelfreak --^
ah nice, I will try to take a look this week.
@taikaa thanks for using the plan. Great to see that other can benefit from it. I raised https://github.com/puppetlabs/puppetlabs-pe_status_check/pull/238 , can you maybe test it?
Describe the Bug
If a node returned in the PuppetDB query has a null report_timestamp, the plan fails at line 23
Expected Behavior
A node with a null report_timestamp shouldn't fail the plan. Since the plan operationalizes unhealthy nodes as "latest reports that are older than runinterval", the node's with a null report_timestamp can be added to the unhealthy list.
Steps to Reproduce
Provision a node and request a cert. Submit a node entry to PuppetDB without submitting a report
Query PuppetDB to confirm that report_timestamp is null
Then, run the plan pe_status_check::agent_state_summary
Environment
Additional Context
Another edge case that would result in a null report_timestamp is if a resource that contains a null byte preventing PuppetDB from ever storing a report from a node