Skip to content

Fix replset and sharding integration tests #591

Fix replset and sharding integration tests

Fix replset and sharding integration tests #591

Triggered via pull request April 20, 2024 22:18
Status Failure
Total duration 33m 13s
Artifacts

ci.yml

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

Annotations

35 errors
Puppet 8 - AlmaLinux 8 - MongoDB 4.4: spec/acceptance/replset_spec.rb#L212
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-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_222549832.pp.qkNgdm Last 10 lines of output were: �[mNotice: Compiled catalog for almalinux8-64-1-puppet8.example.com in environment production in 0.03 seconds Info: Using environment 'production' Info: Applying configuration version '1713651952' �[mNotice: /Stage[main]/Main/Mongodb_replset[test]/ensure: created Warning: Host almalinux8-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.99 seconds
Puppet 8 - AlmaLinux 8 - MongoDB 4.4: spec/acceptance/replset_spec.rb#L241
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-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: 66244115ed9b7b4bf6c934dc 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('66244115ed9b7b4bf6c934dd') } ], ordered: true, lsid: { id: UUID("97ce547e-b3a2-4c82-a78e-48277d2ff81a") }, txnNumber: 1, $clusterTime: { clusterTime: Timestamp(1713651986, 1), signature: { hash: BinData(0, 74EF632C4296C4135CB09737D19945E36762A7A5), keyId: 7360079150696103940 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 8 - AlmaLinux 8 - MongoDB 4.4: spec/acceptance/replset_spec.rb#L245
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-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: 6624411661ab23aa9cc934dc 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("f57296fa-cbd0-4e8a-8871-b390e451d01f") }, $clusterTime: { clusterTime: Timestamp(1713651986, 1), signature: { hash: BinData(0, 74EF632C4296C4135CB09737D19945E36762A7A5), keyId: 7360079150696103940 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 8 - AlmaLinux 8 - MongoDB 4.4: spec/acceptance/replset_spec.rb#L251
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-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: 6624412049ebb70922c934dc 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("b3b69382-5271-40ea-a17a-16eeed1b3c13") }, $clusterTime: { clusterTime: Timestamp(1713651996, 1), signature: { hash: BinData(0, BC5239B7B479246D74F5DA82AB3F66A0A7C63FA9), keyId: 7360079150696103940 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 8 - AlmaLinux 8 - MongoDB 4.4
Process completed with exit code 1.
Puppet 7 - AlmaLinux 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 'almalinux8-64-1-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_222229776.pp.5fCKTg Last 10 lines of output were: Info: Loading facts Info: Loading facts Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for almalinux8-64-1-puppet7.example.com in environment production in 0.01 seconds Info: Using environment 'production' Info: Applying configuration version '1713651751' �[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.11 seconds
Puppet 7 - AlmaLinux 8 - MongoDB 7.0: spec/acceptance/replset_spec.rb#L63
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 'almalinux8-64-1-puppet7.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-20T22:22:05.917+00:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never' in this binary version ------ MongoServerError: not primary
Puppet 7 - AlmaLinux 8 - MongoDB 7.0: spec/acceptance/replset_spec.rb#L67
mongodb_replset resource checks the data on the master Failure/Error: expect(r.stdout).to match %r{some value} expected "Current Mongosh Log ID:\t6624404c2a75840f0fc934dc\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: 6624404c2a75840f0fc934dc +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-20T22:22:05.917+00:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never' in this binary version +------ + +null
Puppet 7 - AlmaLinux 8 - MongoDB 7.0: spec/acceptance/replset_spec.rb#L73
mongodb_replset resource checks the data on the slave Failure/Error: expect(r.stdout).to match %r{some value} expected "Current Mongosh Log ID:\t6624405740c7ec532ec934dc\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: 6624405740c7ec532ec934dc +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-20T22:21:51.088+00:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never' in this binary version +------ + +null
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#L212
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_222718474.pp.lneCpM 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 '1713652040' �[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.85 seconds
Puppet 8 - CentOS 7 - MongoDB 7.0: spec/acceptance/replset_spec.rb#L241
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: 6624416e9808ca3828c934dc 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('6624416e9808ca3828c934dd') } ], ordered: true, lsid: { id: UUID("9b3d8c44-b5d3-4449-9bc8-fa0f94afc974") }, txnNumber: 1, $clusterTime: { clusterTime: Timestamp(1713652074, 1), signature: { hash: BinData(0, 30583F46C344C685F0F2F5AD1FE1070F8BB9DEAE), keyId: 7360079528653225989 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 8 - CentOS 7 - MongoDB 7.0: spec/acceptance/replset_spec.rb#L245
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: 6624416e366bdc9ed7c934dc 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("778162d7-9b91-479a-b32e-9c53efe6f8da") }, $clusterTime: { clusterTime: Timestamp(1713652074, 1), signature: { hash: BinData(0, 30583F46C344C685F0F2F5AD1FE1070F8BB9DEAE), keyId: 7360079528653225989 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 8 - CentOS 7 - MongoDB 7.0: spec/acceptance/replset_spec.rb#L251
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: 662441786720c0a75bc934dc 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("a1c08440-2383-4886-bd55-e16267ddb3e6") }, $clusterTime: { clusterTime: Timestamp(1713652084, 1), signature: { hash: BinData(0, 2F172E3A483C420BC3CDDB237555B263435077F2), keyId: 7360079528653225989 } }, $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#L212
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_222924296.pp.H36ivM 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 '1713652166' �[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.83 seconds
Puppet 8 - Rocky 9 - MongoDB 7.0: spec/acceptance/replset_spec.rb#L241
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: 662441eb7d786eea6ac934dc 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('662441ec7d786eea6ac934dd') } ], ordered: true, lsid: { id: UUID("c8a72073-3c95-4067-a7fb-3c92b42afe17") }, txnNumber: 1, $clusterTime: { clusterTime: Timestamp(1713652199, 1), signature: { hash: BinData(0, 9D7DE6080B46E553692D3DFDE5FC14A2A570D116), keyId: 7360080065524137989 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 8 - Rocky 9 - MongoDB 7.0: spec/acceptance/replset_spec.rb#L245
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: 662441ecc80ccb7fe5c934dc 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("d1be19f9-16e1-4dfb-b195-08976a69e1a2") }, $clusterTime: { clusterTime: Timestamp(1713652199, 1), signature: { hash: BinData(0, 9D7DE6080B46E553692D3DFDE5FC14A2A570D116), keyId: 7360080065524137989 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 8 - Rocky 9 - MongoDB 7.0: spec/acceptance/replset_spec.rb#L251
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: 662441f6cabfa4f5eec934dc 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("f1cfc258-19c6-463f-a6d4-d593848583b5") }, $clusterTime: { clusterTime: Timestamp(1713652209, 1), signature: { hash: BinData(0, 06E49CDCDED0DE533ABF51E34704472BE04A89E4), keyId: 7360080065524137989 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 8 - Rocky 9 - MongoDB 7.0
Process completed with exit code 1.
Puppet 8 - Debian 12 - 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 'debian12-64-1-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_222417615.pp.EUWOsu Last 10 lines of output were: Info: Loading facts Info: Loading facts Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for debian12-64-1-puppet8.example.com in environment production in 0.02 seconds Info: Using environment 'production' Info: Applying configuration version '1713651861' �[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.11 seconds
Puppet 8 - Debian 12 - MongoDB 7.0: spec/acceptance/replset_spec.rb#L63
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 'debian12-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-20T22:23:50.421+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 - Debian 12 - MongoDB 7.0: spec/acceptance/replset_spec.rb#L67
mongodb_replset resource checks the data on the master Failure/Error: expect(r.stdout).to match %r{some value} expected "Current Mongosh Log ID:\t662440b9a49bc35957c934dc\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: 662440b9a49bc35957c934dc +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-20T22:23:50.421+00:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never' in this binary version +------ + +null
Puppet 8 - Debian 12 - MongoDB 7.0: spec/acceptance/replset_spec.rb#L73
mongodb_replset resource checks the data on the slave Failure/Error: expect(r.stdout).to match %r{some value} expected "Current Mongosh Log ID:\t662440c465b5e51febc934dc\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: 662440c465b5e51febc934dc +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-20T22:23:39.951+00:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never' in this binary version +------ + +null
Puppet 8 - Debian 12 - MongoDB 7.0
Process completed with exit code 1.
Puppet 7 - Ubuntu 22.04 - 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 'ubuntu2204-64-1-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_222331740.pp.0QbgNU Last 10 lines of output were: Info: Loading facts Info: Loading facts Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for ubuntu2204-64-1-puppet7.example.com in environment production in 0.02 seconds Info: Using environment 'production' Info: Applying configuration version '1713651816' �[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.15 seconds
Puppet 7 - Ubuntu 22.04 - MongoDB 7.0: spec/acceptance/replset_spec.rb#L63
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 'ubuntu2204-64-1-puppet7.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-20T22:22:59.904+00:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never' in this binary version ------ MongoServerError: not primary
Puppet 7 - Ubuntu 22.04 - MongoDB 7.0: spec/acceptance/replset_spec.rb#L67
mongodb_replset resource checks the data on the master Failure/Error: expect(r.stdout).to match %r{some value} expected "Current Mongosh Log ID:\t6624408d49bd44b20ac934dc\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: 6624408d49bd44b20ac934dc +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-20T22:22:59.904+00:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never' in this binary version +------ + +null
Puppet 7 - Ubuntu 22.04 - MongoDB 7.0: spec/acceptance/replset_spec.rb#L73
mongodb_replset resource checks the data on the slave Failure/Error: expect(r.stdout).to match %r{some value} expected "Current Mongosh Log ID:\t66244097cf7aaaa3c8c934dc\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: 66244097cf7aaaa3c8c934dc +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-20T22:22:41.928+00:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never' in this binary version +------ + +null
Puppet 7 - Ubuntu 22.04 - MongoDB 7.0
Process completed with exit code 1.
Puppet 7 - Ubuntu 20.04 - MongoDB 7.0: spec/acceptance/replset_spec.rb#L212
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-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_222938345.pp.llxOjU Last 10 lines of output were: �[mNotice: Compiled catalog for ubuntu2004-64-1-puppet7.example.com in environment production in 0.03 seconds Info: Using environment 'production' Info: Applying configuration version '1713652183' �[mNotice: /Stage[main]/Main/Mongodb_replset[test]/ensure: created Warning: Host ubuntu2004-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.86 seconds
Puppet 7 - Ubuntu 20.04 - MongoDB 7.0: spec/acceptance/replset_spec.rb#L241
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-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: 662441fcedc778c0d6c934dc 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('662441fcedc778c0d6c934dd') } ], ordered: true, lsid: { id: UUID("21f27269-0fc3-48cb-a377-0d2ffe5f18de") }, txnNumber: 1, $clusterTime: { clusterTime: Timestamp(1713652216, 1), signature: { hash: BinData(0, 088BD3192F94D4B420B775A5B79FB5202E0658C6), keyId: 7360080138538582021 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 7 - Ubuntu 20.04 - MongoDB 7.0: spec/acceptance/replset_spec.rb#L245
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-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: 662441fd3740e2ca16c934dc 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("c8241048-4d61-4a46-a79e-89a8bef64d4e") }, $clusterTime: { clusterTime: Timestamp(1713652216, 1), signature: { hash: BinData(0, 088BD3192F94D4B420B775A5B79FB5202E0658C6), keyId: 7360080138538582021 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 7 - Ubuntu 20.04 - MongoDB 7.0: spec/acceptance/replset_spec.rb#L251
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-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: 66244207167e053015c934dc 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("dff54e19-1b7c-42a0-a39e-8114c3130e2d") }, $clusterTime: { clusterTime: Timestamp(1713652226, 1), signature: { hash: BinData(0, AF6C0591F3AD4066F75A5164C7164DE247B214FA), keyId: 7360080138538582021 } }, $readPreference: { mode: "primaryPreferred" }, $db: "test" }
Puppet 7 - Ubuntu 20.04 - MongoDB 7.0
Process completed with exit code 1.