generated from canonical/template-operator
-
Notifications
You must be signed in to change notification settings - Fork 5
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
61632e3
commit 0e5c5a4
Showing
195 changed files
with
2,890 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,4 @@ | ||
[32mINFO [0m integration.test_upgrade_from_stable:test_upgrade_from_stable.py:89 Get leader unit | ||
[32mINFO [0m integration.test_upgrade_from_stable:test_upgrade_from_stable.py:95 Run pre-upgrade-check action | ||
[32mINFO [0m integration.test_upgrade_from_stable:test_upgrade_from_stable.py:99 Assert partition is set to 2 | ||
[32mINFO [0m httpx:_client.py:1038 HTTP Request: GET https://10.1.0.190:16443/apis/apps/v1/namespaces/test/statefulsets/pgbouncer-k8s "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,91 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:903 Model status: | ||
|
||
Model Controller Cloud/Region Version SLA Timestamp | ||
test microk8s-localhost microk8s/localhost 3.4.6 unsupported 01:50:36Z | ||
|
||
App Version Status Scale Charm Channel Rev Address Exposed Message | ||
data-integrator active 1 data-integrator latest/edge 72 10.152.183.133 no | ||
pgbouncer-k8s 1.21.0 active 1 pgbouncer-k8s 0 10.152.183.239 no | ||
postgresql-k8s 14.13 active 3 postgresql-k8s 14/edge 427 10.152.183.230 no | ||
postgresql-test-app active 1 postgresql-test-app latest/edge 271 10.152.183.73 no received database credentials of the first database | ||
postgresql-test-app2 active 1 postgresql-test-app latest/edge 271 10.152.183.158 no received database credentials of the first database | ||
self-signed-certificates active 1 self-signed-certificates latest/stable 155 10.152.183.115 no | ||
|
||
Unit Workload Agent Address Ports Message | ||
data-integrator/0* active idle 10.1.53.9 | ||
pgbouncer-k8s/0* active idle 10.1.53.8 | ||
postgresql-k8s/0* active idle 10.1.53.16 Primary | ||
postgresql-k8s/1 active idle 10.1.53.17 | ||
postgresql-k8s/2 active idle 10.1.53.18 | ||
postgresql-test-app2/0* active idle 10.1.53.14 received database credentials of the first database | ||
postgresql-test-app/0* active idle 10.1.53.10 received database credentials of the first database | ||
self-signed-certificates/0* active idle 10.1.53.15 | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:909 Juju error logs: | ||
|
||
unit-postgresql-k8s-2: 01:47:07 ERROR unit.postgresql-k8s/2.juju-log Uncaught exception while in charm code: | ||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/venv/websocket/_socket.py", line 118, in recv | ||
bytes_ = _recv() | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/venv/websocket/_socket.py", line 97, in _recv | ||
return sock.recv(bufsize) | ||
TimeoutError: timed out | ||
|
||
During handling of the above exception, another exception occurred: | ||
|
||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/venv/ops/pebble.py", line 2906, in exec | ||
control_ws = self._connect_websocket(task_id, 'control') | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/venv/ops/pebble.py", line 2994, in _connect_websocket | ||
ws.connect(url, socket=sock) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/venv/websocket/_core.py", line 261, in connect | ||
self.handshake_response = handshake(self.sock, url, *addrs, **options) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/venv/websocket/_handshake.py", line 65, in handshake | ||
status, resp = _get_resp_headers(sock) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/venv/websocket/_handshake.py", line 141, in _get_resp_headers | ||
status, resp_headers, status_message = read_headers(sock) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/venv/websocket/_http.py", line 351, in read_headers | ||
line = recv_line(sock) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/venv/websocket/_socket.py", line 140, in recv_line | ||
c = recv(sock, 1) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/venv/websocket/_socket.py", line 120, in recv | ||
raise WebSocketTimeoutException("Connection timed out") | ||
websocket._exceptions.WebSocketTimeoutException: Connection timed out | ||
|
||
The above exception was the direct cause of the following exception: | ||
|
||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/./src/charm.py", line 2211, in <module> | ||
main(PostgresqlOperatorCharm, use_juju_for_storage=True) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/venv/ops/__init__.py", line 343, in __call__ | ||
return _main.main(charm_class=charm_class, use_juju_for_storage=use_juju_for_storage) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/venv/ops/_main.py", line 543, in main | ||
manager.run() | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/venv/ops/_main.py", line 529, in run | ||
self._emit() | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/venv/ops/_main.py", line 515, in _emit | ||
self.framework.reemit() | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/venv/ops/framework.py", line 867, in reemit | ||
self._reemit() | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/venv/ops/framework.py", line 947, in _reemit | ||
custom_handler(event) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/lib/charms/tempo_coordinator_k8s/v0/charm_tracing.py", line 734, in wrapped_function | ||
return callable(*args, **kwargs) # type: ignore | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/./src/charm.py", line 933, in _on_postgresql_pebble_ready | ||
self.push_tls_files_to_workload(container) | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/lib/charms/tempo_coordinator_k8s/v0/charm_tracing.py", line 734, in wrapped_function | ||
return callable(*args, **kwargs) # type: ignore | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/./src/charm.py", line 1740, in push_tls_files_to_workload | ||
container.exec(["update-ca-certificates"]).wait() | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/venv/ops/model.py", line 2996, in exec | ||
return self._pebble.exec( | ||
File "/var/lib/juju/agents/unit-postgresql-k8s-2/charm/venv/ops/pebble.py", line 2915, in exec | ||
raise ChangeError(change.err, change) from e | ||
ops.pebble.ChangeError: cannot perform the following tasks: | ||
- exec command "update-ca-certificates" (exec 76: timeout waiting for websocket connections: context deadline exceeded) | ||
----- Logs from task 0 ----- | ||
2024-10-23T01:47:07Z ERROR exec 76: timeout waiting for websocket connections: context deadline exceeded | ||
----- | ||
unit-postgresql-k8s-2: 01:47:07 ERROR juju.worker.uniter.operation hook "secret-changed" (via hook dispatching script: dispatch) failed: exit status 1 | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:991 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,34 @@ | ||
[32mINFO [0m juju.model:model.py:2098 Deploying local:jammy/pgbouncer-k8s-1 | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s-secondary/0 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s-secondary/0 [executing] maintenance: installing charm software | ||
[33mWARNING [0m juju.model:model.py:1564 relate is deprecated and will be removed. Use integrate instead. | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-test-app/0 [idle] active: received database credentials of the second database | ||
postgresql-k8s/0 [executing] active: | ||
postgresql-k8s/1 [executing] active: Primary | ||
pgbouncer-k8s/0 [idle] active: | ||
pgbouncer-k8s/1 [idle] active: | ||
pgbouncer-k8s-secondary/0 [executing] blocked: waiting for backend database relation to initialise | ||
[33mWARNING [0m juju.model:model.py:1564 relate is deprecated and will be removed. Use integrate instead. | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-test-app/0 [idle] active: received database credentials of the second database | ||
postgresql-k8s/0 [idle] active: | ||
postgresql-k8s/1 [idle] active: Primary | ||
pgbouncer-k8s/0 [idle] active: | ||
pgbouncer-k8s/1 [idle] active: | ||
secondary-application/0 [executing] active: received database credentials of the first database | ||
finos-waltz-k8s/0 [idle] active: | ||
pgbouncer-k8s-secondary/0 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [idle] active: | ||
pgbouncer-k8s/1 [idle] active: | ||
[32mINFO [0m root:helpers.py:121 running query: | ||
DROP TABLE IF EXISTS check_multiple_pgb_connected_to_one_postgres;CREATE TABLE check_multiple_pgb_connected_to_one_postgres(data TEXT);INSERT INTO check_multiple_pgb_connected_to_one_postgres(data) VALUES('some data');SELECT data FROM check_multiple_pgb_connected_to_one_postgres; | ||
[32mINFO [0m root:helpers.py:122 {'dbname': 'secondary_application_second_database', 'query': "DROP TABLE IF EXISTS check_multiple_pgb_connected_to_one_postgres;CREATE TABLE check_multiple_pgb_connected_to_one_postgres(data TEXT);INSERT INTO check_multiple_pgb_connected_to_one_postgres(data) VALUES('some data');SELECT data FROM check_multiple_pgb_connected_to_one_postgres;", 'relation-name': 'second-database', 'readonly': False} | ||
[32mINFO [0m root:helpers.py:125 query results: {'results': '[["some data"]]', 'return-code': 0} | ||
[32mINFO [0m root:helpers.py:121 running query: | ||
DROP TABLE IF EXISTS smoke_test;CREATE TABLE smoke_test(data TEXT);INSERT INTO smoke_test(data) VALUES('some data');SELECT data FROM smoke_test; | ||
[32mINFO [0m root:helpers.py:122 {'dbname': 'postgresql_test_app_database', 'query': "DROP TABLE IF EXISTS smoke_test;CREATE TABLE smoke_test(data TEXT);INSERT INTO smoke_test(data) VALUES('some data');SELECT data FROM smoke_test;", 'relation-name': 'database', 'readonly': False} | ||
[32mINFO [0m root:helpers.py:125 query results: {'results': '[["some data"]]', 'return-code': 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,6 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:766 Connecting to existing model microk8s-localhost:test on unspecified cloud | ||
[32mINFO [0m juju.model:model.py:2098 Deploying local:jammy/pgbouncer-k8s-0 | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [idle] blocked: waiting for backend database relation to initialise |
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,9 @@ | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-test-app/0 [executing] active: received database credentials of the second database | ||
postgresql-k8s/0 [idle] active: | ||
postgresql-k8s/1 [idle] active: Primary | ||
pgbouncer-k8s/0 [executing] active: | ||
pgbouncer-k8s/1 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [idle] active: | ||
pgbouncer-k8s/1 [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,92 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:766 Connecting to existing model microk8s-localhost:test on unspecified cloud | ||
[32mINFO [0m juju.model:model.py:2098 Deploying local:jammy/pgbouncer-k8s-0 | ||
[32mINFO [0m juju.model:model.py:2098 Deploying ch:amd64/jammy/postgresql-test-app-271 | ||
[33mWARNING [0m juju.model:model.py:1564 relate is deprecated and will be removed. Use integrate instead. | ||
[32mINFO [0m juju.model:model.py:2098 Deploying ch:amd64/jammy/postgresql-k8s-427 | ||
[33mWARNING [0m juju.model:model.py:1564 relate is deprecated and will be removed. Use integrate instead. | ||
[32mINFO [0m juju.model:model.py:2098 Deploying ch:amd64/jammy/self-signed-certificates-155 | ||
[33mWARNING [0m juju.model:model.py:1564 relate is deprecated and will be removed. Use integrate instead. | ||
[33mWARNING [0m juju.model:model.py:1564 relate is deprecated and will be removed. Use integrate instead. | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [allocating] waiting: installing agent | ||
pgbouncer-k8s/1 [allocating] waiting: installing agent | ||
postgresql-test-app/0 [allocating] waiting: installing agent | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
self-signed-certificates/0 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [executing] blocked: waiting for backend database relation to initialise | ||
pgbouncer-k8s/1 [executing] blocked: waiting for backend database relation to initialise | ||
postgresql-test-app/0 [idle] active: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
self-signed-certificates/0 [executing] maintenance: installing charm software | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [executing] blocked: waiting for backend database relation to initialise | ||
pgbouncer-k8s/1 [executing] waiting: waiting for backend-database relation to connect | ||
postgresql-k8s/0 [executing] maintenance: installing charm software | ||
postgresql-k8s/1 [executing] maintenance: installing charm software | ||
postgresql-k8s/2 [executing] maintenance: installing charm software | ||
self-signed-certificates/0 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [idle] blocked: waiting for backend database relation to initialise | ||
pgbouncer-k8s/1 [idle] waiting: waiting for backend-database relation to connect | ||
postgresql-k8s/0 [executing] waiting: awaiting for cluster to start | ||
postgresql-k8s/1 [executing] unknown: | ||
postgresql-k8s/2 [executing] unknown: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [idle] blocked: waiting for backend database relation to initialise | ||
pgbouncer-k8s/1 [idle] blocked: waiting for backend database relation to initialise | ||
postgresql-k8s/0 [executing] waiting: awaiting for primary endpoint to be ready | ||
postgresql-k8s/1 [executing] unknown: | ||
postgresql-k8s/2 [executing] unknown: | ||
self-signed-certificates/0 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [idle] blocked: waiting for backend database relation to initialise | ||
pgbouncer-k8s/1 [idle] blocked: waiting for backend database relation to initialise | ||
postgresql-k8s/0 [idle] waiting: awaiting for primary endpoint to be ready | ||
postgresql-k8s/1 [executing] unknown: | ||
postgresql-k8s/2 [executing] unknown: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [idle] blocked: waiting for backend database relation to initialise | ||
pgbouncer-k8s/1 [idle] blocked: waiting for backend database relation to initialise | ||
postgresql-k8s/0 [idle] active: Primary | ||
postgresql-k8s/1 [idle] unknown: | ||
postgresql-k8s/2 [idle] unknown: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [idle] active: | ||
pgbouncer-k8s/1 [idle] active: | ||
postgresql-test-app/0 [idle] active: received database credentials of the first database | ||
postgresql-k8s/0 [idle] active: Primary | ||
postgresql-k8s/1 [idle] waiting: awaiting for cluster to start | ||
postgresql-k8s/2 [idle] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [executing] active: | ||
pgbouncer-k8s/1 [executing] active: | ||
postgresql-k8s/0 [idle] active: Primary | ||
postgresql-k8s/1 [idle] waiting: awaiting for cluster to start | ||
postgresql-k8s/2 [idle] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [idle] active: Primary | ||
postgresql-k8s/1 [idle] active: | ||
postgresql-k8s/2 [idle] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [executing] waiting: Awaiting restart operation | ||
postgresql-k8s/1 [executing] maintenance: Executing restart operation | ||
postgresql-k8s/2 [idle] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [idle] active: Primary | ||
postgresql-k8s/1 [idle] maintenance: reinitialising replica | ||
postgresql-k8s/2 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [idle] blocked: backend database relation not ready | ||
pgbouncer-k8s/1 [idle] waiting: waiting for backend-database relation to connect | ||
postgresql-k8s/0 [executing] active: | ||
postgresql-k8s/1 [idle] active: | ||
postgresql-k8s/2 [executing] waiting: Awaiting restart operation | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [idle] active: Primary | ||
postgresql-k8s/1 [idle] active: | ||
postgresql-k8s/2 [idle] active: |
Oops, something went wrong.