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
0999aff
commit 3b9cabe
Showing
192 changed files
with
2,757 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,102 @@ | ||
[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 local:jammy/pgbouncer-k8s-0 | ||
[32mINFO [0m juju.model:model.py:2097 Deploying ch:amd64/jammy/data-integrator-27 | ||
[33mWARNING [0m juju.model:model.py:1563 relate is deprecated and will be removed. Use integrate instead. | ||
[32mINFO [0m juju.model:model.py:2097 Deploying ch:amd64/jammy/postgresql-test-app-166 | ||
[33mWARNING [0m juju.model:model.py:1563 relate is deprecated and will be removed. Use integrate instead. | ||
[32mINFO [0m juju.model:model.py:2097 Deploying ch:amd64/jammy/postgresql-k8s-292 | ||
[33mWARNING [0m juju.model:model.py:1563 relate is deprecated and will be removed. Use integrate instead. | ||
[32mINFO [0m juju.model:model.py:2097 Deploying ch:amd64/jammy/self-signed-certificates-151 | ||
[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: | ||
pgbouncer-k8s/0 [allocating] waiting: installing agent | ||
data-integrator/0 [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:2971 Waiting for model: | ||
pgbouncer-k8s/0 [executing] unknown: | ||
data-integrator/0 [idle] blocked: Please relate the data-integrator with the desired product | ||
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 [allocating] waiting: agent initialising | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pgbouncer-k8s/0 [executing] waiting: waiting for backend-database relation to connect | ||
data-integrator/0 [idle] blocked: Please relate the data-integrator with the desired product | ||
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 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pgbouncer-k8s/0 [idle] waiting: waiting for backend-database relation to connect | ||
data-integrator/0 [idle] blocked: Please relate the data-integrator with the desired product | ||
postgresql-k8s/0 [executing] unknown: | ||
postgresql-k8s/1 [executing] waiting: awaiting for cluster to start | ||
postgresql-k8s/2 [executing] unknown: | ||
self-signed-certificates/0 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pgbouncer-k8s/0 [idle] waiting: waiting for backend-database relation to connect | ||
data-integrator/0 [idle] blocked: Please relate the data-integrator with the desired product | ||
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: | ||
pgbouncer-k8s/0 [idle] waiting: waiting for backend-database relation to connect | ||
data-integrator/0 [idle] blocked: Please relate the data-integrator with the desired product | ||
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: | ||
pgbouncer-k8s/0 [executing] active: | ||
data-integrator/0 [idle] blocked: Please relate the data-integrator with the desired product | ||
postgresql-k8s/0 [executing] 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:2971 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:2971 Waiting for model: | ||
pgbouncer-k8s/0 [executing] active: | ||
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:2971 Waiting for model: | ||
pgbouncer-k8s/0 [idle] active: | ||
postgresql-k8s/0 [idle] active: | ||
postgresql-k8s/1 [idle] maintenance: Executing restart operation | ||
postgresql-k8s/2 [idle] waiting: awaiting for cluster to start | ||
self-signed-certificates/0 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [idle] active: | ||
postgresql-k8s/1 [executing] 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 [executing] active: | ||
postgresql-k8s/1 [executing] active: Primary | ||
postgresql-k8s/2 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [executing] waiting: Awaiting restart operation | ||
postgresql-k8s/1 [executing] active: Primary | ||
postgresql-k8s/2 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [idle] active: | ||
postgresql-k8s/1 [executing] active: Primary | ||
postgresql-k8s/2 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [executing] active: | ||
postgresql-k8s/1 [idle] active: Primary | ||
postgresql-k8s/2 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/2 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/2 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/2 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/2 [executing] 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,4 @@ | ||
[32mINFO [0m root:helpers.py:120 running query: | ||
DROP TABLE IF EXISTS test;CREATE TABLE test(data TEXT);INSERT INTO test(data) VALUES('some data');SELECT data FROM test; | ||
[32mINFO [0m root:helpers.py:121 {'dbname': 'postgresql_test_app_first_database', 'query': "DROP TABLE IF EXISTS test;CREATE TABLE test(data TEXT);INSERT INTO test(data) VALUES('some data');SELECT data FROM 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,6 @@ | ||
[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 local:jammy/pgbouncer-k8s-0 | ||
[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: | ||
pgbouncer-k8s/0 [executing] 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,4 @@ | ||
[32mINFO [0m root:helpers.py:120 running query: | ||
DROP TABLE test; | ||
[32mINFO [0m root:helpers.py:121 {'dbname': 'postgresql_test_app_first_database', 'query': 'DROP TABLE test;', 'relation-id': 7, 'relation-name': 'first-database', 'readonly': True} | ||
[32mINFO [0m root:helpers.py:124 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,5 @@ | ||
[32mINFO [0m integration.test_trust:test_trust.py:80 Connection attempt failed: (0) | ||
Reason: Handshake status 500 Internal Server Error -+-+- {'audit-id': '56f8ca5b-eb6e-43f5-93f4-cbdc72890fb1', 'cache-control': 'no-cache, private', 'content-type': 'application/json', 'warning': '299 - "Use tokens from the TokenRequest API or manually created secret-based tokens instead of auto-generated secret-based tokens."', 'date': 'Sun, 30 Jun 2024 01:37:12 GMT', 'content-length': '169'} -+-+- b'{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"error dialing backend: dial tcp 10.1.0.15:10250: connect: connection refused","code":500}\n' | ||
|
||
[32mINFO [0m integration.test_trust:test_trust.py:82 Retrying (1/20)... | ||
[32mINFO [0m integration.test_trust:test_trust.py:77 Connection established: <class 'juju.client._definitions.FullStatus'>({'applications': {}, 'branches': {}, 'controller_timestamp': '2024-06-30T01:37:15.387783267Z', 'filesystems': [], 'machines': {}, 'model': <class 'juju.client._definitions.ModelStatusInfo'>({'available_version': '', 'cloud_tag': 'cloud-microk8s', 'meter_status': <class 'juju.client._definitions.MeterStatus'>({'color': '', 'message': '', 'unknown_fields': {}}), 'model_status': <class 'juju.client._definitions.DetailedStatus'>({'data': {}, 'err': None, 'info': '', 'kind': '', 'life': '', 'since': '2024-06-30T01:36:45.427341053Z', 'status': 'available', 'version': '', 'unknown_fields': {}}), 'name': 'test', 'region': 'localhost', 'sla': 'unsupported', 'type_': 'caas', 'version': '3.1.8', 'unknown_fields': {}}), 'offers': {}, 'relations': [], 'remote_applications': {}, 'storage': [], 'volumes': [], 'unknown_fields': {}}) |
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,66 @@ | ||
[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-292 | ||
[32mINFO [0m juju.model:model.py:2097 Deploying local:jammy/pgbouncer-k8s-0 | ||
[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 [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: | ||
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 [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 [idle] unknown: | ||
postgresql-k8s/1 [idle] active: Primary | ||
postgresql-k8s/2 [idle] unknown: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [executing] waiting: awaiting for cluster to start | ||
postgresql-k8s/1 [idle] active: Primary | ||
postgresql-k8s/2 [executing] waiting: awaiting for cluster to start | ||
[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 cluster to start | ||
[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] 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: | ||
[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://d2ed898d-0df8-47b3-89aa-40b77e806fd8/cq0bfr3v0kis75kodhm0', 'version': '14.11'} | ||
[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 juju.model:model.py:2971 Waiting for model: | ||
pgbouncer-k8s/0 [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,9 @@ | ||
[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 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 httpx:_client.py:1773 HTTP Request: GET https://10.1.0.65: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.65:16443/api/v1/namespaces/test/pods/pgbouncer-k8s-0 "HTTP/1.1 200 OK" |
Oops, something went wrong.