Clean up PostgreSQL DB creation logic #628
Annotations
10 errors
spec/acceptance/server_spec.rb#L7
zabbix::server class default parameters 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_224841763.pp.GYjdeh
Last 10 lines of output were:
�[mNotice: /Stage[main]/Zabbix::Server/File[/etc/zabbix/zabbix_server.conf.d]/ensure: created
�[mNotice: /Stage[main]/Zabbix::Server/Zabbix::Startup[zabbix-server]/File[/etc/init.d/zabbix-server]/ensure: removed
�[mNotice: /Stage[main]/Zabbix::Server/Zabbix::Startup[zabbix-server]/Systemd::Unit_file[zabbix-server.service]/File[/etc/systemd/system/zabbix-server.service]/ensure: defined content as '{sha256}eaa1ec638d8115262cd7575c399869bcb28fbe54734552003ce61c15d896bc1c'
Info: /Stage[main]/Zabbix::Server/Zabbix::Startup[zabbix-server]/Systemd::Unit_file[zabbix-server.service]/File[/etc/systemd/system/zabbix-server.service]: Scheduling refresh of Systemd::Daemon_reload[zabbix-server.service]
Info: Systemd::Daemon_reload[zabbix-server.service]: Scheduling refresh of Exec[systemd-zabbix-server.service-systemctl-daemon-reload]
�[mNotice: /Stage[main]/Zabbix::Server/Zabbix::Startup[zabbix-server]/Systemd::Unit_file[zabbix-server.service]/Systemd::Daemon_reload[zabbix-server.service]/Exec[systemd-zabbix-server.service-systemctl-daemon-reload]: Triggered 'refresh' from 1 event
�[mNotice: /Stage[main]/Zabbix::Server/Service[zabbix-server]/ensure: ensure changed 'stopped' to 'running'
Info: /Stage[main]/Zabbix::Server/Service[zabbix-server]: Unscheduling refresh on Service[zabbix-server]
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 29.14 seconds
|
spec/acceptance/server_spec.rb#L44
zabbix::server class default parameters Service "zabbix-server" is expected to be running
Failure/Error: it { is_expected.to be_running }
expected Service "zabbix-server" to be running
|
spec/acceptance/server_spec.rb#L57
zabbix::server class deploys a zabbix 6.0 server 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_224929547.pp.LqfmG6
Last 10 lines of output were:
�[mNotice: /Stage[main]/Zabbix::Server/File[/etc/zabbix/zabbix_server.conf]/mode: mode changed '0600' to '0640'
Info: /Stage[main]/Zabbix::Server/File[/etc/zabbix/zabbix_server.conf]: Scheduling refresh of Service[zabbix-server]
Info: /Stage[main]/Zabbix::Server/File[/etc/zabbix/zabbix_server.conf]: Scheduling refresh of Service[zabbix-server]
Info: /Stage[main]/Zabbix::Server/File[/etc/zabbix/zabbix_server.conf]: Scheduling refresh of Service[zabbix-server]
Info: /Stage[main]/Zabbix::Server/File[/etc/zabbix/zabbix_server.conf]: Scheduling refresh of Service[zabbix-server]
�[mNotice: /Stage[main]/Zabbix::Server/Zabbix::Startup[zabbix-server]/File[/etc/init.d/zabbix-server]/ensure: removed
�[mNotice: /Stage[main]/Zabbix::Server/Service[zabbix-server]/ensure: ensure changed 'stopped' to 'running'
Info: /Stage[main]/Zabbix::Server/Service[zabbix-server]: Unscheduling refresh on Service[zabbix-server]
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 7.88 seconds
|
spec/acceptance/server_spec.rb#L96
zabbix::server class deploys a zabbix 6.0 server Service "zabbix-server" is expected to be running
Failure/Error: it { is_expected.to be_running }
expected Service "zabbix-server" to be running
|
spec/acceptance/zabbix_host_spec.rb#L59
zabbix_host type create zabbix_host resources with zabbix version 6.0 works with no error on the first apply
Failure/Error: apply_manifest(pp1, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'debian11-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_224956223.pp.LjogOk
Last 10 lines of output were:
�[mNotice: /Stage[main]/Zabbix::Web/File[/etc/zabbix/web/zabbix.conf.php]/ensure: defined content as '{sha256}4f99b916dd16bdc322416df4e2b6dac9aeab2828f30562816073edaf1e43d902'
�[mNotice: /Stage[main]/Zabbix::Web/File[/etc/zabbix/zabbix.conf.php]/ensure: created
�[mNotice: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat[25-localhost.conf]/File[/etc/apache2/sites-available/25-localhost.conf]/ensure: defined content as '{sha256}a0e7595477dc79cb52876368e234fb40bd17e55dee6ac1e54656313f1ba30d0c'
Info: Concat[25-localhost.conf]: Scheduling refresh of Class[Apache::Service]
�[mNotice: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/File[25-localhost.conf symlink]/ensure: created
Info: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/File[25-localhost.conf symlink]: Scheduling refresh of Class[Apache::Service]
Info: Class[Apache::Service]: Scheduling refresh of Service[httpd]
�[mNotice: /Stage[main]/Apache::Service/Service[httpd]: Triggered 'refresh' from 1 event
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 54.34 seconds
|
spec/acceptance/zabbix_host_spec.rb#L66
zabbix_host type create zabbix_host resources with zabbix version 6.0 works with no error on the second apply
Failure/Error: apply_manifest(pp1, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'debian11-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_225056751.pp.Egpps2
Last 10 lines of output were:
�[mNotice: Compiled catalog for debian11-64-puppet7.example.com in environment production in 1.45 seconds
Info: Using environment 'production'
Info: Applying configuration version '1699311060'
�[mNotice: /Stage[main]/Zabbix::Database::Postgresql/Exec[zabbix_create.sql]/returns: /bin/sh: 1: Syntax error: ";" unexpected
Error: 'cd /usr/share/zabbix-sql-scripts/postgresql/ && if [ -f server.sql.gz ]; then zcat server.sql.gz | psql ; else ; psql -f server.sql; fi && touch /etc/zabbix/.schema.done' returned 2 instead of one of [0]
Error: /Stage[main]/Zabbix::Database::Postgresql/Exec[zabbix_create.sql]/returns: change from 'notrun' to ['0'] failed: 'cd /usr/share/zabbix-sql-scripts/postgresql/ && if [ -f server.sql.gz ]; then zcat server.sql.gz | psql ; else ; psql -f server.sql; fi && touch /etc/zabbix/.schema.done' returned 2 instead of one of [0]
�[mNotice: /Stage[main]/Zabbix::Server/Service[zabbix-server]/ensure: ensure changed 'stopped' to 'running'
Info: /Stage[main]/Zabbix::Server/Service[zabbix-server]: Unscheduling refresh on Service[zabbix-server]
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 2.87 seconds
|
spec/acceptance/zabbix_host_spec.rb#L92
zabbix_host type create zabbix_host resources with zabbix version 6.0 works with no error on the third apply
Failure/Error: apply_manifest(pp2, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'debian11-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_225105513.pp.mjsGVA
Last 10 lines of output were:
{
"method": "apiinfo.version",
"params": {
},
"id": 60301,
"jsonrpc": "2.0"
}
Warning: /Stage[main]/Main/Zabbix_host[test1.example.com]: Skipping because provider prefetch failed
Warning: /Stage[main]/Main/Zabbix_host[test2.example.com]: Skipping because provider prefetch failed
�[mNotice: Applied catalog in 0.13 seconds
|
spec/acceptance/zabbix_host_spec.rb#L96
zabbix_host type create zabbix_host resources with zabbix version 6.0 works without changes on the fourth apply
Failure/Error: apply_manifest(pp2, catch_changes: true)
Beaker::Host::CommandFailure:
Host 'debian11-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_225109676.pp.dB0v80
Last 10 lines of output were:
{
"method": "apiinfo.version",
"params": {
},
"id": 2881,
"jsonrpc": "2.0"
}
Warning: /Stage[main]/Main/Zabbix_host[test1.example.com]: Skipping because provider prefetch failed
Warning: /Stage[main]/Main/Zabbix_host[test2.example.com]: Skipping because provider prefetch failed
�[mNotice: Applied catalog in 0.06 seconds
|
spec/acceptance/zabbix_host_spec.rb#L121
zabbix_host type create zabbix_host resources with zabbix version 6.0 creates hosts with SNMP interface and details without errors
Failure/Error: apply_manifest(pp3, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'debian11-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_225113784.pp.sJ5eY9
Last 10 lines of output were:
{
"method": "apiinfo.version",
"params": {
},
"id": 80212,
"jsonrpc": "2.0"
}
Warning: /Stage[main]/Main/Zabbix_host[test3.example.com]: Skipping because provider prefetch failed
Warning: /Stage[main]/Main/Zabbix_host[test4.example.com]: Skipping because provider prefetch failed
�[mNotice: Applied catalog in 0.06 seconds
|
spec/acceptance/zabbix_host_spec.rb#L125
zabbix_host type create zabbix_host resources with zabbix version 6.0 creates hosts with SNMP interface and details without changes
Failure/Error: apply_manifest(pp3, catch_changes: true)
Beaker::Host::CommandFailure:
Host 'debian11-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_225118012.pp.anvVBW
Last 10 lines of output were:
{
"method": "apiinfo.version",
"params": {
},
"id": 20765,
"jsonrpc": "2.0"
}
Warning: /Stage[main]/Main/Zabbix_host[test3.example.com]: Skipping because provider prefetch failed
Warning: /Stage[main]/Main/Zabbix_host[test4.example.com]: Skipping because provider prefetch failed
�[mNotice: Applied catalog in 0.06 seconds
|
The logs for this run have expired and are no longer available.
Loading