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
fec80e6
commit 6e3f3db
Showing
192 changed files
with
3,011 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,28 @@ | ||
[32mINFO [0m juju.model:model.py:2097 Deploying ch:amd64/jammy/postgresql-test-app-172 | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
secondary-application/0 [allocating] waiting: installing agent | ||
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: | ||
[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: | ||
secondary-application/0 [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] active: | ||
pgbouncer-k8s/0 [executing] active: | ||
pgbouncer-k8s/1 [executing] active: | ||
[32mINFO [0m root:helpers.py:120 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:121 {'dbname': 'postgresql_test_app_first_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-id': 7, 'relation-name': 'first-database', 'readonly': False} | ||
[32mINFO [0m root:helpers.py:124 query results: {'results': '[["some data"]]', 'return-code': 0} | ||
[32mINFO [0m root:helpers.py:120 running query: | ||
DROP TABLE IF EXISTS check_multiple_apps_connected_to_one_cluster;CREATE TABLE check_multiple_apps_connected_to_one_cluster(data TEXT);INSERT INTO check_multiple_apps_connected_to_one_cluster(data) VALUES('some data');SELECT data FROM check_multiple_apps_connected_to_one_cluster; | ||
[32mINFO [0m root:helpers.py:121 {'dbname': 'secondary_application_first_database', 'query': "DROP TABLE IF EXISTS check_multiple_apps_connected_to_one_cluster;CREATE TABLE check_multiple_apps_connected_to_one_cluster(data TEXT);INSERT INTO check_multiple_apps_connected_to_one_cluster(data) VALUES('some data');SELECT data FROM check_multiple_apps_connected_to_one_cluster;", 'relation-id': 9, 'relation-name': 'first-database', 'readonly': False} | ||
[32mINFO [0m root:helpers.py:124 query results: {'results': '[["some data"]]', 'return-code': 0} | ||
[32mINFO [0m httpx:_client.py:1773 HTTP Request: GET https://10.1.0.139:16443/api/v1/namespaces/test/pods/pgbouncer-k8s-0 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1773 HTTP Request: GET https://10.1.0.139:16443/api/v1/namespaces/test/pods/pgbouncer-k8s-0 "HTTP/1.1 200 OK" | ||
[32mINFO [0m integration.relations.pgbouncer_provider.test_pgbouncer_provider:test_pgbouncer_provider.py:330 dbname='postgresql_test_app_first_database' user='relation_id_7' host='10.1.49.9' password='Pf6bwmNERVgnXyyKCrINmGFN' connect_timeout=10 port=6432 | ||
[32mINFO [0m integration.relations.pgbouncer_provider.test_pgbouncer_provider:test_pgbouncer_provider.py:331 dbname='secondary_application_first_database' user='relation_id_9' host='10.1.49.9' password='nWJBAuDbG0ddSnCo57sDBwpG' connect_timeout=10 port=6432 |
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:120 running query: | ||
SELECT data FROM test; | ||
[32mINFO [0m root:helpers.py:121 {'dbname': 'postgresql_test_app_first_database', 'query': 'SELECT data FROM test;', 'relation-id': 7, 'relation-name': 'first-database', 'readonly': True} | ||
[32mINFO [0m root:helpers.py:124 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,25 @@ | ||
[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:45:56Z | ||
|
||
App Version Status Scale Charm Channel Rev Address Exposed Message | ||
data-integrator active 1 data-integrator latest/edge 29 10.152.183.84 no | ||
pgbouncer-k8s 1.21.0 active 1 pgbouncer-k8s 0 10.152.183.238 no | ||
postgresql-k8s 14.11 active 3 postgresql-k8s 14/edge 294 10.152.183.69 no | ||
postgresql-test-app active 1 postgresql-test-app edge 172 10.152.183.58 no received database credentials of the first database | ||
self-signed-certificates active 1 self-signed-certificates latest/stable 151 10.152.183.191 no | ||
|
||
Unit Workload Agent Address Ports Message | ||
data-integrator/0* active idle 10.1.0.9 | ||
pgbouncer-k8s/0* active idle 10.1.0.8 | ||
postgresql-k8s/0 active idle 10.1.0.17 | ||
postgresql-k8s/1* active idle 10.1.0.16 Primary | ||
postgresql-k8s/2 active idle 10.1.0.15 | ||
postgresql-test-app/0* active idle 10.1.0.10 received database credentials of the first database | ||
self-signed-certificates/0* active idle 10.1.0.11 | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:868 Juju error logs: | ||
|
||
|
||
[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,54 @@ | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pgbouncer-k8s (waiting for exactly 3 units, current : 1) | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pgbouncer-k8s/0 [executing] active: | ||
pgbouncer-k8s/2 [executing] maintenance: installing charm software | ||
pgbouncer-k8s/1 [executing] maintenance: installing charm software | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pgbouncer-k8s/0 [idle] active: | ||
pgbouncer-k8s/2 [executing] active: | ||
pgbouncer-k8s/1 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pgbouncer-k8s/2 [idle] active: | ||
pgbouncer-k8s/1 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pgbouncer-k8s/0 [idle] active: | ||
pgbouncer-k8s/2 [idle] active: | ||
pgbouncer-k8s/1 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [idle] active: | ||
postgresql-k8s/1 [idle] active: Primary | ||
postgresql-k8s/2 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pgbouncer-k8s (waiting for exactly 1 units, current : 3) | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pgbouncer-k8s/0 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pgbouncer-k8s/0 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [idle] active: | ||
postgresql-k8s/1 [idle] active: Primary | ||
postgresql-k8s/2 [idle] active: | ||
[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:51:26Z | ||
|
||
App Version Status Scale Charm Channel Rev Address Exposed Message | ||
finos-waltz active 1 finos-waltz-k8s edge 33 10.152.183.39 no | ||
pgbouncer-k8s 1.21.0 active 1 pgbouncer-k8s 0 10.152.183.154 no | ||
postgresql-k8s 14.11 active 3 postgresql-k8s 14/edge 294 10.152.183.31 no | ||
self-signed-certificates active 1 self-signed-certificates latest/stable 151 10.152.183.64 no | ||
|
||
Unit Workload Agent Address Ports Message | ||
finos-waltz/0* active idle 10.1.205.208 | ||
pgbouncer-k8s/0* active idle 10.1.205.206 | ||
postgresql-k8s/0 active idle 10.1.205.203 | ||
postgresql-k8s/1* active idle 10.1.205.205 Primary | ||
postgresql-k8s/2 active idle 10.1.205.204 | ||
self-signed-certificates/0* active idle 10.1.205.207 | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:868 Juju error logs: | ||
|
||
|
||
[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,18 @@ | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pgbouncer-k8s (waiting for exactly 1 units, current : 2) | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pgbouncer-k8s/0 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2971 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: | ||
[32mINFO [0m juju.model:model.py:2971 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: | ||
[32mINFO [0m root:helpers.py:120 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:121 {'dbname': 'postgresql_test_app_first_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-id': 7, 'relation-name': 'first-database', 'readonly': False} | ||
[32mINFO [0m root:helpers.py:124 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 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-294 | ||
[32mINFO [0m juju.model:model.py:2097 Deploying local:jammy/pgbouncer-k8s-0 | ||
[32mINFO [0m juju.model:model.py:2971 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:2971 Waiting for model: | ||
pgbouncer-k8s/0 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 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:2971 Waiting for model: | ||
pgbouncer-k8s/0 [executing] maintenance: installing charm software | ||
[32mINFO [0m juju.model:model.py:2971 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:2971 Waiting for model: | ||
pgbouncer-k8s/0 [idle] blocked: waiting for backend database relation to initialise | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [idle] unknown: | ||
postgresql-k8s/1 [executing] waiting: awaiting for primary endpoint to be ready | ||
postgresql-k8s/2 [idle] unknown: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [idle] unknown: | ||
postgresql-k8s/1 [idle] waiting: awaiting for primary endpoint to be ready | ||
postgresql-k8s/2 [idle] unknown: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [executing] unknown: | ||
postgresql-k8s/1 [idle] active: Primary | ||
postgresql-k8s/2 [executing] unknown: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [idle] unknown: | ||
postgresql-k8s/1 [idle] maintenance: reconfiguring cluster | ||
postgresql-k8s/2 [idle] unknown: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [idle] unknown: | ||
postgresql-k8s/1 [executing] active: Primary | ||
postgresql-k8s/2 [idle] unknown: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [executing] unknown: | ||
postgresql-k8s/1 [executing] maintenance: reconfiguring cluster | ||
postgresql-k8s/2 [idle] unknown: | ||
[32mINFO [0m juju.model:model.py:2971 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:2971 Waiting for model: | ||
postgresql-k8s/0 [idle] active: | ||
postgresql-k8s/1 [idle] active: Primary | ||
postgresql-k8s/2 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [executing] active: | ||
[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: | ||
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:2971 Waiting for model: | ||
pgbouncer-k8s/0 [idle] active: | ||
[32mINFO [0m root:test_backend_database.py:87 {'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:98 {'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-user': 'secret://a73ee00f-aeef-478e-8dca-fa9d727016c7/cq2aogq0slls75fnp0l0', 'version': '14.11'} | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pgbouncer-k8s/0 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [executing] active: | ||
postgresql-k8s/1 [executing] active: Primary | ||
postgresql-k8s/2 [executing] active: | ||
[32mINFO [0m root:test_backend_database.py:118 {'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,15 @@ | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pgbouncer-k8s (waiting for exactly 2 units, current : 1) | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pgbouncer-k8s/0 [idle] active: | ||
pgbouncer-k8s/1 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2971 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:120 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:121 {'dbname': 'postgresql_test_app_first_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-id': 7, 'relation-name': 'first-database', 'readonly': False} | ||
[32mINFO [0m root:helpers.py:124 query results: {'results': '[["some data"]]', 'return-code': 0} |
Oops, something went wrong.