generated from canonical/template-operator
-
Notifications
You must be signed in to change notification settings - Fork 4
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
e2dc790
commit 62081c2
Showing
180 changed files
with
3,737 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,2 @@ | ||
[32mINFO [0m integration.test_upgrade:test_upgrade.py:76 Get leader unit | ||
[32mINFO [0m integration.test_upgrade:test_upgrade.py:80 Run pre-upgrade-check action |
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,160 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:766 Connecting to existing model localhost-localhost:test on unspecified cloud | ||
[32mINFO [0m juju.model:model.py:2098 Deploying ch:amd64/jammy/pgbouncer-396 | ||
[32mINFO [0m juju.model:model.py:2098 Deploying ch:amd64/jammy/data-integrator-45 | ||
[32mINFO [0m juju.model:model.py:2098 Deploying ch:amd64/jammy/postgresql-471 | ||
[32mINFO [0m integration.test_upgrade_data_integrator:test_upgrade_data_integrator.py:51 Wait for applications to become active | ||
[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: | ||
postgresql/0 [allocating] waiting: waiting for machine | ||
postgresql/1 [allocating] waiting: waiting for machine | ||
postgresql/2 [allocating] waiting: waiting for machine | ||
pgbouncer (not enough units yet - 0/1) | ||
data-integrator/0 [allocating] waiting: waiting for machine | ||
data-integrator/1 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [allocating] waiting: waiting for machine | ||
postgresql/1 [allocating] waiting: waiting for machine | ||
postgresql/2 [allocating] waiting: waiting for machine | ||
pgbouncer (not enough units yet - 0/1) | ||
data-integrator/0 [allocating] waiting: waiting for machine | ||
data-integrator/1 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [allocating] waiting: waiting for machine | ||
postgresql/1 [allocating] waiting: waiting for machine | ||
postgresql/2 [allocating] waiting: waiting for machine | ||
pgbouncer (not enough units yet - 0/1) | ||
data-integrator/0 [allocating] waiting: waiting for machine | ||
data-integrator/1 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [allocating] waiting: waiting for machine | ||
postgresql/1 [allocating] waiting: waiting for machine | ||
postgresql/2 [allocating] waiting: waiting for machine | ||
pgbouncer (not enough units yet - 0/1) | ||
data-integrator/0 [allocating] waiting: waiting for machine | ||
data-integrator/1 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [allocating] waiting: waiting for machine | ||
postgresql/1 [allocating] waiting: waiting for machine | ||
postgresql/2 [allocating] waiting: waiting for machine | ||
pgbouncer (not enough units yet - 0/1) | ||
data-integrator/0 [allocating] waiting: waiting for machine | ||
data-integrator/1 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [allocating] waiting: waiting for machine | ||
postgresql/1 [allocating] waiting: waiting for machine | ||
postgresql/2 [allocating] waiting: waiting for machine | ||
pgbouncer (not enough units yet - 0/1) | ||
data-integrator/0 [allocating] waiting: waiting for machine | ||
data-integrator/1 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [allocating] waiting: waiting for machine | ||
postgresql/1 [allocating] waiting: waiting for machine | ||
postgresql/2 [allocating] waiting: waiting for machine | ||
pgbouncer (not enough units yet - 0/1) | ||
data-integrator/0 [allocating] waiting: waiting for machine | ||
data-integrator/1 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [allocating] waiting: waiting for machine | ||
postgresql/1 [allocating] waiting: waiting for machine | ||
postgresql/2 [allocating] waiting: waiting for machine | ||
pgbouncer (not enough units yet - 0/1) | ||
data-integrator/0 [allocating] waiting: waiting for machine | ||
data-integrator/1 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [executing] maintenance: installing charm software | ||
postgresql/1 [allocating] waiting: agent initialising | ||
postgresql/2 [allocating] waiting: agent initialising | ||
pgbouncer (not enough units yet - 0/1) | ||
data-integrator/0 [allocating] waiting: agent initialising | ||
data-integrator/1 [allocating] waiting: agent initialising | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [executing] maintenance: installing PostgreSQL | ||
postgresql/1 [executing] maintenance: installing PostgreSQL | ||
postgresql/2 [executing] maintenance: installing PostgreSQL | ||
pgbouncer/0 [executing] maintenance: Installing and configuring PgBouncer | ||
pgbouncer/1 [executing] maintenance: Installing and configuring PgBouncer | ||
data-integrator/0 [idle] blocked: Please relate the data-integrator with the desired product | ||
data-integrator/1 [idle] blocked: Please relate the data-integrator with the desired product | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [executing] waiting: waiting to start PostgreSQL | ||
postgresql/1 [executing] maintenance: installing PostgreSQL | ||
postgresql/2 [executing] waiting: waiting to start PostgreSQL | ||
pgbouncer/0 [executing] waiting: waiting for backend-database relation to connect | ||
pgbouncer/1 [executing] blocked: waiting for backend database relation to initialise | ||
data-integrator/0 [idle] blocked: Please relate the data-integrator with the desired product | ||
data-integrator/1 [idle] blocked: Please relate the data-integrator with the desired product | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [executing] waiting: waiting to start PostgreSQL | ||
postgresql/1 [executing] waiting: awaiting for cluster to start | ||
postgresql/2 [executing] waiting: awaiting for cluster to start | ||
pgbouncer/0 [executing] maintenance: updating PgBouncer config | ||
pgbouncer/1 [executing] blocked: waiting for backend database relation to initialise | ||
data-integrator/0 [executing] blocked: Please relate the data-integrator with the desired product | ||
data-integrator/1 [idle] blocked: Please relate the data-integrator with the desired product | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [executing] active: Primary | ||
postgresql/1 [executing] waiting: awaiting for cluster to start | ||
postgresql/2 [executing] waiting: awaiting for cluster to start | ||
pgbouncer/0 [idle] maintenance: Initialising backend-database relation | ||
pgbouncer/1 [idle] blocked: waiting for backend database relation to initialise | ||
data-integrator/0 [idle] blocked: Please relate the data-integrator with the desired product | ||
data-integrator/1 [idle] blocked: Please relate the data-integrator with the desired product | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [executing] active: Primary | ||
postgresql/1 [executing] waiting: awaiting for cluster to start | ||
postgresql/2 [executing] waiting: awaiting for cluster to start | ||
pgbouncer/0 [executing] maintenance: updating PgBouncer config | ||
pgbouncer/1 [executing] maintenance: updating PgBouncer config | ||
data-integrator/0 [idle] blocked: Please relate the data-integrator with the desired product | ||
data-integrator/1 [idle] blocked: Please relate the data-integrator with the desired product | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [executing] active: Primary | ||
postgresql/1 [executing] waiting: awaiting for cluster to start | ||
postgresql/2 [executing] waiting: awaiting for cluster to start | ||
pgbouncer/0 [idle] active: | ||
pgbouncer/1 [idle] active: | ||
data-integrator/0 [idle] active: | ||
data-integrator/1 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [executing] active: Primary | ||
postgresql/1 [idle] waiting: awaiting for cluster to start | ||
postgresql/2 [idle] waiting: awaiting for cluster to start | ||
pgbouncer/0 [executing] maintenance: updating PgBouncer config | ||
pgbouncer/1 [executing] maintenance: Reloading Pgbouncer | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [executing] maintenance: reconfiguring cluster | ||
postgresql/1 [idle] waiting: awaiting for cluster to start | ||
postgresql/2 [idle] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [executing] maintenance: reconfiguring cluster | ||
postgresql/1 [idle] waiting: awaiting for cluster to start | ||
postgresql/2 [idle] waiting: awaiting for cluster to start | ||
pgbouncer/0 [idle] maintenance: Updating database relation connection information | ||
pgbouncer/1 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [executing] maintenance: reconfiguring cluster | ||
postgresql/1 [idle] waiting: awaiting for cluster to start | ||
postgresql/2 [idle] waiting: awaiting for cluster to start | ||
pgbouncer/0 [idle] active: | ||
pgbouncer/1 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [executing] active: Primary | ||
postgresql/1 [idle] waiting: awaiting for cluster to start | ||
postgresql/2 [idle] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/1 [idle] waiting: awaiting for cluster to start | ||
postgresql/2 [idle] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/1 [idle] waiting: awaiting for cluster to start | ||
postgresql/2 [executing] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [idle] active: Primary | ||
postgresql/1 [idle] waiting: awaiting for member to start | ||
postgresql/2 [executing] waiting: awaiting for member to start | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [executing] active: Primary | ||
postgresql/1 [executing] active: | ||
postgresql/2 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql/0 [idle] active: Primary |
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,35 @@ | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-test-app (waiting for exactly 1 units, current : 2) | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-test-app/1 [idle] active: received database credentials of the second database | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-test-app/1 [idle] active: received database credentials of the second database | ||
postgresql/0 [idle] active: Primary | ||
postgresql/1 [idle] active: | ||
pgbouncer/5 [idle] active: | ||
another-application/0 [idle] active: | ||
another-postgresql/0 [idle] active: Primary | ||
another-postgresql/1 [idle] active: | ||
another-pgbouncer/2 [idle] active: | ||
[32mINFO [0m integration.relations.pgbouncer_provider.test_pgbouncer_provider:test_pgbouncer_provider.py:352 {'databases': {'*': 'host=10.64.122.162 auth_dbname=postgresql_test_app_database port=5432 auth_user=pgbouncer_auth_relation_6', 'another_database_readonly': 'host=10.64.122.219 dbname=another_database auth_dbname=postgresql_test_app_database port=5432 auth_user=pgbouncer_auth_relation_6', 'postgresql_test_app_database_readonly': 'host=10.64.122.219 dbname=postgresql_test_app_database auth_dbname=postgresql_test_app_database port=5432 auth_user=pgbouncer_auth_relation_6', 'postgresql_test_app_multiple_database_clusters_readonly': 'host=10.64.122.219 dbname=postgresql_test_app_multiple_database_clusters auth_dbname=postgresql_test_app_database port=5432 auth_user=pgbouncer_auth_relation_6'}, 'peers': {'1': 'host=/var/snap/charmed-pgbouncer/current/run/pgbouncer/pgbouncer/instance_0 port=6432'}, 'pgbouncer': {'peer_id': '1', 'listen_addr': '127.0.0.1', 'listen_port': '6432', 'logfile': '/var/snap/charmed-pgbouncer/common/var/log/pgbouncer/pgbouncer/instance_0/pgbouncer.log', 'pidfile': '/tmp/pgbouncer/instance_0/pgbouncer.pid', 'stats_users': 'pgbouncer_stats_pgbouncer', 'auth_type': 'md5', 'user': 'snap_daemon', 'max_client_conn': '10000', 'ignore_startup_parameters': 'extra_float_digits,options', 'server_tls_sslmode': 'prefer', 'so_reuseport': '1', 'unix_socket_dir': '/var/snap/charmed-pgbouncer/current/run/pgbouncer/pgbouncer/instance_0', 'pool_mode': 'session', 'max_db_connections': '100', 'default_pool_size': '50', 'min_pool_size': '25', 'reserve_pool_size': '25', 'auth_query': 'SELECT username, password FROM pgbouncer_auth_relation_6.get_auth($1)', 'auth_file': '/var/snap/charmed-pgbouncer/current/etc/pgbouncer/pgbouncer/userlist.txt'}} | ||
[32mINFO [0m integration.relations.pgbouncer_provider.test_pgbouncer_provider:test_pgbouncer_provider.py:354 Checking connection for postgresql-test-app/1 | ||
[32mINFO [0m root:helpers.py:76 running query: | ||
CREATE TABLE IF NOT EXISTS quick_test(data TEXT);INSERT INTO quick_test(data) VALUES('afe734ce-b95d-4dd2-aa6a-683a88142742');SELECT data FROM quick_test WHERE data = 'afe734ce-b95d-4dd2-aa6a-683a88142742'; | ||
[32mINFO [0m root:helpers.py:77 {'dbname': 'postgresql_test_app_database', 'query': "CREATE TABLE IF NOT EXISTS quick_test(data TEXT);INSERT INTO quick_test(data) VALUES('afe734ce-b95d-4dd2-aa6a-683a88142742');SELECT data FROM quick_test WHERE data = 'afe734ce-b95d-4dd2-aa6a-683a88142742';", 'relation-name': 'database', 'readonly': False} | ||
[32mINFO [0m root:helpers.py:80 query results: {'return-code': 1, 'stderr': 'Uncaught OperationalError in charm code: connection to server at "localhost" (127.0.0.1), port 6432 failed: FATAL: bouncer config error\n\nUse `juju debug-log` to see the full traceback.\n'} | ||
[32mINFO [0m root:helpers.py:76 running query: | ||
CREATE TABLE IF NOT EXISTS quick_test(data TEXT);INSERT INTO quick_test(data) VALUES('afe734ce-b95d-4dd2-aa6a-683a88142742');SELECT data FROM quick_test WHERE data = 'afe734ce-b95d-4dd2-aa6a-683a88142742'; | ||
[32mINFO [0m root:helpers.py:77 {'dbname': 'postgresql_test_app_database', 'query': "CREATE TABLE IF NOT EXISTS quick_test(data TEXT);INSERT INTO quick_test(data) VALUES('afe734ce-b95d-4dd2-aa6a-683a88142742');SELECT data FROM quick_test WHERE data = 'afe734ce-b95d-4dd2-aa6a-683a88142742';", 'relation-name': 'database', 'readonly': False} | ||
[32mINFO [0m root:helpers.py:80 query results: {'return-code': 1, 'stderr': 'Uncaught OperationalError in charm code: connection to server at "localhost" (127.0.0.1), port 6432 failed: FATAL: bouncer config error\n\nUse `juju debug-log` to see the full traceback.\n'} | ||
[32mINFO [0m root:helpers.py:76 running query: | ||
CREATE TABLE IF NOT EXISTS quick_test(data TEXT);INSERT INTO quick_test(data) VALUES('afe734ce-b95d-4dd2-aa6a-683a88142742');SELECT data FROM quick_test WHERE data = 'afe734ce-b95d-4dd2-aa6a-683a88142742'; | ||
[32mINFO [0m root:helpers.py:77 {'dbname': 'postgresql_test_app_database', 'query': "CREATE TABLE IF NOT EXISTS quick_test(data TEXT);INSERT INTO quick_test(data) VALUES('afe734ce-b95d-4dd2-aa6a-683a88142742');SELECT data FROM quick_test WHERE data = 'afe734ce-b95d-4dd2-aa6a-683a88142742';", 'relation-name': 'database', 'readonly': False} | ||
[32mINFO [0m root:helpers.py:80 query results: {'return-code': 1, 'stderr': 'Uncaught OperationalError in charm code: connection to server at "localhost" (127.0.0.1), port 6432 failed: FATAL: bouncer config error\n\nUse `juju debug-log` to see the full traceback.\n'} | ||
[32mINFO [0m root:helpers.py:76 running query: | ||
CREATE TABLE IF NOT EXISTS quick_test(data TEXT);INSERT INTO quick_test(data) VALUES('afe734ce-b95d-4dd2-aa6a-683a88142742');SELECT data FROM quick_test WHERE data = 'afe734ce-b95d-4dd2-aa6a-683a88142742'; | ||
[32mINFO [0m root:helpers.py:77 {'dbname': 'postgresql_test_app_database', 'query': "CREATE TABLE IF NOT EXISTS quick_test(data TEXT);INSERT INTO quick_test(data) VALUES('afe734ce-b95d-4dd2-aa6a-683a88142742');SELECT data FROM quick_test WHERE data = 'afe734ce-b95d-4dd2-aa6a-683a88142742';", 'relation-name': 'database', 'readonly': False} | ||
[32mINFO [0m root:helpers.py:80 query results: {'return-code': 1, 'stderr': 'Uncaught OperationalError in charm code: connection to server at "localhost" (127.0.0.1), port 6432 failed: FATAL: bouncer config error\n\nUse `juju debug-log` to see the full traceback.\n'} | ||
[32mINFO [0m root:helpers.py:76 running query: | ||
CREATE TABLE IF NOT EXISTS quick_test(data TEXT);INSERT INTO quick_test(data) VALUES('afe734ce-b95d-4dd2-aa6a-683a88142742');SELECT data FROM quick_test WHERE data = 'afe734ce-b95d-4dd2-aa6a-683a88142742'; | ||
[32mINFO [0m root:helpers.py:77 {'dbname': 'postgresql_test_app_database', 'query': "CREATE TABLE IF NOT EXISTS quick_test(data TEXT);INSERT INTO quick_test(data) VALUES('afe734ce-b95d-4dd2-aa6a-683a88142742');SELECT data FROM quick_test WHERE data = 'afe734ce-b95d-4dd2-aa6a-683a88142742';", 'relation-name': 'database', 'readonly': False} | ||
[32mINFO [0m root:helpers.py:80 query results: {'return-code': 1, 'stderr': 'Uncaught OperationalError in charm code: connection to server at "localhost" (127.0.0.1), port 6432 failed: FATAL: bouncer config error\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,8 @@ | ||
[32mINFO [0m root:helpers.py:76 running query: | ||
CREATE DATABASE another_database; | ||
[32mINFO [0m root:helpers.py:77 {'dbname': 'postgresql_test_app_database', 'query': 'CREATE DATABASE another_database;', 'relation-name': 'database', 'readonly': False} | ||
[32mINFO [0m root:helpers.py:80 query results: {'results': '["no results to fetch"]', 'return-code': 0} | ||
[32mINFO [0m root:helpers.py:76 running query: | ||
CREATE USER another_user WITH ENCRYPTED PASSWORD 'test-password'; | ||
[32mINFO [0m root:helpers.py:77 {'dbname': 'postgresql_test_app_database', 'query': "CREATE USER another_user WITH ENCRYPTED PASSWORD 'test-password';", 'relation-name': 'database', 'readonly': False} | ||
[32mINFO [0m root:helpers.py:80 query results: {'results': '["no results to fetch"]', 'return-code': 0} |
Oops, something went wrong.