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
f46d2a2
commit bc12f80
Showing
203 changed files
with
3,431 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,26 @@ | ||
[32mINFO [0m juju.model:model.py:2098 Deploying ch:amd64/focal/finos-waltz-k8s-33 | ||
[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 [executing] active: | ||
pgbouncer-k8s/1 [executing] active: | ||
secondary-application/0 [idle] active: received database credentials of the first database | ||
finos-waltz-k8s/0 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [executing] active: | ||
pgbouncer-k8s/1 [executing] active: | ||
finos-waltz-k8s/0 [idle] blocked: Waiting for database configuration. | ||
[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 [idle] active: received database credentials of the first database | ||
finos-waltz-k8s/0 [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,48 @@ | ||
[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-275 | ||
[32mINFO [0m juju.model:model.py:2098 Deploying ch:amd64/jammy/postgresql-k8s-437 | ||
[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-699' 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: installing agent | ||
[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 [idle] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [idle] active: | ||
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: |
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,21 @@ | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s (waiting for exactly 3 units, current : 2) | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [executing] active: | ||
pgbouncer-k8s/1 [executing] active: | ||
pgbouncer-k8s/2 [executing] maintenance: installing charm software | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [executing] active: | ||
pgbouncer-k8s/1 [executing] active: | ||
pgbouncer-k8s/2 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/2 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [idle] active: | ||
pgbouncer-k8s/1 [idle] active: | ||
pgbouncer-k8s/2 [idle] active: | ||
postgresql-test-app/0 [idle] active: received database credentials of the first database | ||
postgresql-k8s/0 [idle] active: | ||
postgresql-k8s/1 [idle] active: Primary | ||
postgresql-k8s/2 [executing] active: | ||
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,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-437 | ||
[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 [executing] blocked: waiting for backend database relation to initialise | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [executing] maintenance: installing charm software | ||
postgresql-k8s/1 [executing] maintenance: installing charm software | ||
postgresql-k8s/2 [executing] maintenance: installing charm software | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [executing] unknown: | ||
postgresql-k8s/1 [executing] waiting: awaiting for cluster to start | ||
postgresql-k8s/2 [executing] unknown: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [idle] unknown: | ||
postgresql-k8s/1 [idle] waiting: awaiting for cluster to start | ||
postgresql-k8s/2 [idle] unknown: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [idle] waiting: awaiting for cluster to start | ||
postgresql-k8s/1 [idle] active: Primary | ||
postgresql-k8s/2 [idle] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [idle] waiting: awaiting for cluster to start | ||
postgresql-k8s/1 [idle] active: Primary | ||
postgresql-k8s/2 [idle] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [idle] waiting: awaiting for member to start | ||
postgresql-k8s/1 [executing] active: Primary | ||
postgresql-k8s/2 [idle] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [idle] waiting: awaiting for member to start | ||
postgresql-k8s/1 [idle] active: Primary | ||
postgresql-k8s/2 [idle] waiting: awaiting for member to start | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [executing] active: | ||
postgresql-k8s/1 [idle] active: Primary | ||
postgresql-k8s/2 [idle] waiting: awaiting for member to start | ||
[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: Primary | ||
postgresql-k8s/2 [idle] active: | ||
[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://049764da-9dcd-4968-8aeb-935c41c4d945/csk2fgnvd7ms7b0fjoqg', 'secret-user': 'secret://049764da-9dcd-4968-8aeb-935c41c4d945/csk2fgfvd7ms7b0fjoq0', '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 [idle] active: | ||
postgresql-k8s/1 [idle] active: Primary | ||
postgresql-k8s/2 [idle] active: | ||
[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'}} |
Oops, something went wrong.