Fix replset and sharding integration tests #590
Annotations
29 errors
Puppet 7 - AlmaLinux 8 - MongoDB 7.0:
spec/acceptance/replset_spec.rb#L211
mongodb_replset resource with auth => true sets up the replset with puppet
Failure/Error: apply_manifest_on(hosts_as('master'), pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'almalinux8-64-1-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_215532814.pp.80ou0W
Last 10 lines of output were:
�[mNotice: Compiled catalog for almalinux8-64-1-puppet7.example.com in environment production in 0.03 seconds
Info: Using environment 'production'
Info: Applying configuration version '1713650134'
�[mNotice: /Stage[main]/Main/Mongodb_replset[test]/ensure: created
Warning: Host almalinux8-64-2-puppet7.example.com:27017 is available, but you are unauthorized because of authentication is enabled: true
Error: /Stage[main]/Main/Mongodb_replset[test]: Could not evaluate: rs.initiate() failed for replicaset test
Warning: User info is available only from master host
�[mNotice: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Dependency Mongodb_replset[test] has failures: true
Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 36.82 seconds
|
Puppet 7 - AlmaLinux 8 - MongoDB 7.0:
spec/acceptance/replset_spec.rb#L239
mongodb_replset resource with auth => true inserts data on the master
Failure/Error: on hosts_as('master'), %{mongosh test --verbose --eval 'load("/root/.mongoshrc.js");db.dummyData.insertOne({"created_by_puppet": 1})'}
Beaker::Host::CommandFailure:
Host 'almalinux8-64-1-puppet7.example.com' exited with 1 running:
mongosh test --verbose --eval 'load("/root/.mongoshrc.js");db.dummyData.insertOne({"created_by_puppet": 1})'
Last 10 lines of output were:
Current Mongosh Log ID: 662439fc8ac97b4d4cc934dc
Connecting to: mongodb://127.0.0.1:27017/test?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.4
Using MongoDB: 7.0.8
Using Mongosh: 2.2.4
For mongosh info see: https://docs.mongodb.com/mongodb-shell/
MongoServerError: not authorized on test to execute command { insert: "dummyData", documents: [ { created_by_puppet: 1, _id: ObjectId('662439fc8ac97b4d4cc934dd') } ], ordered: true, lsid: { id: UUID("a36d66be-cd16-40cb-8dcd-40532d369170") }, txnNumber: 1, $clusterTime: { clusterTime: Timestamp(1713650168, 1), signature: { hash: BinData(0, D4958F8820A8E5CF4ACFA872CF8667131D4B2930), keyId: 7360071342445559813 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
|
Puppet 7 - AlmaLinux 8 - MongoDB 7.0:
spec/acceptance/replset_spec.rb#L243
mongodb_replset resource with auth => true checks the data on the master
Failure/Error:
on hosts_as('master'), %{mongosh test --verbose --eval 'load("/root/.mongoshrc.js");EJSON.stringify(db.dummyData.findOne())'} do |r|
expect(r.stdout).to match %r{created_by_puppet}
end
Beaker::Host::CommandFailure:
Host 'almalinux8-64-1-puppet7.example.com' exited with 1 running:
mongosh test --verbose --eval 'load("/root/.mongoshrc.js");EJSON.stringify(db.dummyData.findOne())'
Last 10 lines of output were:
Current Mongosh Log ID: 662439fcff6d5ee819c934dc
Connecting to: mongodb://127.0.0.1:27017/test?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.4
Using MongoDB: 7.0.8
Using Mongosh: 2.2.4
For mongosh info see: https://docs.mongodb.com/mongodb-shell/
MongoServerError: not authorized on test to execute command { find: "dummyData", filter: {}, limit: 1, lsid: { id: UUID("a1e2d200-dac1-449d-97a0-9bf4fafdf798") }, $clusterTime: { clusterTime: Timestamp(1713650168, 1), signature: { hash: BinData(0, D4958F8820A8E5CF4ACFA872CF8667131D4B2930), keyId: 7360071342445559813 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
|
Puppet 7 - AlmaLinux 8 - MongoDB 7.0:
spec/acceptance/replset_spec.rb#L249
mongodb_replset resource with auth => true checks the data on the slave
Failure/Error:
on hosts_as('slave'), %{mongosh test --verbose --eval 'load("/root/.mongoshrc.js");db.getMongo().setReadPref("primaryPreferred");EJSON.stringify(db.dummyData.findOne())'} do |r|
expect(r.stdout).to match %r{created_by_puppet}
end
Beaker::Host::CommandFailure:
Host 'almalinux8-64-2-puppet7.example.com' exited with 1 running:
mongosh test --verbose --eval 'load("/root/.mongoshrc.js");db.getMongo().setReadPref("primaryPreferred");EJSON.stringify(db.dummyData.findOne())'
Last 10 lines of output were:
Current Mongosh Log ID: 66243a0702b3ac071cc934dc
Connecting to: mongodb://127.0.0.1:27017/test?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.4
Using MongoDB: 7.0.8
Using Mongosh: 2.2.4
For mongosh info see: https://docs.mongodb.com/mongodb-shell/
MongoServerError: not authorized on test to execute command { find: "dummyData", filter: {}, limit: 1, lsid: { id: UUID("a16f0ae3-9a38-414a-8acb-1a63b13bff1c") }, $clusterTime: { clusterTime: Timestamp(1713650178, 1), signature: { hash: BinData(0, C5711201B8A3B92B93DEF16F460B755954581DBC), keyId: 7360071342445559813 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
|
Puppet 7 - AlmaLinux 8 - MongoDB 7.0
Process completed with exit code 1.
|
Puppet 8 - Rocky 8 - MongoDB 4.4:
spec/acceptance/replset_spec.rb#L211
mongodb_replset resource with auth => true sets up the replset with puppet
Failure/Error: apply_manifest_on(hosts_as('master'), pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'rocky8-64-1-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_215719882.pp.tZzSc1
Last 10 lines of output were:
�[mNotice: Compiled catalog for rocky8-64-1-puppet8.example.com in environment production in 0.03 seconds
Info: Using environment 'production'
Info: Applying configuration version '1713650242'
�[mNotice: /Stage[main]/Main/Mongodb_replset[test]/ensure: created
Warning: Host rocky8-64-2-puppet8.example.com:27017 is available, but you are unauthorized because of authentication is enabled: true
Error: /Stage[main]/Main/Mongodb_replset[test]: Could not evaluate: rs.initiate() failed for replicaset test
Warning: User info is available only from master host
�[mNotice: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Dependency Mongodb_replset[test] has failures: true
Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 36.81 seconds
|
Puppet 8 - Rocky 8 - MongoDB 4.4:
spec/acceptance/replset_spec.rb#L239
mongodb_replset resource with auth => true inserts data on the master
Failure/Error: on hosts_as('master'), %{mongosh test --verbose --eval 'load("/root/.mongoshrc.js");db.dummyData.insertOne({"created_by_puppet": 1})'}
Beaker::Host::CommandFailure:
Host 'rocky8-64-1-puppet8.example.com' exited with 1 running:
mongosh test --verbose --eval 'load("/root/.mongoshrc.js");db.dummyData.insertOne({"created_by_puppet": 1})'
Last 10 lines of output were:
Current Mongosh Log ID: 66243a670ef1ce1629c934dc
Connecting to: mongodb://127.0.0.1:27017/test?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.4
Using MongoDB: 4.4.29
Using Mongosh: 2.2.4
For mongosh info see: https://docs.mongodb.com/mongodb-shell/
MongoServerError: not authorized on test to execute command { insert: "dummyData", documents: [ { created_by_puppet: 1, _id: ObjectId('66243a670ef1ce1629c934dd') } ], ordered: true, lsid: { id: UUID("4bd1c898-a561-4149-8d74-985c507f8870") }, txnNumber: 1, $clusterTime: { clusterTime: Timestamp(1713650276, 1), signature: { hash: BinData(0, A3CF6DB38D229A76EB479D72375FCE4E906780AF), keyId: 7360071806302027780 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
|
Puppet 8 - Rocky 8 - MongoDB 4.4:
spec/acceptance/replset_spec.rb#L243
mongodb_replset resource with auth => true checks the data on the master
Failure/Error:
on hosts_as('master'), %{mongosh test --verbose --eval 'load("/root/.mongoshrc.js");EJSON.stringify(db.dummyData.findOne())'} do |r|
expect(r.stdout).to match %r{created_by_puppet}
end
Beaker::Host::CommandFailure:
Host 'rocky8-64-1-puppet8.example.com' exited with 1 running:
mongosh test --verbose --eval 'load("/root/.mongoshrc.js");EJSON.stringify(db.dummyData.findOne())'
Last 10 lines of output were:
Current Mongosh Log ID: 66243a675a4bfb5661c934dc
Connecting to: mongodb://127.0.0.1:27017/test?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.4
Using MongoDB: 4.4.29
Using Mongosh: 2.2.4
For mongosh info see: https://docs.mongodb.com/mongodb-shell/
MongoServerError: not authorized on test to execute command { find: "dummyData", filter: {}, limit: 1, lsid: { id: UUID("166f40c3-e2b6-455b-be66-5f7ab053e799") }, $clusterTime: { clusterTime: Timestamp(1713650276, 1), signature: { hash: BinData(0, A3CF6DB38D229A76EB479D72375FCE4E906780AF), keyId: 7360071806302027780 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
|
Puppet 8 - Rocky 8 - MongoDB 4.4:
spec/acceptance/replset_spec.rb#L249
mongodb_replset resource with auth => true checks the data on the slave
Failure/Error:
on hosts_as('slave'), %{mongosh test --verbose --eval 'load("/root/.mongoshrc.js");db.getMongo().setReadPref("primaryPreferred");EJSON.stringify(db.dummyData.findOne())'} do |r|
expect(r.stdout).to match %r{created_by_puppet}
end
Beaker::Host::CommandFailure:
Host 'rocky8-64-2-puppet8.example.com' exited with 1 running:
mongosh test --verbose --eval 'load("/root/.mongoshrc.js");db.getMongo().setReadPref("primaryPreferred");EJSON.stringify(db.dummyData.findOne())'
Last 10 lines of output were:
Current Mongosh Log ID: 66243a7206a5943da4c934dc
Connecting to: mongodb://127.0.0.1:27017/test?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.4
Using MongoDB: 4.4.29
Using Mongosh: 2.2.4
For mongosh info see: https://docs.mongodb.com/mongodb-shell/
MongoServerError: not authorized on test to execute command { find: "dummyData", filter: {}, limit: 1, lsid: { id: UUID("420d761f-f85c-4ead-af3d-51e0ad186134") }, $clusterTime: { clusterTime: Timestamp(1713650286, 1), signature: { hash: BinData(0, B8483E6D0C2C1FF3FFC3E3EA2573188EF389B5EA), keyId: 7360071806302027780 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
|
Puppet 8 - Rocky 8 - MongoDB 4.4
Process completed with exit code 1.
|
Puppet 8 - Rocky 8 - MongoDB 7.0:
spec/acceptance/replset_spec.rb#L44
mongodb_replset resource sets up the replset with puppet
Failure/Error: apply_manifest_on(hosts_as('master'), pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'rocky8-64-1-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_215311982.pp.dID96e
Last 10 lines of output were:
Info: Loading facts
Info: Loading facts
Info: Loading facts
Info: Loading facts
�[mNotice: Compiled catalog for rocky8-64-1-puppet8.example.com in environment production in 0.02 seconds
Info: Using environment 'production'
Info: Applying configuration version '1713649994'
�[mNotice: /Stage[main]/Main/Mongodb_replset[test]/ensure: created
Error: /Stage[main]/Main/Mongodb_replset[test]: Could not evaluate: rs.initiate() failed for replicaset test
�[mNotice: Applied catalog in 36.22 seconds
|
Puppet 8 - Rocky 8 - MongoDB 7.0:
spec/acceptance/replset_spec.rb#L62
mongodb_replset resource inserts data on the master
Failure/Error: on hosts_as('master'), %{mongosh --verbose --eval 'db.test.insertOne({name:"test1",value:"some value"})'}
Beaker::Host::CommandFailure:
Host 'rocky8-64-1-puppet8.example.com' exited with 1 running:
mongosh --verbose --eval 'db.test.insertOne({name:"test1",value:"some value"})'
Last 10 lines of output were:
To help improve our products, anonymous usage data is collected and sent to MongoDB periodically (https://www.mongodb.com/legal/privacy-policy).
You can opt-out by running the disableTelemetry() command.
------
The server generated these startup warnings when booting
2024-04-20T21:52:57.877+00:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never' in this binary version
------
MongoServerError: not primary
|
Puppet 8 - Rocky 8 - MongoDB 7.0:
spec/acceptance/replset_spec.rb#L66
mongodb_replset resource checks the data on the master
Failure/Error: expect(r.stdout).to match %r{some value}
expected "Current Mongosh Log ID:\t6624396fd8a98f7049c934dc\nConnecting to:\t\tmongodb://127.0.0.1:27017/?dire...page/enabled is 'always'. We suggest setting it to 'never' in this binary version\n------\n\nnull\n" to match /some value/
Diff:
@@ -1,13 +1,25 @@
-/some value/
+Current Mongosh Log ID: 6624396fd8a98f7049c934dc
+Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.4
+Using MongoDB: 7.0.8
+Using Mongosh: 2.2.4
+
+For mongosh info see: https://docs.mongodb.com/mongodb-shell/
+
+------
+ The server generated these startup warnings when booting
+ 2024-04-20T21:52:57.877+00:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never' in this binary version
+------
+
+null
|
Puppet 8 - Rocky 8 - MongoDB 7.0:
spec/acceptance/replset_spec.rb#L72
mongodb_replset resource checks the data on the slave
Failure/Error: expect(r.stdout).to match %r{some value}
expected "Current Mongosh Log ID:\t6624397994176cf0e5c934dc\nConnecting to:\t\tmongodb://127.0.0.1:27017/?dire...page/enabled is 'always'. We suggest setting it to 'never' in this binary version\n------\n\nnull\n" to match /some value/
Diff:
@@ -1,17 +1,33 @@
-/some value/
+Current Mongosh Log ID: 6624397994176cf0e5c934dc
+Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.4
+Using MongoDB: 7.0.8
+Using Mongosh: 2.2.4
+
+For mongosh info see: https://docs.mongodb.com/mongodb-shell/
+
+
+To help improve our products, anonymous usage data is collected and sent to MongoDB periodically (https://www.mongodb.com/legal/privacy-policy).
+You can opt-out by running the disableTelemetry() command.
+
+------
+ The server generated these startup warnings when booting
+ 2024-04-20T21:52:42.965+00:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never' in this binary version
+------
+
+null
|
Puppet 8 - Rocky 8 - MongoDB 7.0
Process completed with exit code 1.
|
Puppet 7 - CentOS 8 - MongoDB 7.0:
spec/acceptance/replset_spec.rb#L211
mongodb_replset resource with auth => true sets up the replset with puppet
Failure/Error: apply_manifest_on(hosts_as('master'), pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'centos8-64-1-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_215737282.pp.Aao0D6
Last 10 lines of output were:
�[mNotice: Compiled catalog for centos8-64-1-puppet7.example.com in environment production in 0.03 seconds
Info: Using environment 'production'
Info: Applying configuration version '1713650259'
�[mNotice: /Stage[main]/Main/Mongodb_replset[test]/ensure: created
Warning: Host centos8-64-2-puppet7.example.com:27017 is available, but you are unauthorized because of authentication is enabled: true
Error: /Stage[main]/Main/Mongodb_replset[test]: Could not evaluate: rs.initiate() failed for replicaset test
Warning: User info is available only from master host
�[mNotice: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Dependency Mongodb_replset[test] has failures: true
Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 36.83 seconds
|
Puppet 7 - CentOS 8 - MongoDB 7.0:
spec/acceptance/replset_spec.rb#L239
mongodb_replset resource with auth => true inserts data on the master
Failure/Error: on hosts_as('master'), %{mongosh test --verbose --eval 'load("/root/.mongoshrc.js");db.dummyData.insertOne({"created_by_puppet": 1})'}
Beaker::Host::CommandFailure:
Host 'centos8-64-1-puppet7.example.com' exited with 1 running:
mongosh test --verbose --eval 'load("/root/.mongoshrc.js");db.dummyData.insertOne({"created_by_puppet": 1})'
Last 10 lines of output were:
Current Mongosh Log ID: 66243a7854847f94b5c934dc
Connecting to: mongodb://127.0.0.1:27017/test?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.4
Using MongoDB: 7.0.8
Using Mongosh: 2.2.4
For mongosh info see: https://docs.mongodb.com/mongodb-shell/
MongoServerError: not authorized on test to execute command { insert: "dummyData", documents: [ { created_by_puppet: 1, _id: ObjectId('66243a7854847f94b5c934dd') } ], ordered: true, lsid: { id: UUID("ff33b479-bc6d-41ad-8276-d306e1292b5b") }, txnNumber: 1, $clusterTime: { clusterTime: Timestamp(1713650292, 1), signature: { hash: BinData(0, 24CC1C093E53D5BDFE9FBCFCF554AAEF5FA8C1C4), keyId: 7360071875021504517 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
|
Puppet 7 - CentOS 8 - MongoDB 7.0:
spec/acceptance/replset_spec.rb#L243
mongodb_replset resource with auth => true checks the data on the master
Failure/Error:
on hosts_as('master'), %{mongosh test --verbose --eval 'load("/root/.mongoshrc.js");EJSON.stringify(db.dummyData.findOne())'} do |r|
expect(r.stdout).to match %r{created_by_puppet}
end
Beaker::Host::CommandFailure:
Host 'centos8-64-1-puppet7.example.com' exited with 1 running:
mongosh test --verbose --eval 'load("/root/.mongoshrc.js");EJSON.stringify(db.dummyData.findOne())'
Last 10 lines of output were:
Current Mongosh Log ID: 66243a793ebe6f2b4dc934dc
Connecting to: mongodb://127.0.0.1:27017/test?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.4
Using MongoDB: 7.0.8
Using Mongosh: 2.2.4
For mongosh info see: https://docs.mongodb.com/mongodb-shell/
MongoServerError: not authorized on test to execute command { find: "dummyData", filter: {}, limit: 1, lsid: { id: UUID("bafad06d-d0dd-46a5-b6a3-afda52cc3cd8") }, $clusterTime: { clusterTime: Timestamp(1713650292, 1), signature: { hash: BinData(0, 24CC1C093E53D5BDFE9FBCFCF554AAEF5FA8C1C4), keyId: 7360071875021504517 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
|
Puppet 7 - CentOS 8 - MongoDB 7.0:
spec/acceptance/replset_spec.rb#L249
mongodb_replset resource with auth => true checks the data on the slave
Failure/Error:
on hosts_as('slave'), %{mongosh test --verbose --eval 'load("/root/.mongoshrc.js");db.getMongo().setReadPref("primaryPreferred");EJSON.stringify(db.dummyData.findOne())'} do |r|
expect(r.stdout).to match %r{created_by_puppet}
end
Beaker::Host::CommandFailure:
Host 'centos8-64-2-puppet7.example.com' exited with 1 running:
mongosh test --verbose --eval 'load("/root/.mongoshrc.js");db.getMongo().setReadPref("primaryPreferred");EJSON.stringify(db.dummyData.findOne())'
Last 10 lines of output were:
Current Mongosh Log ID: 66243a83cf06d0c3b1c934dc
Connecting to: mongodb://127.0.0.1:27017/test?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.4
Using MongoDB: 7.0.8
Using Mongosh: 2.2.4
For mongosh info see: https://docs.mongodb.com/mongodb-shell/
MongoServerError: not authorized on test to execute command { find: "dummyData", filter: {}, limit: 1, lsid: { id: UUID("ef5b826e-9caa-419f-a905-412e29a35a3b") }, $clusterTime: { clusterTime: Timestamp(1713650302, 1), signature: { hash: BinData(0, 4C2517E87F9F33C137853EC20A5BBFDE58783CC0), keyId: 7360071875021504517 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
|
Puppet 7 - CentOS 8 - MongoDB 7.0
Process completed with exit code 1.
|
Puppet 8 - Debian 12 - MongoDB 7.0:
spec/acceptance/replset_spec.rb#L211
mongodb_replset resource with auth => true sets up the replset with puppet
Failure/Error: apply_manifest_on(hosts_as('master'), pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'debian12-64-1-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_215742597.pp.yj6LmA
Last 10 lines of output were:
�[mNotice: Compiled catalog for debian12-64-1-puppet8.example.com in environment production in 0.03 seconds
Info: Using environment 'production'
Info: Applying configuration version '1713650266'
�[mNotice: /Stage[main]/Main/Mongodb_replset[test]/ensure: created
Warning: Host debian12-64-2-puppet8.example.com:27017 is available, but you are unauthorized because of authentication is enabled: true
Error: /Stage[main]/Main/Mongodb_replset[test]: Could not evaluate: rs.initiate() failed for replicaset test
Warning: User info is available only from master host
�[mNotice: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Dependency Mongodb_replset[test] has failures: true
Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 36.84 seconds
|
Puppet 8 - Debian 12 - MongoDB 7.0:
spec/acceptance/replset_spec.rb#L239
mongodb_replset resource with auth => true inserts data on the master
Failure/Error: on hosts_as('master'), %{mongosh test --verbose --eval 'load("/root/.mongoshrc.js");db.dummyData.insertOne({"created_by_puppet": 1})'}
Beaker::Host::CommandFailure:
Host 'debian12-64-1-puppet8.example.com' exited with 1 running:
mongosh test --verbose --eval 'load("/root/.mongoshrc.js");db.dummyData.insertOne({"created_by_puppet": 1})'
Last 10 lines of output were:
Current Mongosh Log ID: 66243a7f964a6910dac934dc
Connecting to: mongodb://127.0.0.1:27017/test?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.4
Using MongoDB: 7.0.8
Using Mongosh: 2.2.4
For mongosh info see: https://docs.mongodb.com/mongodb-shell/
MongoServerError: not authorized on test to execute command { insert: "dummyData", documents: [ { created_by_puppet: 1, _id: ObjectId('66243a7f964a6910dac934dd') } ], ordered: true, lsid: { id: UUID("c132a36d-69d8-46bd-8d84-17d3b9100c0a") }, txnNumber: 1, $clusterTime: { clusterTime: Timestamp(1713650299, 1), signature: { hash: BinData(0, 8BD455383C3F9B63405A75369964F2CFBE654158), keyId: 7360071905086275589 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
|
Puppet 8 - Debian 12 - MongoDB 7.0:
spec/acceptance/replset_spec.rb#L243
mongodb_replset resource with auth => true checks the data on the master
Failure/Error:
on hosts_as('master'), %{mongosh test --verbose --eval 'load("/root/.mongoshrc.js");EJSON.stringify(db.dummyData.findOne())'} do |r|
expect(r.stdout).to match %r{created_by_puppet}
end
Beaker::Host::CommandFailure:
Host 'debian12-64-1-puppet8.example.com' exited with 1 running:
mongosh test --verbose --eval 'load("/root/.mongoshrc.js");EJSON.stringify(db.dummyData.findOne())'
Last 10 lines of output were:
Current Mongosh Log ID: 66243a7f1153b8c225c934dc
Connecting to: mongodb://127.0.0.1:27017/test?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.4
Using MongoDB: 7.0.8
Using Mongosh: 2.2.4
For mongosh info see: https://docs.mongodb.com/mongodb-shell/
MongoServerError: not authorized on test to execute command { find: "dummyData", filter: {}, limit: 1, lsid: { id: UUID("5afbed54-78c5-4aab-b323-8b94459cd7b4") }, $clusterTime: { clusterTime: Timestamp(1713650299, 1), signature: { hash: BinData(0, 8BD455383C3F9B63405A75369964F2CFBE654158), keyId: 7360071905086275589 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
|
Puppet 8 - Debian 12 - MongoDB 7.0:
spec/acceptance/replset_spec.rb#L249
mongodb_replset resource with auth => true checks the data on the slave
Failure/Error:
on hosts_as('slave'), %{mongosh test --verbose --eval 'load("/root/.mongoshrc.js");db.getMongo().setReadPref("primaryPreferred");EJSON.stringify(db.dummyData.findOne())'} do |r|
expect(r.stdout).to match %r{created_by_puppet}
end
Beaker::Host::CommandFailure:
Host 'debian12-64-2-puppet8.example.com' exited with 1 running:
mongosh test --verbose --eval 'load("/root/.mongoshrc.js");db.getMongo().setReadPref("primaryPreferred");EJSON.stringify(db.dummyData.findOne())'
Last 10 lines of output were:
Current Mongosh Log ID: 66243a8a376ceeb305c934dc
Connecting to: mongodb://127.0.0.1:27017/test?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.4
Using MongoDB: 7.0.8
Using Mongosh: 2.2.4
For mongosh info see: https://docs.mongodb.com/mongodb-shell/
MongoServerError: not authorized on test to execute command { find: "dummyData", filter: {}, limit: 1, lsid: { id: UUID("f3937771-a16f-405c-9121-08aae91f8246") }, $clusterTime: { clusterTime: Timestamp(1713650309, 1), signature: { hash: BinData(0, D58B29C8B54DE6CECC0399E4F0ED3FBBBDE416BB), keyId: 7360071905086275589 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
|
Puppet 8 - Debian 12 - MongoDB 7.0
Process completed with exit code 1.
|
Puppet 8 - Ubuntu 22.04 - MongoDB 7.0
Canceling since a higher priority waiting request for '743/merge' exists
|
Puppet 8 - Ubuntu 22.04 - MongoDB 7.0
The operation was canceled.
|
Puppet 8 - Ubuntu 22.04 - MongoDB 6.0
Canceling since a higher priority waiting request for '743/merge' exists
|
Puppet 8 - Ubuntu 22.04 - MongoDB 6.0
The operation was canceled.
|