Skip to content

Fix replset and sharding integration tests #579

Fix replset and sharding integration tests

Fix replset and sharding integration tests #579

Triggered via pull request April 17, 2024 09:07
Status Failure
Total duration 23m 14s
Artifacts

ci.yml

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

Annotations

30 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_091530163.pp.B6rzUj 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 '1713345332' �[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: 661f93592eceddcdc4c934dc 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('661f93592eceddcdc4c934dd') } ], ordered: true, lsid: { id: UUID("648ac112-aebc-4f70-ba31-904c6565f9e5") }, txnNumber: 1, $clusterTime: { clusterTime: Timestamp(1713345364, 1), signature: { hash: BinData(0, BC068B7362A178D3B60BDD806972821AB6958B1A), keyId: 7358762219233869829 } }, $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: 661f9359cd6b4efe3ac934dc 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("4df63520-c422-4283-8e45-23d53aaf9dd0") }, $clusterTime: { clusterTime: Timestamp(1713345364, 1), signature: { hash: BinData(0, BC068B7362A178D3B60BDD806972821AB6958B1A), keyId: 7358762219233869829 } }, $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: 661f9364c34cf40c80c934dc 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("413b39a7-a4f7-4ba0-a475-21cd2cf7662b") }, $clusterTime: { clusterTime: Timestamp(1713345374, 1), signature: { hash: BinData(0, DC599B47F42672CE731453793BDAE2318F1C1FB8), keyId: 7358762219233869829 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 7 - AlmaLinux 8 - MongoDB 7.0
Process completed with exit code 1.
Puppet 8 - CentOS 7 - 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 'centos7-64-1-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_091600253.pp.Lhgb5j Last 10 lines of output were: �[mNotice: Compiled catalog for centos7-64-1-puppet8.example.com in environment production in 0.03 seconds Info: Using environment 'production' Info: Applying configuration version '1713345362' �[mNotice: /Stage[main]/Main/Mongodb_replset[test]/ensure: created Warning: Host centos7-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.92 seconds
Puppet 8 - CentOS 7 - 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 'centos7-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: 661f9377287a1aa5b0c934dc 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('661f9378287a1aa5b0c934dd') } ], ordered: true, lsid: { id: UUID("6930c60d-8e91-489e-87b9-57eb5ccd8a70") }, txnNumber: 1, $clusterTime: { clusterTime: Timestamp(1713345395, 1), signature: { hash: BinData(0, 5D08795811D5D945F274B508C48FC39D49ED319B), keyId: 7358762352377856005 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 8 - CentOS 7 - 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 'centos7-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: 661f93782d60077600c934dc 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("08be00c3-0fab-41ef-b371-8fbec2f64d11") }, $clusterTime: { clusterTime: Timestamp(1713345395, 1), signature: { hash: BinData(0, 5D08795811D5D945F274B508C48FC39D49ED319B), keyId: 7358762352377856005 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 8 - CentOS 7 - 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 'centos7-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: 661f93823d19ef4b75c934dc 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("748d1cc1-676d-4eaf-8be0-19ed30fc8f12") }, $clusterTime: { clusterTime: Timestamp(1713345405, 1), signature: { hash: BinData(0, 54BF052EC6F5432D956B9C0C414F36203CD8B24A), keyId: 7358762352377856005 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 8 - CentOS 7 - MongoDB 7.0
Process completed with exit code 1.
Puppet 8 - Rocky 9 - 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 'rocky9-64-1-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_091703381.pp.5arfqB Last 10 lines of output were: �[mNotice: Compiled catalog for rocky9-64-1-puppet8.example.com in environment production in 0.03 seconds Info: Using environment 'production' Info: Applying configuration version '1713345425' �[mNotice: /Stage[main]/Main/Mongodb_replset[test]/ensure: created Warning: Host rocky9-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.95 seconds
Puppet 8 - Rocky 9 - 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 'rocky9-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: 661f93b7ce33b8e810c934dc 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('661f93b7ce33b8e810c934dd') } ], ordered: true, lsid: { id: UUID("5e799da1-135b-4102-ad8b-290733ebc099") }, txnNumber: 1, $clusterTime: { clusterTime: Timestamp(1713345459, 1), signature: { hash: BinData(0, 556CE68CF21E39DE668EDC40C2DFF52AF1C71DDD), keyId: 7358762627255762949 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 8 - Rocky 9 - 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 'rocky9-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: 661f93b7f17d5ae000c934dc 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("81eb9917-c479-42d9-b0ad-f8c742bc955d") }, $clusterTime: { clusterTime: Timestamp(1713345459, 1), signature: { hash: BinData(0, 556CE68CF21E39DE668EDC40C2DFF52AF1C71DDD), keyId: 7358762627255762949 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 8 - Rocky 9 - 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 'rocky9-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: 661f93c1479cbfbdddc934dc 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("70f030ca-36e1-427f-bd29-a424242ee7a4") }, $clusterTime: { clusterTime: Timestamp(1713345469, 1), signature: { hash: BinData(0, 4650C0F57C8BF630DB9051EF7584DB4FD499761E), keyId: 7358762627255762949 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 8 - Rocky 9 - MongoDB 7.0
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_091235489.pp.lqSU41 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 '1713345157' �[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.34 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-17T09:12:20.806+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:\t661f92ab4cbe371050c934dc\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: 661f92ab4cbe371050c934dc +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-17T09:12:20.806+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:\t661f92b51e4c2a049dc934dc\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: 661f92b51e4c2a049dc934dc +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-17T09:12:05.285+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 - Ubuntu 22.04 - 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 'ubuntu2204-64-1-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_091736983.pp.qef894 Last 10 lines of output were: �[mNotice: Compiled catalog for ubuntu2204-64-1-puppet7.example.com in environment production in 0.03 seconds Info: Using environment 'production' Info: Applying configuration version '1713345461' �[mNotice: /Stage[main]/Main/Mongodb_replset[test]/ensure: created Warning: Host ubuntu2204-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.92 seconds
Puppet 7 - Ubuntu 22.04 - 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 'ubuntu2204-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: 661f93dac5bd3dfbd3c934dc 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('661f93dbc5bd3dfbd3c934dd') } ], ordered: true, lsid: { id: UUID("91098570-122f-4a8b-91ff-ede38324458d") }, txnNumber: 1, $clusterTime: { clusterTime: Timestamp(1713345495, 1), signature: { hash: BinData(0, 0366300688BA3AC78F5C49F7DCD1B6668F02C526), keyId: 7358762781874585605 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 7 - Ubuntu 22.04 - 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 'ubuntu2204-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: 661f93db5e85a8b137c934dc 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("ba0519d9-3597-41cf-a69b-be46454ad18d") }, $clusterTime: { clusterTime: Timestamp(1713345495, 1), signature: { hash: BinData(0, 0366300688BA3AC78F5C49F7DCD1B6668F02C526), keyId: 7358762781874585605 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 7 - Ubuntu 22.04 - 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 'ubuntu2204-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: 661f93e503d22e40b4c934dc 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("55789ac0-17a5-4e83-95ba-89d2acdb940e") }, $clusterTime: { clusterTime: Timestamp(1713345505, 1), signature: { hash: BinData(0, 9C0BFE838A4A42DB57F40268E79159FC2C256E45), keyId: 7358762781874585605 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 7 - Ubuntu 22.04 - MongoDB 7.0
Process completed with exit code 1.
Puppet 8 - Ubuntu 20.04 - 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 'ubuntu2004-64-1-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_091938603.pp.bZg7gl Last 10 lines of output were: �[mNotice: Compiled catalog for ubuntu2004-64-1-puppet8.example.com in environment production in 0.03 seconds Info: Using environment 'production' Info: Applying configuration version '1713345583' �[mNotice: /Stage[main]/Main/Mongodb_replset[test]/ensure: created Warning: Host ubuntu2004-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.97 seconds
Puppet 8 - Ubuntu 20.04 - 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 'ubuntu2004-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: 661f9455c4479ee5eac934dc 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('661f9455c4479ee5eac934dd') } ], ordered: true, lsid: { id: UUID("e9f84b0a-ca40-4b82-a66a-aae5228c03d3") }, txnNumber: 1, $clusterTime: { clusterTime: Timestamp(1713345616, 1), signature: { hash: BinData(0, CDC183789316643BD0AA7423776B1980C9F29BC8), keyId: 7358763301565628421 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 8 - Ubuntu 20.04 - 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 'ubuntu2004-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: 661f94557552e0e44fc934dc 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("b84f2e27-c35b-4d8e-a1bf-d75b12f733d8") }, $clusterTime: { clusterTime: Timestamp(1713345616, 1), signature: { hash: BinData(0, CDC183789316643BD0AA7423776B1980C9F29BC8), keyId: 7358763301565628421 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 8 - Ubuntu 20.04 - 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 'ubuntu2004-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: 661f945f8d8e3bf605c934dc 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("aa9e9b30-776f-45fa-8e24-06ccd6298fee") }, $clusterTime: { clusterTime: Timestamp(1713345626, 1), signature: { hash: BinData(0, 448E4A7D9FF43429526EC1992B40C61E09C7829D), keyId: 7358763301565628421 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 8 - Ubuntu 20.04 - MongoDB 7.0
Process completed with exit code 1.