add ensure parameter to prometheus::daemon #810
Annotations
10 errors
Run tests:
spec/acceptance/openldap_exporter_spec.rb#L23
prometheus openldap exporter openldap_exporter works with ldap_binddn + ldap_password config is idempotent
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'debian11-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_154954980.YnJ75w.pp
Last 10 lines of output were:
Error: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/Archive[/opt/openldap_exporter-2.0.linux-amd64/openldap_exporter]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: File exists @ dir_s_mkdir - /opt/openldap_exporter-2.0.linux-amd64 (file: /etc/puppetlabs/code/environments/production/modules/prometheus/manifests/daemon.pp, line: 105)
�[mNotice: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/File[/opt/openldap_exporter-2.0.linux-amd64/openldap_exporter]: Dependency Archive[/opt/openldap_exporter-2.0.linux-amd64/openldap_exporter] has failures: true
Warning: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/File[/opt/openldap_exporter-2.0.linux-amd64/openldap_exporter]: Skipping because of failed dependencies
Warning: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/File[/usr/local/bin/openldap_exporter]: Skipping because of failed dependencies
�[mNotice: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/File[/etc/default/openldap_exporter]/ensure: defined content as '{sha256}6a44269924350969f77f2d0b778cd6220d053f06ea6d269c16ebe88141f7591c'
Info: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/File[/etc/default/openldap_exporter]: Scheduling refresh of Service[openldap_exporter]
Warning: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/Service[openldap_exporter]: Skipping because of failed dependencies
Info: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/Service[openldap_exporter]: Unscheduling all events on Service[openldap_exporter]
Info: Prometheus::Daemon[openldap_exporter]: Unscheduling all events on Prometheus::Daemon[openldap_exporter]
�[mNotice: Applied catalog in 0.47 seconds
|
Run tests:
spec/acceptance/openldap_exporter_spec.rb#L40
prometheus openldap exporter openldap_exporter works with extra options defined is idempotent
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'debian11-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_154958993.IM3mcM.pp
Last 10 lines of output were:
Warning: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/File[/usr/local/bin/openldap_exporter]: Skipping because of failed dependencies
�[mNotice: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/Systemd::Manage_unit[openldap_exporter.service]/Systemd::Unit_file[openldap_exporter.service]/File[/etc/systemd/system/openldap_exporter.service]/content: content changed '{sha256}4317a88f9b8a63c9a8f826056579d81c9cb2385430dc25b6e59a7e81ae67a460' to '{sha256}1348d6eedfad0496b37e64549dd31186f42ab40c7eeb4e343a5f1041d78801b8'
Info: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/Systemd::Manage_unit[openldap_exporter.service]/Systemd::Unit_file[openldap_exporter.service]/File[/etc/systemd/system/openldap_exporter.service]: Scheduling refresh of Systemd::Daemon_reload[openldap_exporter.service]
Info: Systemd::Daemon_reload[openldap_exporter.service]: Scheduling refresh of Exec[systemd-openldap_exporter.service-systemctl-daemon-reload]
�[mNotice: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/Systemd::Manage_unit[openldap_exporter.service]/Systemd::Unit_file[openldap_exporter.service]/Systemd::Daemon_reload[openldap_exporter.service]/Exec[systemd-openldap_exporter.service-systemctl-daemon-reload]: Triggered 'refresh' from 1 event
Info: Systemd::Manage_unit[openldap_exporter.service]: Scheduling refresh of Service[openldap_exporter]
Warning: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/Service[openldap_exporter]: Skipping because of failed dependencies
Info: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/Service[openldap_exporter]: Unscheduling all events on Service[openldap_exporter]
Info: Prometheus::Daemon[openldap_exporter]: Unscheduling all events on Prometheus::Daemon[openldap_exporter]
�[mNotice: Applied catalog in 0.41 seconds
|
Run tests:
spec/acceptance/openldap_exporter_spec.rb#L57
prometheus openldap exporter openldap_exporter update from 2.0 to 2.1 is idempotent
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'debian11-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_155002953.52PLYm.pp
Last 10 lines of output were:
Warning: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/File[/usr/local/bin/openldap_exporter]: Skipping because of failed dependencies
�[mNotice: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/Systemd::Manage_unit[openldap_exporter.service]/Systemd::Unit_file[openldap_exporter.service]/File[/etc/systemd/system/openldap_exporter.service]/content: content changed '{sha256}1348d6eedfad0496b37e64549dd31186f42ab40c7eeb4e343a5f1041d78801b8' to '{sha256}4317a88f9b8a63c9a8f826056579d81c9cb2385430dc25b6e59a7e81ae67a460'
Info: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/Systemd::Manage_unit[openldap_exporter.service]/Systemd::Unit_file[openldap_exporter.service]/File[/etc/systemd/system/openldap_exporter.service]: Scheduling refresh of Systemd::Daemon_reload[openldap_exporter.service]
Info: Systemd::Daemon_reload[openldap_exporter.service]: Scheduling refresh of Exec[systemd-openldap_exporter.service-systemctl-daemon-reload]
�[mNotice: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/Systemd::Manage_unit[openldap_exporter.service]/Systemd::Unit_file[openldap_exporter.service]/Systemd::Daemon_reload[openldap_exporter.service]/Exec[systemd-openldap_exporter.service-systemctl-daemon-reload]: Triggered 'refresh' from 1 event
Info: Systemd::Manage_unit[openldap_exporter.service]: Scheduling refresh of Service[openldap_exporter]
Warning: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/Service[openldap_exporter]: Skipping because of failed dependencies
Info: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/Service[openldap_exporter]: Unscheduling all events on Service[openldap_exporter]
Info: Prometheus::Daemon[openldap_exporter]: Unscheduling all events on Prometheus::Daemon[openldap_exporter]
�[mNotice: Applied catalog in 0.38 seconds
|
Run tests:
spec/acceptance/openldap_exporter_spec.rb#L72
prometheus openldap exporter openldap_exporter update from 2.0 to 2.1 is idempotent
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'debian11-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_155006695.4zGPFC.pp
Last 10 lines of output were:
Error: Could not set 'present' on ensure: File exists @ dir_s_mkdir - /opt/openldap_exporter-2.1.linux-amd64 (file: /etc/puppetlabs/code/environments/production/modules/prometheus/manifests/daemon.pp, line: 105)
Wrapped exception:
File exists @ dir_s_mkdir - /opt/openldap_exporter-2.1.linux-amd64
Error: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/Archive[/opt/openldap_exporter-2.1.linux-amd64/openldap_exporter]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: File exists @ dir_s_mkdir - /opt/openldap_exporter-2.1.linux-amd64 (file: /etc/puppetlabs/code/environments/production/modules/prometheus/manifests/daemon.pp, line: 105)
�[mNotice: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/File[/opt/openldap_exporter-2.1.linux-amd64/openldap_exporter]: Dependency Archive[/opt/openldap_exporter-2.1.linux-amd64/openldap_exporter] has failures: true
Warning: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/File[/opt/openldap_exporter-2.1.linux-amd64/openldap_exporter]: Skipping because of failed dependencies
Warning: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/File[/usr/local/bin/openldap_exporter]: Skipping because of failed dependencies
Warning: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/Service[openldap_exporter]: Skipping because of failed dependencies
Info: Prometheus::Daemon[openldap_exporter]: Unscheduling all events on Prometheus::Daemon[openldap_exporter]
�[mNotice: Applied catalog in 0.37 seconds
|
Run tests:
spec/acceptance/openvpn_exporter_spec.rb#L6
prometheus openvpn_exporter openvpn_exporter works idempotently with no errors
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'debian11-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_155018237.6mG2fQ.pp
Last 10 lines of output were:
Info: /Stage[main]/Prometheus::Openvpn_exporter/Prometheus::Daemon[openvpn_exporter]/User[openvpn-exporter]: Scheduling refresh of Service[openvpn_exporter]
�[mNotice: /Stage[main]/Prometheus::Openvpn_exporter/Prometheus::Daemon[openvpn_exporter]/Systemd::Manage_unit[openvpn_exporter.service]/Systemd::Unit_file[openvpn_exporter.service]/File[/etc/systemd/system/openvpn_exporter.service]/ensure: defined content as '{sha256}3f4a3c17cc4b956ddc02feaad5a643f0682d7b7b51b758e1d41ad23f10f425ea'
Info: /Stage[main]/Prometheus::Openvpn_exporter/Prometheus::Daemon[openvpn_exporter]/Systemd::Manage_unit[openvpn_exporter.service]/Systemd::Unit_file[openvpn_exporter.service]/File[/etc/systemd/system/openvpn_exporter.service]: Scheduling refresh of Systemd::Daemon_reload[openvpn_exporter.service]
Info: Systemd::Daemon_reload[openvpn_exporter.service]: Scheduling refresh of Exec[systemd-openvpn_exporter.service-systemctl-daemon-reload]
�[mNotice: /Stage[main]/Prometheus::Openvpn_exporter/Prometheus::Daemon[openvpn_exporter]/Systemd::Manage_unit[openvpn_exporter.service]/Systemd::Unit_file[openvpn_exporter.service]/Systemd::Daemon_reload[openvpn_exporter.service]/Exec[systemd-openvpn_exporter.service-systemctl-daemon-reload]: Triggered 'refresh' from 1 event
Info: Systemd::Manage_unit[openvpn_exporter.service]: Scheduling refresh of Service[openvpn_exporter]
Warning: /Stage[main]/Prometheus::Openvpn_exporter/Prometheus::Daemon[openvpn_exporter]/Service[openvpn_exporter]: Skipping because of failed dependencies
Info: /Stage[main]/Prometheus::Openvpn_exporter/Prometheus::Daemon[openvpn_exporter]/Service[openvpn_exporter]: Unscheduling all events on Service[openvpn_exporter]
Info: Prometheus::Daemon[openvpn_exporter]: Unscheduling all events on Prometheus::Daemon[openvpn_exporter]
�[mNotice: Applied catalog in 0.44 seconds
|
Run tests:
spec/acceptance/openvpn_exporter_spec.rb#L14
prometheus openvpn_exporter Service "openvpn_exporter" is expected to be running
Failure/Error: it { is_expected.to be_running }
expected Service "openvpn_exporter" to be running
|
Run tests:
spec/acceptance/openvpn_exporter_spec.rb#L15
prometheus openvpn_exporter Service "openvpn_exporter" is expected to be enabled
Failure/Error: it { is_expected.to be_enabled }
expected Service "openvpn_exporter" to be enabled
|
Run tests:
spec/acceptance/openvpn_exporter_spec.rb#L19
prometheus openvpn_exporter Port "9176" is expected to be listening with tcp6
Failure/Error: it { is_expected.to be_listening.with('tcp6') }
expected Port "9176" to be listening with tcp6
|
Run tests:
spec/acceptance/postfix_exporter_spec.rb#L19
prometheus postfix exporter default version postfix_exporter works idempotently with no errors
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'debian11-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_155057764.OueCR2.pp
Last 10 lines of output were:
Info: /Stage[main]/Prometheus::Postfix_exporter/Prometheus::Daemon[postfix_exporter]/User[postfix-exporter]: Scheduling refresh of Service[postfix_exporter]
�[mNotice: /Stage[main]/Prometheus::Postfix_exporter/Prometheus::Daemon[postfix_exporter]/Systemd::Manage_unit[postfix_exporter.service]/Systemd::Unit_file[postfix_exporter.service]/File[/etc/systemd/system/postfix_exporter.service]/ensure: defined content as '{sha256}3d9cf6bd6c5dcddfc17eff551669157023c08d6f47be4653d0b0bc143cba7440'
Info: /Stage[main]/Prometheus::Postfix_exporter/Prometheus::Daemon[postfix_exporter]/Systemd::Manage_unit[postfix_exporter.service]/Systemd::Unit_file[postfix_exporter.service]/File[/etc/systemd/system/postfix_exporter.service]: Scheduling refresh of Systemd::Daemon_reload[postfix_exporter.service]
Info: Systemd::Daemon_reload[postfix_exporter.service]: Scheduling refresh of Exec[systemd-postfix_exporter.service-systemctl-daemon-reload]
�[mNotice: /Stage[main]/Prometheus::Postfix_exporter/Prometheus::Daemon[postfix_exporter]/Systemd::Manage_unit[postfix_exporter.service]/Systemd::Unit_file[postfix_exporter.service]/Systemd::Daemon_reload[postfix_exporter.service]/Exec[systemd-postfix_exporter.service-systemctl-daemon-reload]: Triggered 'refresh' from 1 event
Info: Systemd::Manage_unit[postfix_exporter.service]: Scheduling refresh of Service[postfix_exporter]
Warning: /Stage[main]/Prometheus::Postfix_exporter/Prometheus::Daemon[postfix_exporter]/Service[postfix_exporter]: Skipping because of failed dependencies
Info: /Stage[main]/Prometheus::Postfix_exporter/Prometheus::Daemon[postfix_exporter]/Service[postfix_exporter]: Unscheduling all events on Service[postfix_exporter]
Info: Prometheus::Daemon[postfix_exporter]: Unscheduling all events on Prometheus::Daemon[postfix_exporter]
�[mNotice: Applied catalog in 0.53 seconds
|
Run tests:
spec/acceptance/postfix_exporter_spec.rb#L34
prometheus postfix exporter default version provides postfix metrics
Failure/Error:
shell('curl -s http://127.0.0.1:9154/metrics') do |r|
expect(r.stdout).to match(%r{postfix_smtpd_connects_total})
end
Beaker::Host::CommandFailure:
Host 'debian11-64-puppet7.example.com' exited with 7 running:
curl -s http://127.0.0.1:9154/metrics
Last 10 lines of output were:
|
Loading