-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3ca386
commit 94a2a9f
Showing
55 changed files
with
914 additions
and
2 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:834 Model status: | ||
|
||
Model Controller Cloud/Region Version SLA Timestamp | ||
test microk8s-localhost microk8s/localhost 3.4.4 unsupported 01:40:33Z | ||
|
||
App Version Status Scale Charm Channel Rev Address Exposed Message | ||
config-server active 1 mongodb-k8s 6/edge 50 10.152.183.210 no Primary | ||
mongos-k8s waiting 1 mongos-k8s 0 10.152.183.252 no installing agent | ||
shard0 active 1 mongodb-k8s 6/edge 50 10.152.183.235 no Primary | ||
|
||
Unit Workload Agent Address Ports Message | ||
config-server/0* active idle 10.1.51.13 Primary | ||
mongos-k8s/0* maintenance executing 10.1.51.8 starting mongos | ||
shard0/0* active idle 10.1.51.14 Primary | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:840 Juju error logs: | ||
|
||
unit-config-server-0: 01:29:18 ERROR unit.config-server/0.juju-log Uncaught exception while in charm code: | ||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-config-server-0/charm/./src/charm.py", line 1555, in <module> | ||
main(MongoDBCharm) | ||
File "/var/lib/juju/agents/unit-config-server-0/charm/venv/ops/main.py", line 551, in main | ||
manager.run() | ||
File "/var/lib/juju/agents/unit-config-server-0/charm/venv/ops/main.py", line 530, in run | ||
self._emit() | ||
File "/var/lib/juju/agents/unit-config-server-0/charm/venv/ops/main.py", line 519, in _emit | ||
_emit_charm_event(self.charm, self.dispatcher.event_name) | ||
File "/var/lib/juju/agents/unit-config-server-0/charm/venv/ops/main.py", line 147, in _emit_charm_event | ||
event_to_emit.emit(*args, **kwargs) | ||
File "/var/lib/juju/agents/unit-config-server-0/charm/venv/ops/framework.py", line 348, in emit | ||
framework._emit(event) | ||
File "/var/lib/juju/agents/unit-config-server-0/charm/venv/ops/framework.py", line 860, in _emit | ||
self._reemit(event_path) | ||
File "/var/lib/juju/agents/unit-config-server-0/charm/venv/ops/framework.py", line 950, in _reemit | ||
custom_handler(event) | ||
File "/var/lib/juju/agents/unit-config-server-0/charm/./src/charm.py", line 551, in _on_mongod_pebble_ready | ||
container.replan() | ||
File "/var/lib/juju/agents/unit-config-server-0/charm/venv/ops/model.py", line 2259, in replan | ||
self._pebble.replan_services() | ||
File "/var/lib/juju/agents/unit-config-server-0/charm/venv/ops/pebble.py", line 2129, in replan_services | ||
return self._services_action('replan', [], timeout, delay) | ||
File "/var/lib/juju/agents/unit-config-server-0/charm/venv/ops/pebble.py", line 2226, in _services_action | ||
raise ChangeError(change.err, change) | ||
ops.pebble.ChangeError: cannot perform the following tasks: | ||
- Start service "mongod" (cannot start service: exited quickly with code 1) | ||
----- Logs from task 1 ----- | ||
2024-08-22T01:29:18Z INFO Most recent service output: | ||
{"t":{"$date":"2024-08-22T01:29:18.958Z"},"s":"I", "c":"CONTROL", "id":5760901, "ctx":"-","msg":"Applied --setParameter options","attr":{"serverParameters":{"processUmask":{"default":63,"value":31}}}} | ||
{"t":{"$date":"2024-08-22T01:29:18.958Z"},"s":"F", "c":"CONTROL", "id":20574, "ctx":"-","msg":"Error during global initialization","attr":{"error":{"code":2,"codeName":"BadValue","errmsg":"Could not open a file for writing at the given auditPath: /var/log/mongodb/audit.log"}}} | ||
2024-08-22T01:29:18Z ERROR cannot start service: exited quickly with code 1 | ||
----- | ||
unit-config-server-0: 01:29:19 ERROR juju.worker.uniter.operation hook "mongod-pebble-ready" (via hook dispatching script: dispatch) failed: exit status 1 | ||
unit-config-server-0: 01:29:19 ERROR juju.worker.uniter pebble poll failed for container "mongod": failed to send pebble-ready event: hook failed | ||
unit-shard0-0: 01:29:20 ERROR unit.shard0/0.juju-log Uncaught exception while in charm code: | ||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-shard0-0/charm/./src/charm.py", line 1555, in <module> | ||
main(MongoDBCharm) | ||
File "/var/lib/juju/agents/unit-shard0-0/charm/venv/ops/main.py", line 551, in main | ||
manager.run() | ||
File "/var/lib/juju/agents/unit-shard0-0/charm/venv/ops/main.py", line 530, in run | ||
self._emit() | ||
File "/var/lib/juju/agents/unit-shard0-0/charm/venv/ops/main.py", line 519, in _emit | ||
_emit_charm_event(self.charm, self.dispatcher.event_name) | ||
File "/var/lib/juju/agents/unit-shard0-0/charm/venv/ops/main.py", line 147, in _emit_charm_event | ||
event_to_emit.emit(*args, **kwargs) | ||
File "/var/lib/juju/agents/unit-shard0-0/charm/venv/ops/framework.py", line 348, in emit | ||
framework._emit(event) | ||
File "/var/lib/juju/agents/unit-shard0-0/charm/venv/ops/framework.py", line 860, in _emit | ||
self._reemit(event_path) | ||
File "/var/lib/juju/agents/unit-shard0-0/charm/venv/ops/framework.py", line 950, in _reemit | ||
custom_handler(event) | ||
File "/var/lib/juju/agents/unit-shard0-0/charm/./src/charm.py", line 551, in _on_mongod_pebble_ready | ||
container.replan() | ||
File "/var/lib/juju/agents/unit-shard0-0/charm/venv/ops/model.py", line 2259, in replan | ||
self._pebble.replan_services() | ||
File "/var/lib/juju/agents/unit-shard0-0/charm/venv/ops/pebble.py", line 2129, in replan_services | ||
return self._services_action('replan', [], timeout, delay) | ||
File "/var/lib/juju/agents/unit-shard0-0/charm/venv/ops/pebble.py", line 2226, in _services_action | ||
raise ChangeError(change.err, change) | ||
ops.pebble.ChangeError: cannot perform the following tasks: | ||
- Start service "mongod" (cannot start service: exited quickly with code 1) | ||
----- Logs from task 1 ----- | ||
2024-08-22T01:29:20Z INFO Most recent service output: | ||
{"t":{"$date":"2024-08-22T01:29:20.762Z"},"s":"I", "c":"CONTROL", "id":5760901, "ctx":"-","msg":"Applied --setParameter options","attr":{"serverParameters":{"processUmask":{"default":63,"value":31}}}} | ||
{"t":{"$date":"2024-08-22T01:29:20.763Z"},"s":"F", "c":"CONTROL", "id":20574, "ctx":"-","msg":"Error during global initialization","attr":{"error":{"code":38,"codeName":"FileNotOpen","errmsg":"Can't initialize rotatable log file :: caused by :: Failed to open /var/log/mongodb/mongodb.log"}}} | ||
2024-08-22T01:29:20Z ERROR cannot start service: exited quickly with code 1 | ||
----- | ||
unit-shard0-0: 01:29:21 ERROR juju.worker.uniter.operation hook "mongod-pebble-ready" (via hook dispatching script: dispatch) failed: exit status 1 | ||
unit-shard0-0: 01:29:21 ERROR juju.worker.uniter pebble poll failed for container "mongod": failed to send pebble-ready event: hook failed | ||
unit-config-server-0: 01:29:59 ERROR unit.config-server/0.juju-log config-server:4: Failed to add shard shard0 to the config server, error=OperationFailure("Authentication failed., full error: {'ok': 0.0, 'errmsg': 'Authentication failed.', 'code': 18, 'codeName': 'AuthenticationFailed', '$clusterTime': {'clusterTime': Timestamp(1724290199, 1), 'signature': {'hash': b'w|\\xe4\\xb5\\xa5\\xa89\\x99\\xc2h\\x1c`\\x01\\x80t@\\xff\\xffAS', 'keyId': 7405769871784411161}}, 'operationTime': Timestamp(1724290199, 1)}") | ||
unit-config-server-0: 01:29:59 ERROR unit.config-server/0.juju-log config-server:4: shard0 shard does not have the same auth as the config server. | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:904 Forgetting main... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
config-server/0 [idle] active: | ||
shard0/0 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
config-server/0 [idle] active: | ||
shard0/0 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
shard0/0 [idle] waiting: Waiting for secrets from config-server | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
config-server/0 [idle] active: | ||
shard0/0 [idle] waiting: Waiting for secrets from config-server | ||
mongos-k8s/0 [idle] blocked: Missing relation to config-server. | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
shard0/0 [idle] waiting: Waiting for secrets from config-server | ||
mongos-k8s/0 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
shard0/0 [idle] waiting: Waiting for secrets from config-server | ||
mongos-k8s/0 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
shard0/0 [idle] waiting: Waiting for secrets from config-server | ||
mongos-k8s/0 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
shard0/0 [idle] waiting: Waiting for secrets from config-server | ||
mongos-k8s/0 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
shard0/0 [idle] waiting: Waiting for secrets from config-server | ||
mongos-k8s/0 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
shard0/0 [idle] waiting: Waiting for secrets from config-server | ||
mongos-k8s/0 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
shard0/0 [idle] waiting: Waiting for secrets from config-server | ||
mongos-k8s/0 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
config-server/0 [idle] active: | ||
shard0/0 [idle] active: Primary | ||
mongos-k8s/0 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] maintenance: starting mongos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:708 Connecting to existing model microk8s-localhost:test on unspecified cloud | ||
[32mINFO [0m juju.model:model.py:2098 Deploying local:jammy/mongos-k8s-0 | ||
[32mINFO [0m juju.model:model.py:2098 Deploying ch:amd64/jammy/mongodb-k8s-50 | ||
[32mINFO [0m juju.model:model.py:2098 Deploying ch:amd64/jammy/mongodb-k8s-50 | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [allocating] waiting: installing agent | ||
shard0/0 [allocating] waiting: installing agent | ||
config-server/0 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
shard0/0 [executing] maintenance: installing charm software | ||
config-server/0 [executing] maintenance: installing charm software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"BROKEN","EPIC","FAILED","FEATURE","PASSED","SKIPPED","STORY","UNKNOWN" | ||
"1","","0","","2","3","","0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"uid":"b1a8273437954620fa374b796ffaacdd","children":[{"name":"test_build_and_deploy","uid":"a7db824f0e840afd","parentUid":"b1a8273437954620fa374b796ffaacdd","status":"passed","time":{"start":1724290123885,"stop":1724290185476,"duration":61591},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":1,"retriesStatusChange":true,"parameters":[],"tags":["asyncio","abort_on_fail","group(1)"]},{"name":"test_waits_for_config_server","uid":"531ff68bba16d2e9","parentUid":"b1a8273437954620fa374b796ffaacdd","status":"passed","time":{"start":1724290185479,"stop":1724290185994,"duration":515},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":1,"retriesStatusChange":true,"parameters":[],"tags":["asyncio","abort_on_fail","group(1)"]},{"name":"test_mongos_starts_with_config_server","uid":"a08a8dd43ae432db","parentUid":"b1a8273437954620fa374b796ffaacdd","status":"broken","time":{"start":1724290185997,"stop":1724290833245,"duration":647248},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":1,"retriesStatusChange":true,"parameters":[],"tags":["asyncio","abort_on_fail","group(1)"]},{"name":"test_mongos_has_user","uid":"5998f6569dbfa11a","parentUid":"b1a8273437954620fa374b796ffaacdd","status":"skipped","time":{"start":1724290833305,"stop":1724290833305,"duration":0},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":1,"retriesStatusChange":true,"parameters":[],"tags":["asyncio","abort_on_fail","group(1)"]},{"name":"test_user_with_extra_roles","uid":"b582719d11b1a823","parentUid":"b1a8273437954620fa374b796ffaacdd","status":"skipped","time":{"start":1724290833308,"stop":1724290833308,"duration":0},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":1,"retriesStatusChange":true,"parameters":[],"tags":["asyncio","abort_on_fail","group(1)"]},{"name":"test_mongos_can_scale","uid":"a9f77c03e4643f76","parentUid":"b1a8273437954620fa374b796ffaacdd","status":"skipped","time":{"start":1724290833311,"stop":1724290833311,"duration":0},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":1,"retriesStatusChange":true,"parameters":[],"tags":["asyncio","abort_on_fail","group(1)"]}],"name":"behaviors"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"BROKEN","CATEGORY","FAILED","PASSED","SKIPPED","UNKNOWN" | ||
"1","Test defects","0","0","0","0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"uid":"4b4757e66a1912dae1a509f688f20b0f","children":[{"name":"Test defects","children":[{"name":"asyncio.exceptions.TimeoutError: Timed out waiting for model:\nmongos-k8s/0 [executing] maintenance: starting mongos","children":[{"name":"test_mongos_starts_with_config_server","uid":"a08a8dd43ae432db","parentUid":"de49957499942a40a9473a33f95bd041","status":"broken","time":{"start":1724290185997,"stop":1724290833245,"duration":647248},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":1,"retriesStatusChange":true,"parameters":[],"tags":["asyncio","abort_on_fail","group(1)"]}],"uid":"de49957499942a40a9473a33f95bd041"}],"uid":"bdbf199525818fae7a8651db9eafe741"}],"name":"categories"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"uid":"83edc06c07f9ae9e47eb6dd1b683e4e2","children":[{"name":"tests.integration.test_charm","children":[{"name":"test_build_and_deploy","uid":"a7db824f0e840afd","parentUid":"58c25672de36d105d8b5663dfd000d1f","status":"passed","time":{"start":1724290123885,"stop":1724290185476,"duration":61591},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":1,"retriesStatusChange":true,"parameters":[],"tags":["asyncio","abort_on_fail","group(1)"]},{"name":"test_waits_for_config_server","uid":"531ff68bba16d2e9","parentUid":"58c25672de36d105d8b5663dfd000d1f","status":"passed","time":{"start":1724290185479,"stop":1724290185994,"duration":515},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":1,"retriesStatusChange":true,"parameters":[],"tags":["asyncio","abort_on_fail","group(1)"]},{"name":"test_mongos_starts_with_config_server","uid":"a08a8dd43ae432db","parentUid":"58c25672de36d105d8b5663dfd000d1f","status":"broken","time":{"start":1724290185997,"stop":1724290833245,"duration":647248},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":1,"retriesStatusChange":true,"parameters":[],"tags":["asyncio","abort_on_fail","group(1)"]},{"name":"test_mongos_has_user","uid":"5998f6569dbfa11a","parentUid":"58c25672de36d105d8b5663dfd000d1f","status":"skipped","time":{"start":1724290833305,"stop":1724290833305,"duration":0},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":1,"retriesStatusChange":true,"parameters":[],"tags":["asyncio","abort_on_fail","group(1)"]},{"name":"test_user_with_extra_roles","uid":"b582719d11b1a823","parentUid":"58c25672de36d105d8b5663dfd000d1f","status":"skipped","time":{"start":1724290833308,"stop":1724290833308,"duration":0},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":1,"retriesStatusChange":true,"parameters":[],"tags":["asyncio","abort_on_fail","group(1)"]},{"name":"test_mongos_can_scale","uid":"a9f77c03e4643f76","parentUid":"58c25672de36d105d8b5663dfd000d1f","status":"skipped","time":{"start":1724290833311,"stop":1724290833311,"duration":0},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":1,"retriesStatusChange":true,"parameters":[],"tags":["asyncio","abort_on_fail","group(1)"]}],"uid":"tests.integration.test_charm"}],"name":"packages"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
"DESCRIPTION","DURATION IN MS","NAME","PARENT SUITE","START TIME","STATUS","STOP TIME","SUB SUITE","SUITE","TEST CLASS","TEST METHOD" | ||
"Tests that mongos powers down when no config server is accessible.","0","test_mongos_can_scale","tests.integration","Thu Aug 22 01:40:33 UTC 2024","skipped","Thu Aug 22 01:40:33 UTC 2024","","test_charm","","" | ||
"","647248","test_mongos_starts_with_config_server","tests.integration","Thu Aug 22 01:29:45 UTC 2024","broken","Thu Aug 22 01:40:33 UTC 2024","","test_charm","","" | ||
"","0","test_mongos_has_user","tests.integration","Thu Aug 22 01:40:33 UTC 2024","skipped","Thu Aug 22 01:40:33 UTC 2024","","test_charm","","" | ||
"","0","test_user_with_extra_roles","tests.integration","Thu Aug 22 01:40:33 UTC 2024","skipped","Thu Aug 22 01:40:33 UTC 2024","","test_charm","","" | ||
"Verifies that the application and unit are active.","515","test_waits_for_config_server","tests.integration","Thu Aug 22 01:29:45 UTC 2024","passed","Thu Aug 22 01:29:45 UTC 2024","","test_charm","","" | ||
"Build and deploy a sharded cluster.","61591","test_build_and_deploy","tests.integration","Thu Aug 22 01:28:43 UTC 2024","passed","Thu Aug 22 01:29:45 UTC 2024","","test_charm","","" |
Oops, something went wrong.