Use the mongosh command instead of the old mongo command #376
Annotations
8 errors
|
Run tests:
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_140749644.pp.zNTgcJ
Last 10 lines of output were:
Mar 21 14:15:22 debian10-64-puppet8.example.com systemd[1]: mongos.service: Failed with result 'timeout'.
Mar 21 14:15:22 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 448.25 seconds
|
Run tests:
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
|
Run tests:
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
|
Run tests:
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_141623100.pp.LIYME6
Last 10 lines of output were:
Info: Applying configuration version '1711030587'
�[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.85 seconds
|
Run tests:
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 ==)
|
Run tests:
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']" }
|
Run tests
The operation was canceled.
|
Loading