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_224804907.pp.OCIrVb
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 21.99 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 5.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_224839971.pp.YRnILl
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 5.00 seconds
|
spec/acceptance/server_spec.rb#L96
zabbix::server class deploys a zabbix 5.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_application_spec.rb#L56
zabbix_application type create zabbix_application resources with zabbix version 5.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_224857167.pp.LRFqJX
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 34.09 seconds
|
spec/acceptance/zabbix_application_spec.rb#L63
zabbix_application type create zabbix_application resources with zabbix version 5.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_224935515.pp.ThNzBU
Last 10 lines of output were:
�[mNotice: Compiled catalog for debian11-64-puppet7.example.com in environment production in 1.04 seconds
Info: Using environment 'production'
Info: Applying configuration version '1699310978'
�[mNotice: /Stage[main]/Zabbix::Database::Postgresql/Exec[zabbix_create.sql]/returns: /bin/sh: 1: Syntax error: ";" unexpected
Error: 'cd /usr/share/doc/zabbix-*-pgsql && if [ -f create.sql.gz ]; then zcat create.sql.gz | psql ; else ; psql -f create.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/doc/zabbix-*-pgsql && if [ -f create.sql.gz ]; then zcat create.sql.gz | psql ; else ; psql -f create.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 1.92 seconds
|
spec/acceptance/zabbix_application_spec.rb#L68
zabbix_application type create zabbix_application resources with zabbix version 5.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_224941628.pp.7wT1Ht
Last 10 lines of output were:
}
on request:
{
"method": "apiinfo.version",
"params": {
},
"id": 42162,
"jsonrpc": "2.0"
}
�[mNotice: Applied catalog in 0.09 seconds
|
spec/acceptance/zabbix_application_spec.rb#L72
zabbix_application type create zabbix_application resources with zabbix version 5.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_224944524.pp.1WeSFN
Last 10 lines of output were:
}
on request:
{
"method": "apiinfo.version",
"params": {
},
"id": 78888,
"jsonrpc": "2.0"
}
�[mNotice: Applied catalog in 0.04 seconds
|
spec/acceptance/zabbix_application_spec.rb#L84
zabbix_application type TestApplication1 is attached to Template OS Linux by Zabbix agent
Failure/Error: let(:template1) { result_templates.select { |t| t['host'] == template }.first }
NoMethodError:
private method `select' called for nil:NilClass
|
spec/acceptance/zabbix_host_spec.rb#L59
zabbix_host type create zabbix_host resources with zabbix version 5.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_224956688.pp.5Hhq3Z
Last 10 lines of output were:
Info: /Stage[main]/Zabbix::Server/Service[zabbix-server]: Unscheduling refresh on Service[zabbix-server]
�[mNotice: /Stage[main]/Zabbix::Web/Package[zabbixapi]/ensure: created
�[mNotice: /Stage[main]/Zabbix::Web/Package[zabbix-frontend-php]/ensure: created
�[mNotice: /Stage[main]/Zabbix::Web/File[/etc/zabbix/web]/owner: owner changed 'www-data' to 'zabbix'
�[mNotice: /Stage[main]/Zabbix::Web/File[/etc/zabbix/web]/group: group changed 'root' to 'zabbix'
�[mNotice: /Stage[main]/Zabbix::Web/File[/etc/zabbix/web/zabbix.conf.php]/ensure: defined content as '{sha256}4f99b916dd16bdc322416df4e2b6dac9aeab2828f30562816073edaf1e43d902'
�[mNotice: /Stage[main]/Apache::Service/Service[httpd]/ensure: ensure changed 'stopped' to 'running'
Info: /Stage[main]/Apache::Service/Service[httpd]: Unscheduling refresh on Service[httpd]
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 18.72 seconds
|
The logs for this run have expired and are no longer available.
Loading