Fix replset and sharding integration tests #591
Annotations
5 errors
Run tests:
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
|
Run tests:
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
|
Run tests:
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
|
Run tests:
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
|
Run tests
Process completed with exit code 1.
|
Loading