Noted on a just-reinstalled machine
Traceback (most recent call last):
File "/usr/local/bin/prometheus-puppet-agent-stats", line 106, in <module>
sys.exit(main())
File "/usr/local/bin/prometheus-puppet-agent-stats", line 97, in main
collect_puppet_stats(args.puppet_state_dir, registry)
File "/usr/local/bin/prometheus-puppet-agent-stats", line 74, in collect_puppet_stats
_summary_stats(puppet_state_dir, registry)
File "/usr/local/bin/prometheus-puppet-agent-stats", line 45, in _summary_stats
with open(summary_file) as f:
IOError: [Errno 2] No such file or directory: '/var/lib/puppet/state/last_run_summary.yaml'Sometimes for invalid status
Traceback (most recent call last):
File "/usr/local/bin/prometheus-puppet-agent-stats", line 106, in <module>
sys.exit(main())
File "/usr/local/bin/prometheus-puppet-agent-stats", line 97, in main
collect_puppet_stats(args.puppet_state_dir, registry)
File "/usr/local/bin/prometheus-puppet-agent-stats", line 74, in collect_puppet_stats
_summary_stats(puppet_state_dir, registry)
File "/usr/local/bin/prometheus-puppet-agent-stats", line 53, in _summary_stats
if 'time' in summary_yaml:
TypeError: argument of type 'NoneType' is not iterable