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 'rocky8-64-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_154930831.jdykFQ.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/sysconfig/openldap_exporter]/ensure: defined content as '{sha256}6a44269924350969f77f2d0b778cd6220d053f06ea6d269c16ebe88141f7591c'
Info: /Stage[main]/Prometheus::Openldap_exporter/Prometheus::Daemon[openldap_exporter]/File[/etc/sysconfig/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.46 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 'rocky8-64-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_154933852.i9R29c.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}85c34f0490678d19a54c92cbd6c56efeb8ffbae8f35afc146e4d18e409b90e83' to '{sha256}bbc6f274ec55092a8c840cfa1046fe0777aed89e5ccf3f758c24a2dab8fdf37c'
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#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 'rocky8-64-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_154936766.wbohAm.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}bbc6f274ec55092a8c840cfa1046fe0777aed89e5ccf3f758c24a2dab8fdf37c' to '{sha256}85c34f0490678d19a54c92cbd6c56efeb8ffbae8f35afc146e4d18e409b90e83'
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.31 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 'rocky8-64-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_154939420.7uK3gk.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.43 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 'rocky8-64-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_154947956.BFW6JZ.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}4ace924ad5525eabf889882d7451ae827e67adcc17ac76d6e6bde882e7d8bffa'
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.41 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 'rocky8-64-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_155012693.xiump1.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}6c3345dab5d77690a04d19bb87615e304aa679355bf91ff9c42e458ca46588b5'
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.47 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 'rocky8-64-puppet8.example.com' exited with 7 running:
curl -s http://127.0.0.1:9154/metrics
Last 10 lines of output were:
|
Loading