-
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
230e9ef
commit b5e649b
Showing
117 changed files
with
1,773 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,32 @@ | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [idle] active: | ||
mongos-k8s/1 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [idle] active: | ||
mongos-k8s/1 [idle] active: | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:834 Model status: | ||
|
||
Model Controller Cloud/Region Version SLA Timestamp | ||
test microk8s-localhost microk8s/localhost 3.5.3 unsupported 01:44:28Z | ||
|
||
App Version Status Scale Charm Channel Rev Address Exposed Message | ||
config-server active 1 mongodb-k8s 6/edge 61 10.152.183.149 no | ||
mongos-k8s active 2 mongos-k8s 0 10.152.183.118 no | ||
shard0 active 1 mongodb-k8s 6/edge 61 10.152.183.64 no | ||
|
||
Unit Workload Agent Address Ports Message | ||
config-server/0* active idle 10.1.32.141 | ||
mongos-k8s/0* active idle 10.1.32.136 | ||
mongos-k8s/1 active idle 10.1.32.143 | ||
shard0/0* active idle 10.1.32.142 | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:840 Juju error logs: | ||
|
||
unit-config-server-0: 01:39:34 ERROR unit.config-server/0.juju-log config-server:6: 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(1734917974, 2), 'signature': {'hash': b'\\xe3m\\x92\\\\\\x81\\xd0\\x97\\x90\\xe6(yo\\x16\\xe3\\xf1A\\xe7\\xb0\\xac\\x1e', 'keyId': 7451415719054409754}}, 'operationTime': Timestamp(1734917974, 2)}") | ||
unit-config-server-0: 01:39:34 ERROR unit.config-server/0.juju-log config-server:6: shard0 shard does not have the same auth as the config server. | ||
unit-mongos-k8s-0: 01:41:15 ERROR unit.mongos-k8s/0.juju-log cluster:7: mongos service is not ready yet. | ||
unit-mongos-k8s-0: 01:42:18 ERROR unit.mongos-k8s/0.juju-log cluster:7: mongos service is not ready yet. | ||
|
||
[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,10 @@ | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [idle] active: | ||
mongos-k8s/1 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] active: | ||
mongos-k8s/1 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [idle] active: |
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 @@ | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [idle] active: |
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,54 @@ | ||
[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-61 | ||
[32mINFO [0m juju.model:model.py:2098 Deploying ch:amd64/jammy/mongodb-k8s-61 | ||
[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: | ||
mongos-k8s/0 [idle] blocked: Missing relation to config-server. | ||
shard0/0 [allocating] waiting: agent initialising | ||
config-server/0 [allocating] waiting: agent initialising | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
shard0/0 [idle] unknown: | ||
config-server/0 [idle] unknown: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
config-server/0 [idle] unknown: | ||
shard0/0 [idle] unknown: | ||
[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: | ||
config-server/0 [idle] active: | ||
shard0/0 [idle] active: | ||
mongos-k8s/0 [executing] blocked: Missing relation to config-server. | ||
mongos-k8s/1 [executing] blocked: Missing relation to config-server. | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] blocked: Missing relation to config-server. | ||
mongos-k8s/1 [executing] blocked: Missing relation to config-server. | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] blocked: Missing relation to config-server. | ||
mongos-k8s/1 [executing] blocked: Missing relation to config-server. | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
config-server/0 [idle] active: | ||
mongos-k8s/0 [executing] waiting: Connecting to config-server | ||
mongos-k8s/1 [executing] waiting: Connecting to config-server | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] waiting: Connecting to config-server | ||
mongos-k8s/1 [executing] waiting: Connecting to config-server | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
config-server/0 [idle] active: | ||
mongos-k8s/0 [executing] maintenance: starting mongos | ||
mongos-k8s/1 [executing] maintenance: starting mongos | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [idle] active: | ||
mongos-k8s/1 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2098 Deploying ch:amd64/jammy/self-signed-certificates-228 | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
self-signed-certificates/0 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
self-signed-certificates/0 [idle] active: |
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,124 @@ | ||
[32mINFO [0m integration.upgrade_tests.test_rollback:test_rollback.py:65 Wait for upgrade to fail | ||
[32mINFO [0m integration.upgrade_tests.test_rollback:test_rollback.py:77 Re-refresh the charm | ||
[32mINFO [0m integration.upgrade_tests.test_rollback:test_rollback.py:82 Wait for the charm to be rolled back | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [idle] active: MongoDB 6.0.6 running (restart pending); Charm revision 1 | ||
mongos-k8s/1 [idle] active: MongoDB 6.0.6 running (restart pending); Charm revision 1 | ||
mongos-k8s/2 [executing] maintenance: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [idle] active: MongoDB 6.0.6 running (restart pending); Charm revision 1 | ||
mongos-k8s/1 [idle] active: MongoDB 6.0.6 running (restart pending); Charm revision 1 | ||
mongos-k8s/2 [idle] active: MongoDB 6.0.6 running; Charm revision 1 | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [idle] active: MongoDB 6.0.6 running (restart pending); Charm revision 1 | ||
mongos-k8s/1 [executing] active: MongoDB 6.0.6 running; Charm revision 1 | ||
mongos-k8s/2 [idle] active: MongoDB 6.0.6 running; Charm revision 1 | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] maintenance: | ||
mongos-k8s/1 [idle] active: MongoDB 6.0.6 running; Charm revision 1 | ||
mongos-k8s/2 [idle] active: MongoDB 6.0.6 running; Charm revision 1 | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [idle] active: | ||
mongos-k8s/1 [idle] active: | ||
mongos-k8s/2 [idle] active: | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:834 Model status: | ||
|
||
Model Controller Cloud/Region Version SLA Timestamp | ||
test microk8s-localhost microk8s/localhost 3.5.3 unsupported 01:47:25Z | ||
|
||
App Version Status Scale Charm Channel Rev Address Exposed Message | ||
config-server active 1 mongodb-k8s 6/edge 61 10.152.183.213 no | ||
mongos-k8s active 3 mongos-k8s 2 10.152.183.143 no | ||
shard0 active 1 mongodb-k8s 6/edge 61 10.152.183.40 no | ||
|
||
Unit Workload Agent Address Ports Message | ||
config-server/0* active idle 10.1.67.79 Primary | ||
mongos-k8s/0* active idle 10.1.67.84 | ||
mongos-k8s/1 active idle 10.1.67.83 | ||
mongos-k8s/2 active idle 10.1.67.82 | ||
shard0/0* active idle 10.1.67.80 Primary | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:840 Juju error logs: | ||
|
||
unit-config-server-0: 01:40:03 ERROR unit.config-server/0.juju-log config-server:6: 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(1734918002, 2), 'signature': {'hash': b'4\\xc1;\\x1bv\\x19\\x16*x\\x1aG\\x05\\xf7\\xc8\\xb6\\xdfv\\rN\\x18', 'keyId': 7451415839313494041}}, 'operationTime': Timestamp(1734918002, 2)}") | ||
unit-config-server-0: 01:40:03 ERROR unit.config-server/0.juju-log config-server:6: shard0 shard does not have the same auth as the config server. | ||
unit-mongos-k8s-1: 01:41:43 ERROR unit.mongos-k8s/1.juju-log cluster:7: mongos service is not ready yet. | ||
unit-mongos-k8s-2: 01:41:43 ERROR unit.mongos-k8s/2.juju-log cluster:7: mongos service is not ready yet. | ||
unit-mongos-k8s-0: 01:41:43 ERROR unit.mongos-k8s/0.juju-log cluster:7: mongos service is not ready yet. | ||
unit-mongos-k8s-1: 01:42:45 ERROR unit.mongos-k8s/1.juju-log cluster:7: mongos service is not ready yet. | ||
unit-mongos-k8s-0: 01:42:45 ERROR unit.mongos-k8s/0.juju-log cluster:7: mongos service is not ready yet. | ||
unit-mongos-k8s-2: 01:42:45 ERROR unit.mongos-k8s/2.juju-log cluster:7: mongos service is not ready yet. | ||
unit-mongos-k8s-2: 01:42:48 ERROR unit.mongos-k8s/2.juju-log cluster:7: Uncaught exception while in charm code: | ||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-mongos-k8s-2/charm/./src/charm.py", line 977, in <module> | ||
main(MongosCharm) | ||
File "/var/lib/juju/agents/unit-mongos-k8s-2/charm/venv/ops/main.py", line 553, in main | ||
manager.run() | ||
File "/var/lib/juju/agents/unit-mongos-k8s-2/charm/venv/ops/main.py", line 529, in run | ||
self._emit() | ||
File "/var/lib/juju/agents/unit-mongos-k8s-2/charm/venv/ops/main.py", line 518, in _emit | ||
_emit_charm_event(self.charm, self.dispatcher.event_name, self._juju_context) | ||
File "/var/lib/juju/agents/unit-mongos-k8s-2/charm/venv/ops/main.py", line 139, in _emit_charm_event | ||
event_to_emit.emit(*args, **kwargs) | ||
File "/var/lib/juju/agents/unit-mongos-k8s-2/charm/venv/ops/framework.py", line 347, in emit | ||
framework._emit(event) | ||
File "/var/lib/juju/agents/unit-mongos-k8s-2/charm/venv/ops/framework.py", line 853, in _emit | ||
self._reemit(event_path) | ||
File "/var/lib/juju/agents/unit-mongos-k8s-2/charm/venv/ops/framework.py", line 943, in _reemit | ||
custom_handler(event) | ||
File "/var/lib/juju/agents/unit-mongos-k8s-2/charm/lib/charms/mongodb/v0/config_server_interface.py", line 346, in _on_relation_changed | ||
self._update_k8s_users(event) | ||
File "/var/lib/juju/agents/unit-mongos-k8s-2/charm/lib/charms/mongodb/v0/config_server_interface.py", line 354, in _update_k8s_users | ||
self.charm.client_relations.oversee_users(None, None) | ||
File "/var/lib/juju/agents/unit-mongos-k8s-2/charm/lib/charms/mongodb/v1/mongodb_provider.py", line 197, in oversee_users | ||
with MongoConnection(self.charm.mongo_config) as mongo: | ||
File "/var/lib/juju/agents/unit-mongos-k8s-2/charm/lib/charms/mongodb/v0/mongo.py", line 174, in __init__ | ||
uri = config.uri | ||
File "/var/lib/juju/agents/unit-mongos-k8s-2/charm/lib/charms/mongodb/v0/mongo.py", line 121, in uri | ||
f"mongodb://{quote_plus(self.username)}:" | ||
File "/usr/lib/python3.10/urllib/parse.py", line 897, in quote_plus | ||
string = quote(string, safe + space, encoding, errors) | ||
File "/usr/lib/python3.10/urllib/parse.py", line 881, in quote | ||
return quote_from_bytes(string, safe) | ||
File "/usr/lib/python3.10/urllib/parse.py", line 906, in quote_from_bytes | ||
raise TypeError("quote_from_bytes() expected bytes") | ||
TypeError: quote_from_bytes() expected bytes | ||
unit-mongos-k8s-2: 01:42:48 ERROR juju.worker.uniter.operation hook "cluster-relation-changed" (via hook dispatching script: dispatch) failed: exit status 1 | ||
unit-mongos-k8s-1: 01:42:52 ERROR unit.mongos-k8s/1.juju-log cluster:7: Uncaught exception while in charm code: | ||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-mongos-k8s-1/charm/./src/charm.py", line 977, in <module> | ||
main(MongosCharm) | ||
File "/var/lib/juju/agents/unit-mongos-k8s-1/charm/venv/ops/main.py", line 553, in main | ||
manager.run() | ||
File "/var/lib/juju/agents/unit-mongos-k8s-1/charm/venv/ops/main.py", line 529, in run | ||
self._emit() | ||
File "/var/lib/juju/agents/unit-mongos-k8s-1/charm/venv/ops/main.py", line 518, in _emit | ||
_emit_charm_event(self.charm, self.dispatcher.event_name, self._juju_context) | ||
File "/var/lib/juju/agents/unit-mongos-k8s-1/charm/venv/ops/main.py", line 139, in _emit_charm_event | ||
event_to_emit.emit(*args, **kwargs) | ||
File "/var/lib/juju/agents/unit-mongos-k8s-1/charm/venv/ops/framework.py", line 347, in emit | ||
framework._emit(event) | ||
File "/var/lib/juju/agents/unit-mongos-k8s-1/charm/venv/ops/framework.py", line 853, in _emit | ||
self._reemit(event_path) | ||
File "/var/lib/juju/agents/unit-mongos-k8s-1/charm/venv/ops/framework.py", line 943, in _reemit | ||
custom_handler(event) | ||
File "/var/lib/juju/agents/unit-mongos-k8s-1/charm/lib/charms/mongodb/v0/config_server_interface.py", line 346, in _on_relation_changed | ||
self._update_k8s_users(event) | ||
File "/var/lib/juju/agents/unit-mongos-k8s-1/charm/lib/charms/mongodb/v0/config_server_interface.py", line 354, in _update_k8s_users | ||
self.charm.client_relations.oversee_users(None, None) | ||
File "/var/lib/juju/agents/unit-mongos-k8s-1/charm/lib/charms/mongodb/v1/mongodb_provider.py", line 197, in oversee_users | ||
with MongoConnection(self.charm.mongo_config) as mongo: | ||
File "/var/lib/juju/agents/unit-mongos-k8s-1/charm/lib/charms/mongodb/v0/mongo.py", line 174, in __init__ | ||
uri = config.uri | ||
File "/var/lib/juju/agents/unit-mongos-k8s-1/charm/lib/charms/mongodb/v0/mongo.py", line 121, in uri | ||
f"mongodb://{quote_plus(self.username)}:" | ||
File "/usr/lib/python3.10/urllib/parse.py", line 897, in quote_plus | ||
string = quote(string, safe + space, encoding, errors) | ||
File "/usr/lib/python3.10/urllib/parse.py", line 881, in quote | ||
return quote_from_bytes(string, safe) | ||
File "/usr/lib/python3.10/urllib/parse.py", line 906, in quote_from_bytes | ||
raise TypeError("quote_from_bytes() expected bytes") | ||
TypeError: quote_from_bytes() expected bytes | ||
unit-mongos-k8s-1: 01:42:53 ERROR juju.worker.uniter.operation hook "cluster-relation-changed" (via hook dispatching script: dispatch) failed: exit status 1 | ||
|
||
[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,24 @@ | ||
[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: | ||
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: | ||
mongos-k8s/0 [executing] blocked: Missing relation to config-server. | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] blocked: Missing relation to config-server. | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] blocked: Missing relation to config-server. | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] waiting: Connecting to config-server | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
mongos-k8s/0 [executing] waiting: Connecting to config-server | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
config-server/0 [idle] active: | ||
mongos-k8s/0 [executing] maintenance: starting mongos |
Oops, something went wrong.