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 'oracle8-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_224811724.pp.ItsjHS
Last 10 lines of output were:
Info: /Stage[main]/Zabbix::Server/File[/etc/zabbix/zabbix_server.conf]: Scheduling refresh of Service[zabbix-server]
�[mNotice: /Stage[main]/Zabbix::Server/File[/etc/zabbix/zabbix_server.conf.d]/ensure: created
�[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 43.07 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 'oracle8-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_224903012.pp.8OLD3K
Last 10 lines of output were:
�[mNotice: /Stage[main]/Zabbix::Server/File[/etc/zabbix/zabbix_server.conf]/content: content changed '{sha256}857840318b9b77acf500643feca9d7c55fd9e86b54bac80499d1c6d1a969c986' to '{sha256}d536060127c67a96a29cd9e5885b08f90ced76a23ee22a4a31c7720a882491d8'
�[mNotice: /Stage[main]/Zabbix::Server/File[/etc/zabbix/zabbix_server.conf]/owner: owner changed 'root' to 'zabbix'
�[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]
�[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.66 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 'oracle8-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_224940544.pp.npCUli
Last 10 lines of output were:
Info: /Stage[main]/Zabbix::Web/File[/etc/php-fpm.d/zabbix.conf]: Scheduling refresh of Service[php-fpm]
�[mNotice: /Stage[main]/Zabbix::Web/Service[php-fpm]/ensure: ensure changed 'stopped' to 'running'
Info: /Stage[main]/Zabbix::Web/Service[php-fpm]: Unscheduling refresh on Service[php-fpm]
�[mNotice: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat[25-localhost.conf]/File[/etc/httpd/conf.d/25-localhost.conf]/ensure: defined content as '{sha256}5624606b137b70fe6e34b2f22f12f7aab06e840773e9ddfca614fe86af5ff461'
Info: Concat[25-localhost.conf]: Scheduling refresh of Class[Apache::Service]
Info: Class[Apache::Service]: Scheduling refresh of Service[httpd]
�[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 54.19 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 'oracle8-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_225037728.pp.liAHaJ
Last 10 lines of output were:
�[mNotice: /Stage[main]/Zabbix::Database::Postgresql/Exec[zabbix_create.sql]/returns: /bin/sh: -c: line 0: syntax error near unexpected token `;'
�[mNotice: /Stage[main]/Zabbix::Database::Postgresql/Exec[zabbix_create.sql]/returns: /bin/sh: -c: line 0: `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'
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 1 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 1 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: 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 3.65 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 'oracle8-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_225044265.pp.FaB0yb
Last 10 lines of output were:
}
on request:
{
"method": "apiinfo.version",
"params": {
},
"id": 52600,
"jsonrpc": "2.0"
}
�[mNotice: Applied catalog in 0.05 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 'oracle8-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_225046002.pp.3NdcIM
Last 10 lines of output were:
}
on request:
{
"method": "apiinfo.version",
"params": {
},
"id": 29513,
"jsonrpc": "2.0"
}
�[mNotice: Applied catalog in 0.05 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 'oracle8-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_225055448.pp.eEGJDp
Last 10 lines of output were:
�[mNotice: /Stage[main]/Zabbix::Web/File[/etc/zabbix/web]/owner: owner changed 'root' to 'zabbix'
�[mNotice: /Stage[main]/Zabbix::Web/File[/etc/zabbix/web]/group: group changed 'root' to 'zabbix'
�[mNotice: /Stage[main]/Zabbix::Web/File[/etc/php-fpm.d/zabbix.conf]/content: content changed '{sha256}cc427a703b2ff307cd0c332770f678000f50ceea294e04bd21e240cbbe851516' to '{sha256}6a1a98179d7e4b4c03dabfe27caf73dc98bef993bac0e9e75968da8e483763cb'
Info: /Stage[main]/Zabbix::Web/File[/etc/php-fpm.d/zabbix.conf]: Scheduling refresh of Service[php-fpm]
�[mNotice: /Stage[main]/Zabbix::Web/Service[php-fpm]/ensure: ensure changed 'stopped' to 'running'
Info: /Stage[main]/Zabbix::Web/Service[php-fpm]: Unscheduling refresh on Service[php-fpm]
�[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 47.41 seconds
|
The logs for this run have expired and are no longer available.
Loading