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
34cddcc
commit 0f5d141
Showing
203 changed files
with
3,479 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 root:helpers.py:121 running query: | ||
DROP TABLE test; | ||
[32mINFO [0m root:helpers.py:122 {'dbname': 'postgresql_test_app_database', 'query': 'DROP TABLE test;', 'relation-name': 'database', 'readonly': True} | ||
[32mINFO [0m root:helpers.py:125 query results: {'return-code': 1, 'stderr': 'Uncaught ReadOnlySqlTransaction in charm code: cannot execute DROP TABLE in a read-only transaction\n\nUse `juju debug-log` to see the full traceback.\n'} |
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,52 @@ | ||
[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-279 | ||
[32mINFO [0m juju.model:model.py:2098 Deploying ch:amd64/jammy/postgresql-k8s-457 | ||
[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 | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
[33mWARNING [0m juju.client.connection:connection.py:578 Receiver: Connection closed, reconnecting | ||
[1m[31mERROR [0m asyncio:base_events.py:1758 Task exception was never retrieved | ||
future: <Task finished name='Task-659' coro=<Connection.reconnect() done, defined at /home/runner/work/pgbouncer-k8s-operator/pgbouncer-k8s-operator/.tox/integration/lib/python3.10/site-packages/juju/client/connection.py:779> exception=OSError(9, 'Bad file descriptor')> | ||
Traceback (most recent call last): | ||
File "/home/runner/work/pgbouncer-k8s-operator/pgbouncer-k8s-operator/.tox/integration/lib/python3.10/site-packages/juju/client/connection.py", line 788, in reconnect | ||
res = await connector( | ||
File "/home/runner/work/pgbouncer-k8s-operator/pgbouncer-k8s-operator/.tox/integration/lib/python3.10/site-packages/juju/client/connection.py", line 868, in _connect_with_login | ||
await self._connect(endpoints) | ||
File "/home/runner/work/pgbouncer-k8s-operator/pgbouncer-k8s-operator/.tox/integration/lib/python3.10/site-packages/juju/client/connection.py", line 817, in _connect | ||
result = await task | ||
File "/usr/lib/python3.10/asyncio/tasks.py", line 571, in _wait_for_one | ||
return f.result() # May raise f.exception(). | ||
File "/home/runner/work/pgbouncer-k8s-operator/pgbouncer-k8s-operator/.tox/integration/lib/python3.10/site-packages/juju/client/connection.py", line 806, in _try_endpoint | ||
return await self._open(endpoint, cacert) | ||
File "/home/runner/work/pgbouncer-k8s-operator/pgbouncer-k8s-operator/.tox/integration/lib/python3.10/site-packages/juju/client/connection.py", line 427, in _open | ||
return (await websockets.connect( | ||
File "/home/runner/work/pgbouncer-k8s-operator/pgbouncer-k8s-operator/.tox/integration/lib/python3.10/site-packages/websockets/legacy/client.py", line 654, in __await_impl__ | ||
_transport, protocol = await self._create_connection() | ||
File "/usr/lib/python3.10/asyncio/base_events.py", line 1103, in create_connection | ||
transport, protocol = await self._create_connection_transport( | ||
File "/usr/lib/python3.10/asyncio/base_events.py", line 1119, in _create_connection_transport | ||
sock.setblocking(False) | ||
OSError: [Errno 9] Bad file descriptor | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [executing] maintenance: installing charm software | ||
postgresql-k8s/0 [allocating] waiting: agent initialising | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [idle] blocked: waiting for backend database relation to initialise | ||
postgresql-k8s/0 [executing] unknown: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [idle] blocked: waiting for backend database relation to initialise | ||
postgresql-k8s/0 [executing] waiting: awaiting for primary endpoint to be ready | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [executing] blocked: PgBouncer service metrics_server not running: service status = ServiceStatus.INACTIVE | ||
postgresql-k8s/0 [idle] active: Primary | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [idle] active: Primary | ||
[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 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [idle] blocked: Insufficient permissions, try: `juju trust pgbouncer-k8s --scope=cluster` |
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,60 @@ | ||
[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 ch:amd64/jammy/postgresql-k8s-457 | ||
[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: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [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 | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: agent initialising | ||
postgresql-k8s/1 [allocating] waiting: agent initialising | ||
postgresql-k8s/2 [allocating] waiting: agent initialising | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [executing] unknown: | ||
postgresql-k8s/1 [executing] unknown: | ||
postgresql-k8s/2 [executing] unknown: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [idle] unknown: | ||
postgresql-k8s/1 [idle] unknown: | ||
postgresql-k8s/2 [idle] waiting: awaiting for primary endpoint to be ready | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [idle] unknown: | ||
postgresql-k8s/1 [idle] unknown: | ||
postgresql-k8s/2 [idle] maintenance: reconfiguring cluster | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [idle] waiting: awaiting for member to start | ||
postgresql-k8s/1 [idle] waiting: awaiting for cluster to start | ||
postgresql-k8s/2 [idle] active: Primary | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [idle] active: | ||
postgresql-k8s/1 [idle] waiting: awaiting for cluster to start | ||
postgresql-k8s/2 [idle] maintenance: reconfiguring cluster | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [idle] active: | ||
postgresql-k8s/1 [idle] waiting: awaiting for member to start | ||
postgresql-k8s/2 [executing] active: Primary | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [executing] active: | ||
postgresql-k8s/1 [idle] active: | ||
postgresql-k8s/2 [idle] active: Primary | ||
[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 [idle] blocked: waiting for backend database relation to initialise | ||
postgresql-k8s/0 [idle] active: | ||
postgresql-k8s/1 [idle] active: | ||
postgresql-k8s/2 [idle] active: Primary | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [idle] active: | ||
[32mINFO [0m root:test_backend_database.py:85 {'databases': {}, 'peers': {'1': 'host=0 port=6432', '2': 'host=1 port=6432', '3': 'host=2 port=6432', '4': 'host=3 port=6432'}, 'pgbouncer': {'peer_id': '1', 'listen_addr': '*', 'listen_port': '6432', 'logfile': '/var/log/pgbouncer/instance_0/pgbouncer.log', 'pidfile': '/var/lib/pgbouncer/instance_0/pgbouncer.pid', 'stats_users': 'pgbouncer_stats_pgbouncer_k8s', 'auth_type': 'md5', 'user': 'postgres', 'max_client_conn': '10000', 'ignore_startup_parameters': 'extra_float_digits,options', 'server_tls_sslmode': 'prefer', 'so_reuseport': '1', 'unix_socket_dir': '/var/lib/pgbouncer/instance_0', 'pool_mode': 'session', 'max_db_connections': '100', 'default_pool_size': '13', 'min_pool_size': '7', 'reserve_pool_size': '7', 'auth_query': 'SELECT username, password FROM pgbouncer_auth_relation_id_5.get_auth($1)', 'auth_file': '/var/lib/pgbouncer/userlist.txt'}} | ||
[32mINFO [0m root:test_backend_database.py:96 {'data': '{"database": "pgbouncer", "extra-user-roles": "SUPERUSER", "requested-secrets": "[\\"username\\", \\"password\\", \\"tls\\", \\"tls-ca\\", \\"uris\\"]"}', 'database': 'pgbouncer', 'endpoints': 'postgresql-k8s-primary.test.svc.cluster.local:5432', 'read-only-endpoints': 'postgresql-k8s-replicas.test.svc.cluster.local:5432', 'secret-tls': 'secret://4406f5da-87f0-41bf-8f86-7f813ec70294/csrvlkeujvpc74si4gog', 'secret-user': 'secret://4406f5da-87f0-41bf-8f86-7f813ec70294/csrvlkeujvpc74si4go0', 'version': '14.13'} | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [executing] active: | ||
postgresql-k8s/1 [executing] active: | ||
postgresql-k8s/2 [executing] active: Primary | ||
[32mINFO [0m root:test_backend_database.py:116 {'databases': {}, 'peers': {'1': 'host=0 port=6432', '2': 'host=1 port=6432', '3': 'host=2 port=6432', '4': 'host=3 port=6432'}, 'pgbouncer': {'peer_id': '1', 'listen_addr': '*', 'listen_port': '6432', 'logfile': '/var/log/pgbouncer/instance_0/pgbouncer.log', 'pidfile': '/var/lib/pgbouncer/instance_0/pgbouncer.pid', 'stats_users': '', 'auth_type': 'md5', 'user': 'postgres', 'max_client_conn': '10000', 'ignore_startup_parameters': 'extra_float_digits,options', 'server_tls_sslmode': 'prefer', 'so_reuseport': '1', 'unix_socket_dir': '/var/lib/pgbouncer/instance_0', 'pool_mode': 'session', 'max_db_connections': '100', 'default_pool_size': '13', 'min_pool_size': '7', 'reserve_pool_size': '7', 'auth_query': '', 'auth_file': '/var/lib/pgbouncer/userlist.txt'}} |
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,17 @@ | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s (waiting for exactly 2 units, current : 1) | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [executing] active: | ||
pgbouncer-k8s/1 [executing] blocked: waiting for backend database relation to initialise | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/1 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-test-app/0 [idle] active: received database credentials of the first database | ||
postgresql-k8s/0 [idle] active: Primary | ||
postgresql-k8s/1 [idle] active: | ||
pgbouncer-k8s/0 [idle] active: | ||
pgbouncer-k8s/1 [idle] active: | ||
[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,72 @@ | ||
[32mINFO [0m integration.test_upgrade_data_integrator:test_upgrade_data_integrator.py:98 Refresh the charm | ||
[32mINFO [0m integration.test_upgrade_data_integrator:test_upgrade_data_integrator.py:101 Wait for upgrade to start | ||
[32mINFO [0m integration.test_upgrade_data_integrator:test_upgrade_data_integrator.py:108 Wait for upgrade to complete on first upgrading unit | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [executing] waiting: other units upgrading first... | ||
pgbouncer-k8s/1 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [idle] waiting: other units upgrading first... | ||
pgbouncer-k8s/1 [idle] active: | ||
[32mINFO [0m integration.test_upgrade_data_integrator:test_upgrade_data_integrator.py:116 Resume upgrade | ||
[32mINFO [0m integration.test_upgrade_data_integrator:test_upgrade_data_integrator.py:121 Wait for upgrade to complete | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [executing] maintenance: stopping charm software | ||
pgbouncer-k8s/1 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [executing] waiting: pgbouncer not running | ||
pgbouncer-k8s/1 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [idle] active: | ||
pgbouncer-k8s/1 [idle] active: | ||
[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:54:59Z | ||
|
||
App Version Status Scale Charm Channel Rev Address Exposed Message | ||
data-integrator active 2 data-integrator latest/edge 74 10.152.183.179 no | ||
pgbouncer-k8s 1.21.0 active 2 pgbouncer-k8s 0 10.152.183.136 no | ||
postgresql-k8s 14.13 active 3 postgresql-k8s 14/edge 457 10.152.183.181 no | ||
|
||
Unit Workload Agent Address Ports Message | ||
data-integrator/0* active idle 10.1.186.8 | ||
data-integrator/1 active idle 10.1.186.9 | ||
pgbouncer-k8s/0* active idle 10.1.186.19 | ||
pgbouncer-k8s/1 active idle 10.1.186.18 | ||
postgresql-k8s/0* active idle 10.1.186.15 Primary | ||
postgresql-k8s/1 active idle 10.1.186.17 | ||
postgresql-k8s/2 active idle 10.1.186.16 | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:909 Juju error logs: | ||
|
||
unit-postgresql-k8s-1: 01:49:18 ERROR unit.postgresql-k8s/1.juju-log database-peers:5: This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-1: 01:49:18 ERROR unit.postgresql-k8s/1.juju-log database-peers:5: This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-2: 01:49:18 ERROR unit.postgresql-k8s/2.juju-log database-peers:5: This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-2: 01:49:18 ERROR unit.postgresql-k8s/2.juju-log database-peers:5: This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-1: 01:50:53 ERROR unit.postgresql-k8s/1.juju-log database:6: This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-1: 01:50:53 ERROR unit.postgresql-k8s/1.juju-log database:6: This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-1: 01:51:06 ERROR unit.postgresql-k8s/1.juju-log database:6: This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-1: 01:51:06 ERROR unit.postgresql-k8s/1.juju-log database:6: This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-1: 01:51:19 ERROR unit.postgresql-k8s/1.juju-log database:6: This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-1: 01:51:19 ERROR unit.postgresql-k8s/1.juju-log database:6: This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-1: 01:51:31 ERROR unit.postgresql-k8s/1.juju-log database:6: This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-1: 01:51:31 ERROR unit.postgresql-k8s/1.juju-log database:6: This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-1: 01:51:45 ERROR unit.postgresql-k8s/1.juju-log database-peers:5: This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-1: 01:51:45 ERROR unit.postgresql-k8s/1.juju-log database-peers:5: This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-2: 01:51:57 ERROR unit.postgresql-k8s/2.juju-log This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-2: 01:51:57 ERROR unit.postgresql-k8s/2.juju-log This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-2: 01:52:10 ERROR unit.postgresql-k8s/2.juju-log This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-2: 01:52:10 ERROR unit.postgresql-k8s/2.juju-log This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-2: 01:52:23 ERROR unit.postgresql-k8s/2.juju-log This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-2: 01:52:23 ERROR unit.postgresql-k8s/2.juju-log This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-2: 01:52:35 ERROR unit.postgresql-k8s/2.juju-log This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-postgresql-k8s-2: 01:52:35 ERROR unit.postgresql-k8s/2.juju-log This operation (update_relation_data()) can only be performed by the leader unit | ||
unit-pgbouncer-k8s-1: 01:52:50 ERROR unit.pgbouncer-k8s/1.juju-log pgbouncer not running | ||
unit-pgbouncer-k8s-1: 01:52:52 ERROR unit.pgbouncer-k8s/1.juju-log pgbouncer not running | ||
unit-pgbouncer-k8s-1: 01:52:53 ERROR unit.pgbouncer-k8s/1.juju-log pgbouncer not running | ||
unit-pgbouncer-k8s-1: 01:52:54 ERROR unit.pgbouncer-k8s/1.juju-log pgbouncer not running | ||
unit-pgbouncer-k8s-0: 01:53:58 ERROR unit.pgbouncer-k8s/0.juju-log pgbouncer not running | ||
unit-pgbouncer-k8s-0: 01:54:00 ERROR unit.pgbouncer-k8s/0.juju-log pgbouncer not running | ||
unit-pgbouncer-k8s-0: 01:54:01 ERROR unit.pgbouncer-k8s/0.juju-log pgbouncer not running | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:991 Forgetting model main... |
Oops, something went wrong.