Skip to content

Use the mongosh command instead of the old mongo command #375

Use the mongosh command instead of the old mongo command

Use the mongosh command instead of the old mongo command #375

Triggered via pull request March 21, 2024 13:48
Status Failure
Total duration 14m 5s
Artifacts

ci.yml

on: pull_request
Puppet  /  Static validations
21s
Puppet / Static validations
Matrix: Puppet / acceptance
Matrix: Puppet / unit
Puppet  /  Test suite
0s
Puppet / Test suite
Fit to window
Zoom out
Zoom in

Annotations

94 errors
Puppet / 8 (Ruby 3.2): spec/unit/puppet/provider/mongodb_replset/mongodb_spec.rb#L180
Puppet::Type::Mongodb_replset::ProviderMongo members= raises an error when no member is available Failure/Error: expect { provider.flush }.to raise_error(Puppet::Error, "Can't connect to any member of replicaset #{resource[:name]}.") expected Puppet::Error with "Can't connect to any member of replicaset rs_test.", got #<ArgumentError: Puppet::Util::Log requires a message> with backtrace: # ./vendor/bundle/ruby/3.2.0/gems/puppet-8.5.1/lib/puppet/util/log.rb:377:in `message=' # ./vendor/bundle/ruby/3.2.0/gems/puppet-8.5.1/lib/puppet/util/log.rb:305:in `initialize' # ./vendor/bundle/ruby/3.2.0/gems/puppet-8.5.1/lib/puppet/util/log.rb:89:in `new' # ./vendor/bundle/ruby/3.2.0/gems/puppet-8.5.1/lib/puppet/util/log.rb:89:in `create' # ./vendor/bundle/ruby/3.2.0/gems/puppet-8.5.1/lib/puppet/util/logging.rb:10:in `send_log' # ./vendor/bundle/ruby/3.2.0/gems/puppet-8.5.1/lib/puppet/util/logging.rb:20:in `block (2 levels) in <module:Logging>' # ./lib/puppet/provider/mongodb_replset/mongo.rb:181:in `rescue in block in get_hosts_status' # ./lib/puppet/provider/mongodb_replset/mongo.rb:154:in `block in get_hosts_status' # ./lib/puppet/provider/mongodb_replset/mongo.rb:153:in `select' # ./lib/puppet/provider/mongodb_replset/mongo.rb:153:in `get_hosts_status' # ./lib/puppet/provider/mongodb_replset/mongo.rb:239:in `set_members' # ./lib/puppet/provider/mongodb_replset/mongo.rb:65:in `flush' # ./spec/unit/puppet/provider/mongodb_replset/mongodb_spec.rb:186:in `block (4 levels) in <top (required)>' # ./spec/unit/puppet/provider/mongodb_replset/mongodb_spec.rb:186:in `block (3 levels) in <top (required)>'
Puppet / 8 (Ruby 3.2)
Process completed with exit code 1.
Puppet / 7 (Ruby 2.7): spec/unit/puppet/provider/mongodb_replset/mongodb_spec.rb#L180
Puppet::Type::Mongodb_replset::ProviderMongo members= raises an error when no member is available Failure/Error: expect { provider.flush }.to raise_error(Puppet::Error, "Can't connect to any member of replicaset #{resource[:name]}.") expected Puppet::Error with "Can't connect to any member of replicaset rs_test.", got #<ArgumentError: Puppet::Util::Log requires a message> with backtrace: # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.29.1/lib/puppet/util/log.rb:372:in `message=' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.29.1/lib/puppet/util/log.rb:302:in `initialize' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.29.1/lib/puppet/util/log.rb:87:in `new' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.29.1/lib/puppet/util/log.rb:87:in `create' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.29.1/lib/puppet/util/logging.rb:9:in `send_log' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.29.1/lib/puppet/util/logging.rb:18:in `block (2 levels) in <module:Logging>' # ./lib/puppet/provider/mongodb_replset/mongo.rb:181:in `rescue in block in get_hosts_status' # ./lib/puppet/provider/mongodb_replset/mongo.rb:154:in `block in get_hosts_status' # ./lib/puppet/provider/mongodb_replset/mongo.rb:153:in `select' # ./lib/puppet/provider/mongodb_replset/mongo.rb:153:in `get_hosts_status' # ./lib/puppet/provider/mongodb_replset/mongo.rb:239:in `set_members' # ./lib/puppet/provider/mongodb_replset/mongo.rb:65:in `flush' # ./spec/unit/puppet/provider/mongodb_replset/mongodb_spec.rb:186:in `block (4 levels) in <top (required)>' # ./spec/unit/puppet/provider/mongodb_replset/mongodb_spec.rb:186:in `block (3 levels) in <top (required)>'
Puppet / 7 (Ruby 2.7)
Process completed with exit code 1.
Puppet / Puppet 7 - CentOS 7: spec/acceptance/mongos_spec.rb#L10
mongodb::mongos class installation works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos7-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_135056175.pp.YeTVfr Last 10 lines of output were: Mar 21 13:58:24 centos7-64-puppet7.example.com systemd[1]: Unit mongos.service entered failed state. Mar 21 13:58:24 centos7-64-puppet7.example.com systemd[1]: mongos.service failed. �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Service[mongos]: Triggered 'refresh' from 2 events �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Dependency Service[mongos] has failures: true Warning: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Skipping because of failed dependencies Info: Class[Mongodb::Mongos::Service]: Unscheduling all events on Class[Mongodb::Mongos::Service] Info: Class[Mongodb::Mongos]: Unscheduling all events on Class[Mongodb::Mongos] Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 445.92 seconds
Puppet / Puppet 7 - CentOS 7: spec/acceptance/mongos_spec.rb#L38
mongodb::mongos class installation Service "mongos" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "mongos" to be running
Puppet / Puppet 7 - CentOS 7: spec/acceptance/mongos_spec.rb#L42
mongodb::mongos class installation Port "27017" is expected to be listening Failure/Error: it { is_expected.to be_listening } expected Port "27017" to be listening
Puppet / Puppet 7 - CentOS 7: spec/acceptance/server_spec.rb#L79
mongodb::server class installation using authentication works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos7-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_135900065.pp.iKlHNr Last 10 lines of output were: Info: Applying configuration version '1711029542' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]/content: content changed '{sha256}a598b3ee8c49312e66e2a045a5a07a2f077ab070018ccaa029eefdff8ebd52d0' to '{sha256}a12ad999b73aa27ae1bc2c8433f7ec3184a37f8a725ad672b1cabab426175185' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/root/.mongoshrc.js]/content: content changed '{sha256}f7eec824ed4427fcde6092515a2ec1bc6e15dc06291cbf99ddb5a140616cb246' to '{sha256}f4956ae86af4c64bb234f3ada827f378d0bcbdb25896d551c68f9c1e50037ab5' Info: Class[Mongodb::Server::Config]: Scheduling refresh of Class[Mongodb::Server::Service] Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb] �[mNotice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 event Error: Could not prefetch mongodb_user provider 'mongodb': Execution of '/usr/bin/mongosh admin --quiet --host 127.0.0.1:27017 --eval load('/root/.mongoshrc.js'); db.isMaster().ismaster' returned 1: MongoServerError: Authentication failed. Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because provider prefetch failed Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 4.54 seconds
Puppet / Puppet 7 - CentOS 7: spec/acceptance/server_spec.rb#L124
mongodb::server class installation using authentication Command "mongosh --quiet --eval "db.serverCmdLineOpts().ok"" stderr is expected to match /requires authentication/ Failure/Error: its(:stderr) { is_expected.to match %r{requires authentication} } expected "MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID(\"62fdcfe0-c1c2-40af-8c0a-b8877e709d5f\") }, $db: \"admin\" }\n" to match /requires authentication/ Diff: @@ -1 +1 @@ -/requires authentication/ +MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID("62fdcfe0-c1c2-40af-8c0a-b8877e709d5f") }, $db: "admin" }
Puppet / Puppet 7 - CentOS 7: spec/acceptance/server_spec.rb#L136
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / Puppet 7 - CentOS 7: spec/acceptance/server_spec.rb#L137
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" stdout is expected to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Failure/Error: its(:stdout) { is_expected.to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" } expected "" to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Diff: @@ -1,2 +1 @@ -{ "createdBy" : "Puppet Mongodb_user['User admin on db admin']" }
Puppet / Puppet 7 - CentOS 7: spec/acceptance/user_spec.rb#L47
mongodb_database with default port auth should fail Failure/Error: shell("mongosh testdb --quiet --eval 'db.auth(\"testuser\",\"passw0rd\")'") do |r| expect(r.stderr.chomp).to contain('MongoServerError: Authentication failed') end Beaker::Host::CommandFailure: Host 'centos7-64-puppet7.example.com' exited with 1 running: mongosh testdb --quiet --eval 'db.auth("testuser","passw0rd")' Last 10 lines of output were: MongoServerError: Authentication failed.
Puppet / Puppet 7 - CentOS 7
Process completed with exit code 1.
Puppet / Puppet 8 - CentOS 7: spec/acceptance/mongos_spec.rb#L10
mongodb::mongos class installation works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos7-64-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_135055719.pp.NTw7H2 Last 10 lines of output were: Mar 21 13:58:24 centos7-64-puppet8.example.com systemd[1]: Unit mongos.service entered failed state. Mar 21 13:58:24 centos7-64-puppet8.example.com systemd[1]: mongos.service failed. �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Service[mongos]: Triggered 'refresh' from 2 events �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Dependency Service[mongos] has failures: true Warning: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Skipping because of failed dependencies Info: Class[Mongodb::Mongos::Service]: Unscheduling all events on Class[Mongodb::Mongos::Service] Info: Class[Mongodb::Mongos]: Unscheduling all events on Class[Mongodb::Mongos] Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 446.39 seconds
Puppet / Puppet 8 - CentOS 7: spec/acceptance/mongos_spec.rb#L38
mongodb::mongos class installation Service "mongos" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "mongos" to be running
Puppet / Puppet 8 - CentOS 7: spec/acceptance/mongos_spec.rb#L42
mongodb::mongos class installation Port "27017" is expected to be listening Failure/Error: it { is_expected.to be_listening } expected Port "27017" to be listening
Puppet / Puppet 8 - CentOS 7: spec/acceptance/server_spec.rb#L79
mongodb::server class installation using authentication works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos7-64-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_135901084.pp.GuvbbS Last 10 lines of output were: Info: Applying configuration version '1711029543' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]/content: content changed '{sha256}a598b3ee8c49312e66e2a045a5a07a2f077ab070018ccaa029eefdff8ebd52d0' to '{sha256}a12ad999b73aa27ae1bc2c8433f7ec3184a37f8a725ad672b1cabab426175185' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/root/.mongoshrc.js]/content: content changed '{sha256}f7eec824ed4427fcde6092515a2ec1bc6e15dc06291cbf99ddb5a140616cb246' to '{sha256}f4956ae86af4c64bb234f3ada827f378d0bcbdb25896d551c68f9c1e50037ab5' Info: Class[Mongodb::Server::Config]: Scheduling refresh of Class[Mongodb::Server::Service] Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb] �[mNotice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 event Error: Could not prefetch mongodb_user provider 'mongodb': Execution of '/usr/bin/mongosh admin --quiet --host 127.0.0.1:27017 --eval load('/root/.mongoshrc.js'); db.isMaster().ismaster' returned 1: MongoServerError: Authentication failed. Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because provider prefetch failed Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 4.53 seconds
Puppet / Puppet 8 - CentOS 7: spec/acceptance/server_spec.rb#L124
mongodb::server class installation using authentication Command "mongosh --quiet --eval "db.serverCmdLineOpts().ok"" stderr is expected to match /requires authentication/ Failure/Error: its(:stderr) { is_expected.to match %r{requires authentication} } expected "MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID(\"f001ae4d-ef7f-4007-8f05-d703e92055b2\") }, $db: \"admin\" }\n" to match /requires authentication/ Diff: @@ -1 +1 @@ -/requires authentication/ +MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID("f001ae4d-ef7f-4007-8f05-d703e92055b2") }, $db: "admin" }
Puppet / Puppet 8 - CentOS 7: spec/acceptance/server_spec.rb#L136
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / Puppet 8 - CentOS 7: spec/acceptance/server_spec.rb#L137
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" stdout is expected to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Failure/Error: its(:stdout) { is_expected.to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" } expected "" to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Diff: @@ -1,2 +1 @@ -{ "createdBy" : "Puppet Mongodb_user['User admin on db admin']" }
Puppet / Puppet 8 - CentOS 7: spec/acceptance/user_spec.rb#L47
mongodb_database with default port auth should fail Failure/Error: shell("mongosh testdb --quiet --eval 'db.auth(\"testuser\",\"passw0rd\")'") do |r| expect(r.stderr.chomp).to contain('MongoServerError: Authentication failed') end Beaker::Host::CommandFailure: Host 'centos7-64-puppet8.example.com' exited with 1 running: mongosh testdb --quiet --eval 'db.auth("testuser","passw0rd")' Last 10 lines of output were: MongoServerError: Authentication failed.
Puppet / Puppet 8 - CentOS 7
Process completed with exit code 1.
Puppet / Puppet 7 - Debian 11: spec/acceptance/mongos_spec.rb#L10
mongodb::mongos class installation works 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_135110856.pp.RcnSPp Last 10 lines of output were: Mar 21 13:58:41 debian11-64-puppet7.example.com systemd[1]: mongos.service: Failed with result 'timeout'. Mar 21 13:58:41 debian11-64-puppet7.example.com systemd[1]: Failed to start MongoDB Database Server. �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Service[mongos]: Triggered 'refresh' from 2 events �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Dependency Service[mongos] has failures: true Warning: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Skipping because of failed dependencies Info: Class[Mongodb::Mongos::Service]: Unscheduling all events on Class[Mongodb::Mongos::Service] Info: Class[Mongodb::Mongos]: Unscheduling all events on Class[Mongodb::Mongos] Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 447.21 seconds
Puppet / Puppet 7 - Debian 11: spec/acceptance/mongos_spec.rb#L38
mongodb::mongos class installation Service "mongos" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "mongos" to be running
Puppet / Puppet 7 - Debian 11: spec/acceptance/mongos_spec.rb#L42
mongodb::mongos class installation Port "27017" is expected to be listening Failure/Error: it { is_expected.to be_listening } expected Port "27017" to be listening
Puppet / Puppet 7 - Debian 11: spec/acceptance/server_spec.rb#L79
mongodb::server class installation using authentication works 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_135931735.pp.iKOzCb Last 10 lines of output were: Info: Applying configuration version '1711029575' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]/content: content changed '{sha256}41c7561050b6d191462e7242c9bf93f98ae5ffa91e6ab8307cc9c5073ca76455' to '{sha256}cbe690d4db3e62992a7dfed4e75b1f30e0072e8a580e38932d54df81617343e8' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/root/.mongoshrc.js]/content: content changed '{sha256}f7eec824ed4427fcde6092515a2ec1bc6e15dc06291cbf99ddb5a140616cb246' to '{sha256}f4956ae86af4c64bb234f3ada827f378d0bcbdb25896d551c68f9c1e50037ab5' Info: Class[Mongodb::Server::Config]: Scheduling refresh of Class[Mongodb::Server::Service] Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb] �[mNotice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 event Error: Could not prefetch mongodb_user provider 'mongodb': Execution of '/usr/bin/mongosh admin --quiet --host 127.0.0.1:27017 --eval load('/root/.mongoshrc.js'); db.isMaster().ismaster' returned 1: MongoServerError: Authentication failed. Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because provider prefetch failed Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 5.38 seconds
Puppet / Puppet 7 - Debian 11: spec/acceptance/server_spec.rb#L124
mongodb::server class installation using authentication Command "mongosh --quiet --eval "db.serverCmdLineOpts().ok"" stderr is expected to match /requires authentication/ Failure/Error: its(:stderr) { is_expected.to match %r{requires authentication} } expected "MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID(\"967bcbf5-81bf-4b3e-a57f-8ca3cd3fd500\") }, $db: \"admin\" }\n" to match /requires authentication/ Diff: @@ -1 +1 @@ -/requires authentication/ +MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID("967bcbf5-81bf-4b3e-a57f-8ca3cd3fd500") }, $db: "admin" }
Puppet / Puppet 7 - Debian 11: spec/acceptance/server_spec.rb#L136
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / Puppet 7 - Debian 11: spec/acceptance/server_spec.rb#L137
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" stdout is expected to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Failure/Error: its(:stdout) { is_expected.to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" } expected "" to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Diff: @@ -1,2 +1 @@ -{ "createdBy" : "Puppet Mongodb_user['User admin on db admin']" }
Puppet / Puppet 7 - Debian 11: spec/acceptance/user_spec.rb#L47
mongodb_database with default port auth should fail Failure/Error: shell("mongosh testdb --quiet --eval 'db.auth(\"testuser\",\"passw0rd\")'") do |r| expect(r.stderr.chomp).to contain('MongoServerError: Authentication failed') end Beaker::Host::CommandFailure: Host 'debian11-64-puppet7.example.com' exited with 1 running: mongosh testdb --quiet --eval 'db.auth("testuser","passw0rd")' Last 10 lines of output were: MongoServerError: Authentication failed.
Puppet / Puppet 7 - Debian 11
Process completed with exit code 1.
Puppet / Puppet 8 - Debian 11: spec/acceptance/mongos_spec.rb#L10
mongodb::mongos class installation works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'debian11-64-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_135113569.pp.23sRyR Last 10 lines of output were: Mar 21 13:58:45 debian11-64-puppet8.example.com systemd[1]: mongos.service: Failed with result 'timeout'. Mar 21 13:58:45 debian11-64-puppet8.example.com systemd[1]: Failed to start MongoDB Database Server. �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Service[mongos]: Triggered 'refresh' from 2 events �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Dependency Service[mongos] has failures: true Warning: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Skipping because of failed dependencies Info: Class[Mongodb::Mongos::Service]: Unscheduling all events on Class[Mongodb::Mongos::Service] Info: Class[Mongodb::Mongos]: Unscheduling all events on Class[Mongodb::Mongos] Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 447.52 seconds
Puppet / Puppet 8 - Debian 11: spec/acceptance/mongos_spec.rb#L38
mongodb::mongos class installation Service "mongos" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "mongos" to be running
Puppet / Puppet 8 - Debian 11: spec/acceptance/mongos_spec.rb#L42
mongodb::mongos class installation Port "27017" is expected to be listening Failure/Error: it { is_expected.to be_listening } expected Port "27017" to be listening
Puppet / Puppet 8 - Debian 11: spec/acceptance/server_spec.rb#L79
mongodb::server class installation using authentication works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'debian11-64-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_135933801.pp.UdlzAj Last 10 lines of output were: Info: Applying configuration version '1711029577' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]/content: content changed '{sha256}41c7561050b6d191462e7242c9bf93f98ae5ffa91e6ab8307cc9c5073ca76455' to '{sha256}cbe690d4db3e62992a7dfed4e75b1f30e0072e8a580e38932d54df81617343e8' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/root/.mongoshrc.js]/content: content changed '{sha256}f7eec824ed4427fcde6092515a2ec1bc6e15dc06291cbf99ddb5a140616cb246' to '{sha256}f4956ae86af4c64bb234f3ada827f378d0bcbdb25896d551c68f9c1e50037ab5' Info: Class[Mongodb::Server::Config]: Scheduling refresh of Class[Mongodb::Server::Service] Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb] �[mNotice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 event Error: Could not prefetch mongodb_user provider 'mongodb': Execution of '/usr/bin/mongosh admin --quiet --host 127.0.0.1:27017 --eval load('/root/.mongoshrc.js'); db.isMaster().ismaster' returned 1: MongoServerError: Authentication failed. Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because provider prefetch failed Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 5.36 seconds
Puppet / Puppet 8 - Debian 11: spec/acceptance/server_spec.rb#L124
mongodb::server class installation using authentication Command "mongosh --quiet --eval "db.serverCmdLineOpts().ok"" stderr is expected to match /requires authentication/ Failure/Error: its(:stderr) { is_expected.to match %r{requires authentication} } expected "MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID(\"bc13a736-a714-49ed-a35a-72bd97fad87f\") }, $db: \"admin\" }\n" to match /requires authentication/ Diff: @@ -1 +1 @@ -/requires authentication/ +MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID("bc13a736-a714-49ed-a35a-72bd97fad87f") }, $db: "admin" }
Puppet / Puppet 8 - Debian 11: spec/acceptance/server_spec.rb#L136
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / Puppet 8 - Debian 11: spec/acceptance/server_spec.rb#L137
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" stdout is expected to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Failure/Error: its(:stdout) { is_expected.to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" } expected "" to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Diff: @@ -1,2 +1 @@ -{ "createdBy" : "Puppet Mongodb_user['User admin on db admin']" }
Puppet / Puppet 8 - Debian 11: spec/acceptance/user_spec.rb#L47
mongodb_database with default port auth should fail Failure/Error: shell("mongosh testdb --quiet --eval 'db.auth(\"testuser\",\"passw0rd\")'") do |r| expect(r.stderr.chomp).to contain('MongoServerError: Authentication failed') end Beaker::Host::CommandFailure: Host 'debian11-64-puppet8.example.com' exited with 1 running: mongosh testdb --quiet --eval 'db.auth("testuser","passw0rd")' Last 10 lines of output were: MongoServerError: Authentication failed.
Puppet / Puppet 8 - Debian 11
Process completed with exit code 1.
Puppet / Puppet 8 - Debian 10: spec/acceptance/mongos_spec.rb#L10
mongodb::mongos class installation works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'debian10-64-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_135116788.pp.2JhMYF Last 10 lines of output were: Mar 21 13:58:48 debian10-64-puppet8.example.com systemd[1]: mongos.service: Failed with result 'timeout'. Mar 21 13:58:48 debian10-64-puppet8.example.com systemd[1]: Failed to start MongoDB Database Server. �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Service[mongos]: Triggered 'refresh' from 2 events �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Dependency Service[mongos] has failures: true Warning: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Skipping because of failed dependencies Info: Class[Mongodb::Mongos::Service]: Unscheduling all events on Class[Mongodb::Mongos::Service] Info: Class[Mongodb::Mongos]: Unscheduling all events on Class[Mongodb::Mongos] Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 447.45 seconds
Puppet / Puppet 8 - Debian 10: spec/acceptance/mongos_spec.rb#L38
mongodb::mongos class installation Service "mongos" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "mongos" to be running
Puppet / Puppet 8 - Debian 10: spec/acceptance/mongos_spec.rb#L42
mongodb::mongos class installation Port "27017" is expected to be listening Failure/Error: it { is_expected.to be_listening } expected Port "27017" to be listening
Puppet / Puppet 8 - Debian 10: spec/acceptance/server_spec.rb#L79
mongodb::server class installation using authentication works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'debian10-64-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_135941514.pp.QDlwlD Last 10 lines of output were: Info: Applying configuration version '1711029585' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]/content: content changed '{sha256}41c7561050b6d191462e7242c9bf93f98ae5ffa91e6ab8307cc9c5073ca76455' to '{sha256}cbe690d4db3e62992a7dfed4e75b1f30e0072e8a580e38932d54df81617343e8' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/root/.mongoshrc.js]/content: content changed '{sha256}f7eec824ed4427fcde6092515a2ec1bc6e15dc06291cbf99ddb5a140616cb246' to '{sha256}f4956ae86af4c64bb234f3ada827f378d0bcbdb25896d551c68f9c1e50037ab5' Info: Class[Mongodb::Server::Config]: Scheduling refresh of Class[Mongodb::Server::Service] Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb] �[mNotice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 event Error: Could not prefetch mongodb_user provider 'mongodb': Execution of '/usr/bin/mongosh admin --quiet --host 127.0.0.1:27017 --eval load('/root/.mongoshrc.js'); db.isMaster().ismaster' returned 1: MongoServerError: Authentication failed. Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because provider prefetch failed Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 5.69 seconds
Puppet / Puppet 8 - Debian 10: spec/acceptance/server_spec.rb#L124
mongodb::server class installation using authentication Command "mongosh --quiet --eval "db.serverCmdLineOpts().ok"" stderr is expected to match /requires authentication/ Failure/Error: its(:stderr) { is_expected.to match %r{requires authentication} } expected "MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID(\"f82e7b65-8a2b-4236-a20c-201203074ac9\") }, $db: \"admin\" }\n" to match /requires authentication/ Diff: @@ -1 +1 @@ -/requires authentication/ +MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID("f82e7b65-8a2b-4236-a20c-201203074ac9") }, $db: "admin" }
Puppet / Puppet 8 - Debian 10: spec/acceptance/server_spec.rb#L136
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / Puppet 8 - Debian 10: spec/acceptance/server_spec.rb#L137
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" stdout is expected to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Failure/Error: its(:stdout) { is_expected.to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" } expected "" to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Diff: @@ -1,2 +1 @@ -{ "createdBy" : "Puppet Mongodb_user['User admin on db admin']" }
Puppet / Puppet 8 - Debian 10: spec/acceptance/user_spec.rb#L47
mongodb_database with default port auth should fail Failure/Error: shell("mongosh testdb --quiet --eval 'db.auth(\"testuser\",\"passw0rd\")'") do |r| expect(r.stderr.chomp).to contain('MongoServerError: Authentication failed') end Beaker::Host::CommandFailure: Host 'debian10-64-puppet8.example.com' exited with 1 running: mongosh testdb --quiet --eval 'db.auth("testuser","passw0rd")' Last 10 lines of output were: MongoServerError: Authentication failed.
Puppet / Puppet 8 - Debian 10
Process completed with exit code 1.
Puppet / Puppet 7 - Debian 10: spec/acceptance/mongos_spec.rb#L10
mongodb::mongos class installation works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'debian10-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_135116625.pp.RCH4XB Last 10 lines of output were: Mar 21 13:58:48 debian10-64-puppet7.example.com systemd[1]: mongos.service: Failed with result 'timeout'. Mar 21 13:58:48 debian10-64-puppet7.example.com systemd[1]: Failed to start MongoDB Database Server. �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Service[mongos]: Triggered 'refresh' from 2 events �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Dependency Service[mongos] has failures: true Warning: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Skipping because of failed dependencies Info: Class[Mongodb::Mongos::Service]: Unscheduling all events on Class[Mongodb::Mongos::Service] Info: Class[Mongodb::Mongos]: Unscheduling all events on Class[Mongodb::Mongos] Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 447.63 seconds
Puppet / Puppet 7 - Debian 10: spec/acceptance/mongos_spec.rb#L38
mongodb::mongos class installation Service "mongos" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "mongos" to be running
Puppet / Puppet 7 - Debian 10: spec/acceptance/mongos_spec.rb#L42
mongodb::mongos class installation Port "27017" is expected to be listening Failure/Error: it { is_expected.to be_listening } expected Port "27017" to be listening
Puppet / Puppet 7 - Debian 10: spec/acceptance/server_spec.rb#L79
mongodb::server class installation using authentication works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'debian10-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_135942339.pp.7nOjZ0 Last 10 lines of output were: Info: Applying configuration version '1711029586' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]/content: content changed '{sha256}41c7561050b6d191462e7242c9bf93f98ae5ffa91e6ab8307cc9c5073ca76455' to '{sha256}cbe690d4db3e62992a7dfed4e75b1f30e0072e8a580e38932d54df81617343e8' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/root/.mongoshrc.js]/content: content changed '{sha256}f7eec824ed4427fcde6092515a2ec1bc6e15dc06291cbf99ddb5a140616cb246' to '{sha256}f4956ae86af4c64bb234f3ada827f378d0bcbdb25896d551c68f9c1e50037ab5' Info: Class[Mongodb::Server::Config]: Scheduling refresh of Class[Mongodb::Server::Service] Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb] �[mNotice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 event Error: Could not prefetch mongodb_user provider 'mongodb': Execution of '/usr/bin/mongosh admin --quiet --host 127.0.0.1:27017 --eval load('/root/.mongoshrc.js'); db.isMaster().ismaster' returned 1: MongoServerError: Authentication failed. Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because provider prefetch failed Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 5.74 seconds
Puppet / Puppet 7 - Debian 10: spec/acceptance/server_spec.rb#L124
mongodb::server class installation using authentication Command "mongosh --quiet --eval "db.serverCmdLineOpts().ok"" stderr is expected to match /requires authentication/ Failure/Error: its(:stderr) { is_expected.to match %r{requires authentication} } expected "MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID(\"810394ba-6306-44bb-b491-848b4c81d5b1\") }, $db: \"admin\" }\n" to match /requires authentication/ Diff: @@ -1 +1 @@ -/requires authentication/ +MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID("810394ba-6306-44bb-b491-848b4c81d5b1") }, $db: "admin" }
Puppet / Puppet 7 - Debian 10: spec/acceptance/server_spec.rb#L136
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / Puppet 7 - Debian 10: spec/acceptance/server_spec.rb#L137
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" stdout is expected to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Failure/Error: its(:stdout) { is_expected.to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" } expected "" to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Diff: @@ -1,2 +1 @@ -{ "createdBy" : "Puppet Mongodb_user['User admin on db admin']" }
Puppet / Puppet 7 - Debian 10: spec/acceptance/user_spec.rb#L47
mongodb_database with default port auth should fail Failure/Error: shell("mongosh testdb --quiet --eval 'db.auth(\"testuser\",\"passw0rd\")'") do |r| expect(r.stderr.chomp).to contain('MongoServerError: Authentication failed') end Beaker::Host::CommandFailure: Host 'debian10-64-puppet7.example.com' exited with 1 running: mongosh testdb --quiet --eval 'db.auth("testuser","passw0rd")' Last 10 lines of output were: MongoServerError: Authentication failed.
Puppet / Puppet 7 - Debian 10
Process completed with exit code 1.
Puppet / Puppet 7 - CentOS 8: spec/acceptance/mongos_spec.rb#L10
mongodb::mongos class installation works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_135237013.pp.cji0XO Last 10 lines of output were: Mar 21 14:00:06 centos8-64-puppet7.example.com systemd[1]: mongos.service: Failed with result 'timeout'. Mar 21 14:00:06 centos8-64-puppet7.example.com systemd[1]: Failed to start MongoDB Database Server. �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Service[mongos]: Triggered 'refresh' from 2 events �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Dependency Service[mongos] has failures: true Warning: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Skipping because of failed dependencies Info: Class[Mongodb::Mongos::Service]: Unscheduling all events on Class[Mongodb::Mongos::Service] Info: Class[Mongodb::Mongos]: Unscheduling all events on Class[Mongodb::Mongos] Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 447.06 seconds
Puppet / Puppet 7 - CentOS 8: spec/acceptance/mongos_spec.rb#L38
mongodb::mongos class installation Service "mongos" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "mongos" to be running
Puppet / Puppet 7 - CentOS 8: spec/acceptance/mongos_spec.rb#L42
mongodb::mongos class installation Port "27017" is expected to be listening Failure/Error: it { is_expected.to be_listening } expected Port "27017" to be listening
Puppet / Puppet 7 - CentOS 8: spec/acceptance/server_spec.rb#L79
mongodb::server class installation using authentication works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_140042464.pp.FPFKNr Last 10 lines of output were: Info: Applying configuration version '1711029644' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]/content: content changed '{sha256}a598b3ee8c49312e66e2a045a5a07a2f077ab070018ccaa029eefdff8ebd52d0' to '{sha256}a12ad999b73aa27ae1bc2c8433f7ec3184a37f8a725ad672b1cabab426175185' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/root/.mongoshrc.js]/content: content changed '{sha256}f7eec824ed4427fcde6092515a2ec1bc6e15dc06291cbf99ddb5a140616cb246' to '{sha256}f4956ae86af4c64bb234f3ada827f378d0bcbdb25896d551c68f9c1e50037ab5' Info: Class[Mongodb::Server::Config]: Scheduling refresh of Class[Mongodb::Server::Service] Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb] �[mNotice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 event Error: Could not prefetch mongodb_user provider 'mongodb': Execution of '/usr/bin/mongosh admin --quiet --host 127.0.0.1:27017 --eval load('/root/.mongoshrc.js'); db.isMaster().ismaster' returned 1: MongoServerError: Authentication failed. Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because provider prefetch failed Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 4.53 seconds
Puppet / Puppet 7 - CentOS 8: spec/acceptance/server_spec.rb#L124
mongodb::server class installation using authentication Command "mongosh --quiet --eval "db.serverCmdLineOpts().ok"" stderr is expected to match /requires authentication/ Failure/Error: its(:stderr) { is_expected.to match %r{requires authentication} } expected "MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID(\"30cc8409-a495-4d05-8191-74676a17a4ba\") }, $db: \"admin\" }\n" to match /requires authentication/ Diff: @@ -1 +1 @@ -/requires authentication/ +MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID("30cc8409-a495-4d05-8191-74676a17a4ba") }, $db: "admin" }
Puppet / Puppet 7 - CentOS 8: spec/acceptance/server_spec.rb#L136
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / Puppet 7 - CentOS 8: spec/acceptance/server_spec.rb#L137
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" stdout is expected to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Failure/Error: its(:stdout) { is_expected.to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" } expected "" to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Diff: @@ -1,2 +1 @@ -{ "createdBy" : "Puppet Mongodb_user['User admin on db admin']" }
Puppet / Puppet 7 - CentOS 8: spec/acceptance/user_spec.rb#L47
mongodb_database with default port auth should fail Failure/Error: shell("mongosh testdb --quiet --eval 'db.auth(\"testuser\",\"passw0rd\")'") do |r| expect(r.stderr.chomp).to contain('MongoServerError: Authentication failed') end Beaker::Host::CommandFailure: Host 'centos8-64-puppet7.example.com' exited with 1 running: mongosh testdb --quiet --eval 'db.auth("testuser","passw0rd")' Last 10 lines of output were: MongoServerError: Authentication failed.
Puppet / Puppet 7 - CentOS 8
Process completed with exit code 1.
Puppet / Puppet 8 - CentOS 8: spec/acceptance/mongos_spec.rb#L10
mongodb::mongos class installation works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_135237307.pp.Ub2FiC Last 10 lines of output were: Mar 21 14:00:07 centos8-64-puppet8.example.com systemd[1]: mongos.service: Failed with result 'timeout'. Mar 21 14:00:07 centos8-64-puppet8.example.com systemd[1]: Failed to start MongoDB Database Server. �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Service[mongos]: Triggered 'refresh' from 2 events �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Dependency Service[mongos] has failures: true Warning: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Skipping because of failed dependencies Info: Class[Mongodb::Mongos::Service]: Unscheduling all events on Class[Mongodb::Mongos::Service] Info: Class[Mongodb::Mongos]: Unscheduling all events on Class[Mongodb::Mongos] Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 447.07 seconds
Puppet / Puppet 8 - CentOS 8: spec/acceptance/mongos_spec.rb#L38
mongodb::mongos class installation Service "mongos" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "mongos" to be running
Puppet / Puppet 8 - CentOS 8: spec/acceptance/mongos_spec.rb#L42
mongodb::mongos class installation Port "27017" is expected to be listening Failure/Error: it { is_expected.to be_listening } expected Port "27017" to be listening
Puppet / Puppet 8 - CentOS 8: spec/acceptance/server_spec.rb#L79
mongodb::server class installation using authentication works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_140045070.pp.nGs7Il Last 10 lines of output were: Info: Applying configuration version '1711029647' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]/content: content changed '{sha256}a598b3ee8c49312e66e2a045a5a07a2f077ab070018ccaa029eefdff8ebd52d0' to '{sha256}a12ad999b73aa27ae1bc2c8433f7ec3184a37f8a725ad672b1cabab426175185' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/root/.mongoshrc.js]/content: content changed '{sha256}f7eec824ed4427fcde6092515a2ec1bc6e15dc06291cbf99ddb5a140616cb246' to '{sha256}f4956ae86af4c64bb234f3ada827f378d0bcbdb25896d551c68f9c1e50037ab5' Info: Class[Mongodb::Server::Config]: Scheduling refresh of Class[Mongodb::Server::Service] Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb] �[mNotice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 event Error: Could not prefetch mongodb_user provider 'mongodb': Execution of '/usr/bin/mongosh admin --quiet --host 127.0.0.1:27017 --eval load('/root/.mongoshrc.js'); db.isMaster().ismaster' returned 1: MongoServerError: Authentication failed. Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because provider prefetch failed Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 4.55 seconds
Puppet / Puppet 8 - CentOS 8: spec/acceptance/server_spec.rb#L124
mongodb::server class installation using authentication Command "mongosh --quiet --eval "db.serverCmdLineOpts().ok"" stderr is expected to match /requires authentication/ Failure/Error: its(:stderr) { is_expected.to match %r{requires authentication} } expected "MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID(\"43e6a0e4-8582-4c10-9df6-5d423ed43867\") }, $db: \"admin\" }\n" to match /requires authentication/ Diff: @@ -1 +1 @@ -/requires authentication/ +MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID("43e6a0e4-8582-4c10-9df6-5d423ed43867") }, $db: "admin" }
Puppet / Puppet 8 - CentOS 8: spec/acceptance/server_spec.rb#L136
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / Puppet 8 - CentOS 8: spec/acceptance/server_spec.rb#L137
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" stdout is expected to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Failure/Error: its(:stdout) { is_expected.to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" } expected "" to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Diff: @@ -1,2 +1 @@ -{ "createdBy" : "Puppet Mongodb_user['User admin on db admin']" }
Puppet / Puppet 8 - CentOS 8: spec/acceptance/user_spec.rb#L47
mongodb_database with default port auth should fail Failure/Error: shell("mongosh testdb --quiet --eval 'db.auth(\"testuser\",\"passw0rd\")'") do |r| expect(r.stderr.chomp).to contain('MongoServerError: Authentication failed') end Beaker::Host::CommandFailure: Host 'centos8-64-puppet8.example.com' exited with 1 running: mongosh testdb --quiet --eval 'db.auth("testuser","passw0rd")' Last 10 lines of output were: MongoServerError: Authentication failed.
Puppet / Puppet 8 - CentOS 8
Process completed with exit code 1.
Puppet / Puppet 8 - Ubuntu 20.04: spec/acceptance/mongos_spec.rb#L10
mongodb::mongos class installation works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu2004-64-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_135126126.pp.5AewMq Last 10 lines of output were: Mar 21 13:58:59 ubuntu2004-64-puppet8.example.com systemd[1]: mongos.service: Failed with result 'timeout'. Mar 21 13:58:59 ubuntu2004-64-puppet8.example.com systemd[1]: Failed to start MongoDB Database Server. �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Service[mongos]: Triggered 'refresh' from 2 events �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Dependency Service[mongos] has failures: true Warning: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Skipping because of failed dependencies Info: Class[Mongodb::Mongos::Service]: Unscheduling all events on Class[Mongodb::Mongos::Service] Info: Class[Mongodb::Mongos]: Unscheduling all events on Class[Mongodb::Mongos] Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 448.31 seconds
Puppet / Puppet 8 - Ubuntu 20.04: spec/acceptance/mongos_spec.rb#L38
mongodb::mongos class installation Service "mongos" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "mongos" to be running
Puppet / Puppet 8 - Ubuntu 20.04: spec/acceptance/mongos_spec.rb#L42
mongodb::mongos class installation Port "27017" is expected to be listening Failure/Error: it { is_expected.to be_listening } expected Port "27017" to be listening
Puppet / Puppet 8 - Ubuntu 20.04: spec/acceptance/server_spec.rb#L79
mongodb::server class installation using authentication works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu2004-64-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_140006221.pp.8WItGT Last 10 lines of output were: Info: Applying configuration version '1711029611' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]/content: content changed '{sha256}41c7561050b6d191462e7242c9bf93f98ae5ffa91e6ab8307cc9c5073ca76455' to '{sha256}cbe690d4db3e62992a7dfed4e75b1f30e0072e8a580e38932d54df81617343e8' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/root/.mongoshrc.js]/content: content changed '{sha256}f7eec824ed4427fcde6092515a2ec1bc6e15dc06291cbf99ddb5a140616cb246' to '{sha256}f4956ae86af4c64bb234f3ada827f378d0bcbdb25896d551c68f9c1e50037ab5' Info: Class[Mongodb::Server::Config]: Scheduling refresh of Class[Mongodb::Server::Service] Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb] �[mNotice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 event Error: Could not prefetch mongodb_user provider 'mongodb': Execution of '/usr/bin/mongosh admin --quiet --host 127.0.0.1:27017 --eval load('/root/.mongoshrc.js'); db.isMaster().ismaster' returned 1: MongoServerError: Authentication failed. Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because provider prefetch failed Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 5.71 seconds
Puppet / Puppet 8 - Ubuntu 20.04: spec/acceptance/server_spec.rb#L124
mongodb::server class installation using authentication Command "mongosh --quiet --eval "db.serverCmdLineOpts().ok"" stderr is expected to match /requires authentication/ Failure/Error: its(:stderr) { is_expected.to match %r{requires authentication} } expected "MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID(\"2dd6db35-c2f0-46de-a966-bbcb11b80caf\") }, $db: \"admin\" }\n" to match /requires authentication/ Diff: @@ -1 +1 @@ -/requires authentication/ +MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID("2dd6db35-c2f0-46de-a966-bbcb11b80caf") }, $db: "admin" }
Puppet / Puppet 8 - Ubuntu 20.04: spec/acceptance/server_spec.rb#L136
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / Puppet 8 - Ubuntu 20.04: spec/acceptance/server_spec.rb#L137
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" stdout is expected to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Failure/Error: its(:stdout) { is_expected.to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" } expected "" to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Diff: @@ -1,2 +1 @@ -{ "createdBy" : "Puppet Mongodb_user['User admin on db admin']" }
Puppet / Puppet 8 - Ubuntu 20.04: spec/acceptance/user_spec.rb#L47
mongodb_database with default port auth should fail Failure/Error: shell("mongosh testdb --quiet --eval 'db.auth(\"testuser\",\"passw0rd\")'") do |r| expect(r.stderr.chomp).to contain('MongoServerError: Authentication failed') end Beaker::Host::CommandFailure: Host 'ubuntu2004-64-puppet8.example.com' exited with 1 running: mongosh testdb --quiet --eval 'db.auth("testuser","passw0rd")' Last 10 lines of output were: MongoServerError: Authentication failed.
Puppet / Puppet 8 - Ubuntu 20.04
Process completed with exit code 1.
Puppet / Puppet 7 - Ubuntu 20.04: spec/acceptance/mongos_spec.rb#L10
mongodb::mongos class installation works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu2004-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_135128748.pp.cVNTRx Last 10 lines of output were: Mar 21 13:59:02 ubuntu2004-64-puppet7.example.com systemd[1]: mongos.service: Failed with result 'timeout'. Mar 21 13:59:02 ubuntu2004-64-puppet7.example.com systemd[1]: Failed to start MongoDB Database Server. �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Service[mongos]: Triggered 'refresh' from 2 events �[mNotice: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Dependency Service[mongos] has failures: true Warning: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Skipping because of failed dependencies Info: Class[Mongodb::Mongos::Service]: Unscheduling all events on Class[Mongodb::Mongos::Service] Info: Class[Mongodb::Mongos]: Unscheduling all events on Class[Mongodb::Mongos] Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 448.82 seconds
Puppet / Puppet 7 - Ubuntu 20.04: spec/acceptance/mongos_spec.rb#L38
mongodb::mongos class installation Service "mongos" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "mongos" to be running
Puppet / Puppet 7 - Ubuntu 20.04: spec/acceptance/mongos_spec.rb#L42
mongodb::mongos class installation Port "27017" is expected to be listening Failure/Error: it { is_expected.to be_listening } expected Port "27017" to be listening
Puppet / Puppet 7 - Ubuntu 20.04: spec/acceptance/server_spec.rb#L79
mongodb::server class installation using authentication works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu2004-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_140006734.pp.FJxkiB Last 10 lines of output were: Info: Applying configuration version '1711029611' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]/content: content changed '{sha256}41c7561050b6d191462e7242c9bf93f98ae5ffa91e6ab8307cc9c5073ca76455' to '{sha256}cbe690d4db3e62992a7dfed4e75b1f30e0072e8a580e38932d54df81617343e8' �[mNotice: /Stage[main]/Mongodb::Server::Config/File[/root/.mongoshrc.js]/content: content changed '{sha256}f7eec824ed4427fcde6092515a2ec1bc6e15dc06291cbf99ddb5a140616cb246' to '{sha256}f4956ae86af4c64bb234f3ada827f378d0bcbdb25896d551c68f9c1e50037ab5' Info: Class[Mongodb::Server::Config]: Scheduling refresh of Class[Mongodb::Server::Service] Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb] �[mNotice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 event Error: Could not prefetch mongodb_user provider 'mongodb': Execution of '/usr/bin/mongosh admin --quiet --host 127.0.0.1:27017 --eval load('/root/.mongoshrc.js'); db.isMaster().ismaster' returned 1: MongoServerError: Authentication failed. Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because provider prefetch failed Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 5.68 seconds
Puppet / Puppet 7 - Ubuntu 20.04: spec/acceptance/server_spec.rb#L124
mongodb::server class installation using authentication Command "mongosh --quiet --eval "db.serverCmdLineOpts().ok"" stderr is expected to match /requires authentication/ Failure/Error: its(:stderr) { is_expected.to match %r{requires authentication} } expected "MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID(\"9cac7aee-04c2-4ca7-8a5a-d380f29ff8e8\") }, $db: \"admin\" }\n" to match /requires authentication/ Diff: @@ -1 +1 @@ -/requires authentication/ +MongoServerError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID("9cac7aee-04c2-4ca7-8a5a-d380f29ff8e8") }, $db: "admin" }
Puppet / Puppet 7 - Ubuntu 20.04: spec/acceptance/server_spec.rb#L136
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / Puppet 7 - Ubuntu 20.04: spec/acceptance/server_spec.rb#L137
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" stdout is expected to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Failure/Error: its(:stdout) { is_expected.to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" } expected "" to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" Diff: @@ -1,2 +1 @@ -{ "createdBy" : "Puppet Mongodb_user['User admin on db admin']" }
Puppet / Puppet 7 - Ubuntu 20.04: spec/acceptance/user_spec.rb#L47
mongodb_database with default port auth should fail Failure/Error: shell("mongosh testdb --quiet --eval 'db.auth(\"testuser\",\"passw0rd\")'") do |r| expect(r.stderr.chomp).to contain('MongoServerError: Authentication failed') end Beaker::Host::CommandFailure: Host 'ubuntu2004-64-puppet7.example.com' exited with 1 running: mongosh testdb --quiet --eval 'db.auth("testuser","passw0rd")' Last 10 lines of output were: MongoServerError: Authentication failed.
Puppet / Puppet 7 - Ubuntu 20.04
Process completed with exit code 1.