forked from canonical/postgresql-k8s-operator
-
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
c9a8059
commit fe18064
Showing
318 changed files
with
3,964 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,80 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:862 Model status: | ||
|
||
Model Controller Cloud/Region Version SLA Timestamp | ||
test microk8s-localhost microk8s/localhost 3.1.8 unsupported 01:44:10Z | ||
|
||
App Version Status Scale Charm Channel Rev Address Exposed Message | ||
postgresql-k8s 14.11 active 3 postgresql-k8s 0 10.152.183.34 no | ||
|
||
Unit Workload Agent Address Ports Message | ||
postgresql-k8s/0* active idle 10.1.151.139 Primary | ||
postgresql-k8s/1 active idle 10.1.151.141 | ||
postgresql-k8s/2 active idle 10.1.151.140 | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:868 Juju error logs: | ||
|
||
unit-postgresql-k8s-0: 01:44:05 ERROR unit.postgresql-k8s/0.juju-log Uncaught exception while in charm code: | ||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/./src/charm.py", line 1837, in <module> | ||
main(PostgresqlOperatorCharm, use_juju_for_storage=True) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/main.py", line 548, in main | ||
manager.run() | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/main.py", line 527, in run | ||
self._emit() | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/main.py", line 516, in _emit | ||
_emit_charm_event(self.charm, self.dispatcher.event_name) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/main.py", line 147, in _emit_charm_event | ||
event_to_emit.emit(*args, **kwargs) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/framework.py", line 348, in emit | ||
framework._emit(event) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/framework.py", line 860, in _emit | ||
self._reemit(event_path) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/framework.py", line 950, in _reemit | ||
custom_handler(event) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/tempo_k8s/v1/charm_tracing.py", line 544, in wrapped_function | ||
return callable(*args, **kwargs) # type: ignore | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/./src/charm.py", line 1147, in _on_set_password | ||
self.set_secret(APP_SCOPE, f"{username}-password", password) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/tempo_k8s/v1/charm_tracing.py", line 544, in wrapped_function | ||
return callable(*args, **kwargs) # type: ignore | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/./src/charm.py", line 317, in set_secret | ||
self.peer_relation_data(scope).set_secret(peers.id, secret_key, value) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 519, in wrapper | ||
return f(self, *args, **kwargs) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1860, in set_secret | ||
self.update_relation_data(relation_id, {full_field: value}) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 494, in wrapper | ||
return f(self, *args, **kwargs) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1268, in update_relation_data | ||
return self._update_relation_data(relation, data) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 534, in wrapper | ||
return f(self, *args, **kwargs) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 2090, in _update_relation_data | ||
_, normal_fields = self._process_secret_fields( | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1067, in _process_secret_fields | ||
if group_result := operation(relation, group, secret_fields, *args, **kwargs): | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1391, in _add_or_update_relation_secrets | ||
return self._update_relation_secret(relation, group, secret_fields, data) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 506, in wrapper | ||
return f(self, *args, **kwargs) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1376, in _update_relation_secret | ||
secret.set_content(full_content) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 667, in set_content | ||
self.meta.set_content(content) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/model.py", line 1409, in set_content | ||
self._backend.secret_set(typing.cast(str, self.id), content=content) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/model.py", line 3557, in secret_set | ||
self._run_for_secret('secret-set', *args) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/model.py", line 3515, in _run_for_secret | ||
return self._run(*args, return_output=return_output, use_json=use_json) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/model.py", line 3139, in _run | ||
result = subprocess.run(args, **kwargs) # type: ignore | ||
File "/usr/lib/python3.10/subprocess.py", line 503, in run | ||
with Popen(*popenargs, **kwargs) as process: | ||
File "/usr/lib/python3.10/subprocess.py", line 971, in __init__ | ||
self._execute_child(args, executable, preexec_fn, close_fds, | ||
File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child | ||
raise child_exception_type(errno_num, err_msg, err_filename) | ||
OSError: [Errno 7] Argument list too long: '/var/lib/juju/tools/unit-postgresql-k8s-0/secret-set' | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:947 Forgetting model 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,73 @@ | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
untrusted-postgresql-k8s/0 [executing] maintenance: installing charm software | ||
untrusted-postgresql-k8s/1 [executing] maintenance: installing charm software | ||
untrusted-postgresql-k8s/2 [executing] blocked: Insufficient permissions, try: `juju trust untrusted-postgresql-k8s --scope=cluster` | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
untrusted-postgresql-k8s/0 [idle] unknown: | ||
untrusted-postgresql-k8s/1 [idle] unknown: | ||
untrusted-postgresql-k8s/2 [executing] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
untrusted-postgresql-k8s/0 [idle] unknown: | ||
untrusted-postgresql-k8s/1 [idle] unknown: | ||
untrusted-postgresql-k8s/2 [executing] waiting: awaiting for primary endpoint to be ready | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
untrusted-postgresql-k8s/0 [idle] unknown: | ||
untrusted-postgresql-k8s/1 [idle] unknown: | ||
untrusted-postgresql-k8s/2 [idle] active: Primary | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
untrusted-postgresql-k8s/0 [executing] waiting: awaiting for cluster to start | ||
untrusted-postgresql-k8s/1 [executing] waiting: awaiting for cluster to start | ||
untrusted-postgresql-k8s/2 [idle] active: Primary | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
untrusted-postgresql-k8s/0 [idle] waiting: awaiting for member to start | ||
untrusted-postgresql-k8s/1 [idle] waiting: awaiting for cluster to start | ||
untrusted-postgresql-k8s/2 [idle] active: Primary | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
untrusted-postgresql-k8s/0 [idle] waiting: awaiting for member to start | ||
untrusted-postgresql-k8s/1 [idle] waiting: awaiting for member to start | ||
untrusted-postgresql-k8s/2 [idle] active: Primary | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
untrusted-postgresql-k8s/0 [idle] active: | ||
untrusted-postgresql-k8s/1 [idle] waiting: awaiting for member to start | ||
untrusted-postgresql-k8s/2 [executing] active: Primary | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
untrusted-postgresql-k8s/0 [idle] active: | ||
untrusted-postgresql-k8s/1 [idle] waiting: awaiting for member to start | ||
untrusted-postgresql-k8s/2 [idle] active: Primary | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
untrusted-postgresql-k8s/0 [idle] active: | ||
untrusted-postgresql-k8s/1 [idle] waiting: awaiting for member to start | ||
untrusted-postgresql-k8s/2 [idle] active: Primary | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
untrusted-postgresql-k8s/0 [idle] active: | ||
untrusted-postgresql-k8s/1 [idle] waiting: awaiting for member to start | ||
untrusted-postgresql-k8s/2 [idle] active: Primary | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
untrusted-postgresql-k8s/0 [idle] active: | ||
untrusted-postgresql-k8s/1 [idle] active: | ||
untrusted-postgresql-k8s/2 [idle] active: Primary | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:862 Model status: | ||
|
||
Model Controller Cloud/Region Version SLA Timestamp | ||
test microk8s-localhost microk8s/localhost 3.1.8 unsupported 01:39:55Z | ||
|
||
App Version Status Scale Charm Channel Rev Address Exposed Message | ||
untrusted-postgresql-k8s 14.11 active 3 postgresql-k8s 0 10.152.183.20 no | ||
|
||
Unit Workload Agent Address Ports Message | ||
untrusted-postgresql-k8s/0 active idle 10.1.153.203 | ||
untrusted-postgresql-k8s/1 active idle 10.1.153.204 | ||
untrusted-postgresql-k8s/2* active idle 10.1.153.205 Primary | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:868 Juju error logs: | ||
|
||
unit-untrusted-postgresql-k8s-2: 01:34:08 ERROR unit.untrusted-postgresql-k8s/2.juju-log | ||
Access to k8s cluster resources is not authorized. This happens when RBAC is enabled and the deployed application was not trusted by the juju admin. | ||
To fix this issue, run `juju trust untrusted-postgresql-k8s --scope=cluster` (or remove & re-deploy untrusted-postgresql-k8s with `--trust`) | ||
|
||
unit-untrusted-postgresql-k8s-2: 01:34:09 ERROR unit.untrusted-postgresql-k8s/2.juju-log | ||
Access to k8s cluster resources is not authorized. This happens when RBAC is enabled and the deployed application was not trusted by the juju admin. | ||
To fix this issue, run `juju trust untrusted-postgresql-k8s --scope=cluster` (or remove & re-deploy untrusted-postgresql-k8s with `--trust`) | ||
|
||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:947 Forgetting model 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,64 @@ | ||
[32mINFO [0m juju.model:model.py:2097 Deploying local:jammy/postgresql-k8s-1 | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
second-postgresql-k8s/0 [allocating] waiting: installing agent | ||
second-postgresql-k8s/1 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
second-postgresql-k8s/0 [executing] maintenance: installing charm software | ||
second-postgresql-k8s/1 [executing] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
second-postgresql-k8s/0 [idle] unknown: | ||
second-postgresql-k8s/1 [executing] waiting: awaiting for primary endpoint to be ready | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
second-postgresql-k8s/0 [idle] unknown: | ||
second-postgresql-k8s/1 [executing] waiting: awaiting for primary endpoint to be ready | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
second-postgresql-k8s/0 [idle] unknown: | ||
second-postgresql-k8s/1 [executing] waiting: awaiting for primary endpoint to be ready | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
second-postgresql-k8s/0 [executing] unknown: | ||
second-postgresql-k8s/1 [idle] active: Primary | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
second-postgresql-k8s/0 [executing] unknown: | ||
second-postgresql-k8s/1 [executing] active: Primary | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
second-postgresql-k8s/0 [idle] unknown: | ||
second-postgresql-k8s/1 [executing] active: Primary | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
second-postgresql-k8s/0 [idle] waiting: awaiting for member to start | ||
second-postgresql-k8s/1 [idle] active: Primary | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
second-postgresql-k8s/0 [idle] waiting: awaiting for member to start | ||
second-postgresql-k8s/1 [idle] active: Primary | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
second-postgresql-k8s/0 [idle] waiting: awaiting for member to start | ||
second-postgresql-k8s/1 [idle] active: Primary | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
second-postgresql-k8s/0 [idle] waiting: awaiting for member to start | ||
second-postgresql-k8s/1 [idle] active: Primary | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.1.0.4:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.1.0.4:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.1.0.4:16443/api/v1/namespaces/test/pods/postgresql-k8s-0 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.1.0.4:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:862 Model status: | ||
|
||
Model Controller Cloud/Region Version SLA Timestamp | ||
test microk8s-localhost microk8s/localhost 3.1.8 unsupported 01:48:17Z | ||
|
||
App Version Status Scale Charm Channel Rev Address Exposed Message | ||
postgresql-k8s 14.11 active 3 postgresql-k8s 0 10.152.183.18 no | ||
postgresql-test-app active 1 postgresql-test-app edge 172 10.152.183.242 no received database credentials of the first database | ||
second-postgresql-k8s 14.11 active 2 postgresql-k8s 1 10.152.183.217 no | ||
|
||
Unit Workload Agent Address Ports Message | ||
postgresql-k8s/0 active idle 10.1.139.11 Primary | ||
postgresql-k8s/1 active idle 10.1.139.13 | ||
postgresql-k8s/2* active idle 10.1.139.15 | ||
postgresql-test-app/0* active idle 10.1.139.14 received database credentials of the first database | ||
second-postgresql-k8s/0 active idle 10.1.139.18 | ||
second-postgresql-k8s/1* active idle 10.1.139.19 Primary | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:868 Juju error logs: | ||
|
||
unit-postgresql-k8s-2: 01:39:40 ERROR unit.postgresql-k8s/2.juju-log Cluster upgrade failed, ensure pre-upgrade checks are ran first. | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:947 Forgetting model 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,22 @@ | ||
[33mWARNING [0m juju.model:model.py:1563 relate is deprecated and will be removed. Use integrate instead. | ||
[33mWARNING [0m juju.model:model.py:1563 relate is deprecated and will be removed. Use integrate instead. | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-test-app/0 [idle] active: received database credentials for cluster database | ||
postgresql-test-app/1 [idle] active: received database credentials for cluster database | ||
database/0 [executing] active: | ||
database/1 [executing] active: Primary | ||
database/2 [executing] active: | ||
another-database/0 [executing] active: Primary | ||
another-database/1 [executing] active: | ||
another-database/2 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-test-app/0 [idle] active: received database credentials for cluster2 | ||
postgresql-test-app/1 [idle] active: received database credentials for cluster1 | ||
database/0 [idle] active: | ||
database/1 [idle] active: Primary | ||
database/2 [idle] active: | ||
another-database/0 [idle] active: Primary | ||
another-database/1 [idle] active: | ||
another-database/2 [idle] active: | ||
[32mINFO [0m httpx:_client.py:1773 HTTP Request: GET https://10.1.0.150:16443/api/v1/namespaces/test/services/another-database-primary "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1773 HTTP Request: GET https://10.1.0.150:16443/api/v1/namespaces/test/services/database-primary "HTTP/1.1 200 OK" |
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,23 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:734 Connecting to existing model microk8s-localhost:test on unspecified cloud | ||
[32mINFO [0m juju.model:model.py:2097 Deploying ch:amd64/jammy/postgresql-k8s-281 | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [executing] maintenance: installing charm software | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [executing] unknown: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [idle] unknown: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [idle] unknown: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [idle] waiting: awaiting for cluster to start | ||
[32mINFO [0m integration.ha_tests.test_smoke:test_smoke.py:70 waiting for postgresql | ||
[32mINFO [0m integration.ha_tests.test_smoke:test_smoke.py:76 creating db | ||
[32mINFO [0m integration.ha_tests.test_smoke:test_smoke.py:81 get pvc for postgresql-k8s/0 | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.1.0.148:16443/api/v1/namespaces/test/persistentvolumeclaims "HTTP/1.1 200 OK" | ||
[32mINFO [0m integration.ha_tests.test_smoke:test_smoke.py:86 get pv for postgresql-k8s/0 | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.1.0.148:16443/api/v1/persistentvolumes "HTTP/1.1 200 OK" | ||
[32mINFO [0m integration.ha_tests.test_smoke:test_smoke.py:91 get storage id | ||
[32mINFO [0m integration.ha_tests.test_smoke:test_smoke.py:97 scale to 0 with force | ||
[32mINFO [0m integration.ha_tests.test_smoke:test_smoke.py:101 werifing is storage exists |
Oops, something went wrong.