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
d8f9c05
commit 22f247b
Showing
203 changed files
with
3,062 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,50 @@ | ||
[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-301 | ||
[32mINFO [0m juju.model:model.py:2098 Deploying ch:amd64/jammy/postgresql-k8s-470 | ||
[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 [idle] blocked: waiting for backend database relation to initialise | ||
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: |
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,100 @@ | ||
[32mINFO [0m httpx:_client.py:1786 HTTP Request: DELETE https://10.1.0.79:16443/api/v1/namespaces/test/pods/pgbouncer-k8s-0 "HTTP/1.1 200 OK" | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-test-app/0 [idle] active: | ||
postgresql-k8s/0 [idle] active: | ||
postgresql-k8s/1 [idle] active: Primary | ||
pgbouncer-k8s/0 [executing] maintenance: stopping charm software | ||
pgbouncer-k8s/1 [idle] active: | ||
secondary-application/0 [idle] active: received database credentials of the second database | ||
finos-waltz-k8s/0 [idle] active: | ||
pgbouncer-k8s-secondary/0 [idle] active: | ||
data-integrator/0 [idle] active: | ||
indico/0 [idle] active: | ||
redis-broker/0 [idle] active: | ||
redis-cache/0 [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:56:38Z | ||
|
||
App Version Status Scale Charm Channel Rev Address Exposed Message | ||
data-integrator active 1 data-integrator latest/edge 80 10.152.183.234 no | ||
finos-waltz-k8s active 1 finos-waltz-k8s latest/edge 33 10.152.183.147 no | ||
indico 3.3.1 active 1 indico latest/stable 233 10.152.183.148 no | ||
pgbouncer-k8s 1.21.0 active 2 pgbouncer-k8s 0 10.152.183.150 no | ||
pgbouncer-k8s-secondary 1.21.0 active 1 pgbouncer-k8s 1 10.152.183.156 no | ||
postgresql-k8s 14.13 active 2 postgresql-k8s 14/edge 470 10.152.183.57 no | ||
postgresql-test-app active 1 postgresql-test-app latest/edge 301 10.152.183.94 no | ||
redis-broker ubuntu/redis@691f315 active 1 redis-k8s latest/stable 7 no | ||
redis-cache ubuntu/redis@691f315 active 1 redis-k8s latest/stable 7 no | ||
secondary-application active 1 postgresql-test-app latest/edge 301 10.152.183.162 no received database credentials of the second database | ||
|
||
Unit Workload Agent Address Ports Message | ||
data-integrator/0* active idle 10.1.133.20 | ||
finos-waltz-k8s/0* active idle 10.1.133.17 | ||
indico/0* active idle 10.1.133.23 | ||
pgbouncer-k8s-secondary/0* active idle 10.1.133.18 | ||
pgbouncer-k8s/0* active idle 10.1.133.28 | ||
pgbouncer-k8s/1 active idle 10.1.133.19 | ||
postgresql-k8s/0 active idle 10.1.133.13 | ||
postgresql-k8s/1* active idle 10.1.133.14 Primary | ||
postgresql-test-app/0* active idle 10.1.133.8 | ||
redis-broker/0* active idle 10.1.133.25 6379/TCP | ||
redis-cache/0* active idle 10.1.133.27 6379/TCP | ||
secondary-application/0* active idle 10.1.133.16 received database credentials of the second database | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:909 Juju error logs: | ||
|
||
unit-postgresql-test-app-0: 01:40:13 ERROR unit.postgresql-test-app/0.juju-log Uncaught exception while in charm code: | ||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-postgresql-test-app-0/charm/./src/charm.py", line 565, in <module> | ||
main(ApplicationCharm) | ||
File "/var/lib/juju/agents/unit-postgresql-test-app-0/charm/venv/ops/__init__.py", line 343, in __call__ | ||
return _main.main(charm_class=charm_class, use_juju_for_storage=use_juju_for_storage) | ||
File "/var/lib/juju/agents/unit-postgresql-test-app-0/charm/venv/ops/_main.py", line 543, in main | ||
manager.run() | ||
File "/var/lib/juju/agents/unit-postgresql-test-app-0/charm/venv/ops/_main.py", line 529, in run | ||
self._emit() | ||
File "/var/lib/juju/agents/unit-postgresql-test-app-0/charm/venv/ops/_main.py", line 518, in _emit | ||
_emit_charm_event(self.charm, self.dispatcher.event_name, self._juju_context) | ||
File "/var/lib/juju/agents/unit-postgresql-test-app-0/charm/venv/ops/_main.py", line 134, in _emit_charm_event | ||
event_to_emit.emit(*args, **kwargs) | ||
File "/var/lib/juju/agents/unit-postgresql-test-app-0/charm/venv/ops/framework.py", line 347, in emit | ||
framework._emit(event) | ||
File "/var/lib/juju/agents/unit-postgresql-test-app-0/charm/venv/ops/framework.py", line 857, in _emit | ||
self._reemit(event_path) | ||
File "/var/lib/juju/agents/unit-postgresql-test-app-0/charm/venv/ops/framework.py", line 947, in _reemit | ||
custom_handler(event) | ||
File "/var/lib/juju/agents/unit-postgresql-test-app-0/charm/./src/charm.py", line 494, in _on_run_sql_action | ||
cursor.execute(query) | ||
psycopg2.errors.ReadOnlySqlTransaction: cannot execute DROP TABLE in a read-only transaction | ||
|
||
application-redis-cache: 01:53:11 ERROR unit.redis-cache/0.juju-log redis:19: Uncaught exception while in charm code: | ||
Traceback (most recent call last): | ||
File "./src/charm.py", line 159, in <module> | ||
main(RedisCharm) | ||
File "/var/lib/juju/agents/unit-redis-cache-0/charm/venv/ops/main.py", line 402, in main | ||
_emit_charm_event(charm, dispatcher.event_name) | ||
File "/var/lib/juju/agents/unit-redis-cache-0/charm/venv/ops/main.py", line 140, in _emit_charm_event | ||
event_to_emit.emit(*args, **kwargs) | ||
File "/var/lib/juju/agents/unit-redis-cache-0/charm/venv/ops/framework.py", line 278, in emit | ||
framework._emit(event) | ||
File "/var/lib/juju/agents/unit-redis-cache-0/charm/venv/ops/framework.py", line 722, in _emit | ||
self._reemit(event_path) | ||
File "/var/lib/juju/agents/unit-redis-cache-0/charm/venv/ops/framework.py", line 767, in _reemit | ||
custom_handler(event) | ||
File "/var/lib/juju/agents/unit-redis-cache-0/charm/lib/charms/redis_k8s/v0/redis.py", line 91, in _on_relation_changed | ||
event.relation.data[self.model.unit]['hostname'] = str(self._bind_address(event)) | ||
File "/var/lib/juju/agents/unit-redis-cache-0/charm/lib/charms/redis_k8s/v0/redis.py", line 103, in _bind_address | ||
return self.app.name | ||
AttributeError: 'RedisProvides' object has no attribute 'app' | ||
application-redis-cache: 01:53:11 ERROR juju.worker.caasoperator.uniter.redis-cache/0.operation hook "redis-relation-changed" (via hook dispatching script: dispatch) failed: exit status 1 | ||
unit-pgbouncer-k8s-0: 01:55:44 ERROR unit.pgbouncer-k8s/0.juju-log Cluster upgrade failed, ensure pre-upgrade checks are ran first. | ||
unit-pgbouncer-k8s-0: 01:55:46 ERROR unit.pgbouncer-k8s/0.juju-log pgbouncer not running | ||
unit-pgbouncer-k8s-0: 01:55:48 ERROR unit.pgbouncer-k8s/0.juju-log pgbouncer not running | ||
unit-pgbouncer-k8s-0: 01:55:50 ERROR unit.pgbouncer-k8s/0.juju-log pgbouncer not running | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:991 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,89 @@ | ||
[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-test-app-301 | ||
[32mINFO [0m juju.model:model.py:2098 Deploying ch:amd64/jammy/pgbouncer-k8s-359 | ||
[32mINFO [0m juju.model:model.py:2098 Deploying ch:amd64/jammy/postgresql-k8s-470 | ||
[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 integration.test_upgrade:test_upgrade.py:79 Wait for applications to become active | ||
[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 | ||
pgbouncer-k8s/0 [allocating] waiting: installing agent | ||
pgbouncer-k8s/1 [allocating] waiting: installing agent | ||
pgbouncer-k8s/2 [allocating] waiting: installing agent | ||
postgresql-test-app/0 [allocating] waiting: installing agent | ||
[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 | ||
pgbouncer-k8s/0 [executing] maintenance: installing charm software | ||
pgbouncer-k8s/1 [executing] maintenance: installing charm software | ||
pgbouncer-k8s/2 [executing] maintenance: installing charm software | ||
postgresql-test-app/0 [executing] active: | ||
[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 | ||
pgbouncer-k8s/0 [executing] blocked: waiting for backend database relation to initialise | ||
pgbouncer-k8s/1 [executing] blocked: waiting for backend database relation to initialise | ||
pgbouncer-k8s/2 [executing] blocked: waiting for backend database relation to initialise | ||
[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: | ||
pgbouncer-k8s/0 [executing] waiting: waiting for backend-database relation to connect | ||
pgbouncer-k8s/1 [executing] blocked: waiting for backend database relation to initialise | ||
pgbouncer-k8s/2 [executing] blocked: waiting for backend database relation to initialise | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [executing] unknown: | ||
postgresql-k8s/1 [executing] waiting: awaiting for primary endpoint to be ready | ||
postgresql-k8s/2 [executing] unknown: | ||
pgbouncer-k8s/0 [idle] blocked: waiting for backend database relation to initialise | ||
pgbouncer-k8s/1 [idle] blocked: waiting for backend database relation to initialise | ||
pgbouncer-k8s/2 [idle] blocked: waiting for backend database relation to initialise | ||
[32mINFO [0m juju.model:model.py:2972 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: | ||
pgbouncer-k8s/0 [idle] blocked: waiting for backend database relation to initialise | ||
pgbouncer-k8s/1 [idle] blocked: waiting for backend database relation to initialise | ||
pgbouncer-k8s/2 [idle] blocked: waiting for backend database relation to initialise | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [idle] unknown: | ||
postgresql-k8s/1 [idle] active: Primary | ||
postgresql-k8s/2 [idle] unknown: | ||
pgbouncer-k8s/0 [idle] blocked: waiting for backend database relation to initialise | ||
pgbouncer-k8s/1 [idle] blocked: waiting for backend database relation to initialise | ||
pgbouncer-k8s/2 [idle] blocked: waiting for backend database relation to initialise | ||
[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 | ||
pgbouncer-k8s/0 [executing] active: | ||
pgbouncer-k8s/1 [executing] active: | ||
pgbouncer-k8s/2 [executing] active: | ||
postgresql-test-app/0 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [idle] waiting: awaiting for cluster to start | ||
postgresql-k8s/1 [executing] maintenance: reconfiguring cluster | ||
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 cluster to start | ||
pgbouncer-k8s/0 [idle] active: | ||
pgbouncer-k8s/1 [idle] active: | ||
pgbouncer-k8s/2 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-k8s/0 [idle] active: | ||
postgresql-k8s/1 [idle] maintenance: reconfiguring cluster | ||
postgresql-k8s/2 [idle] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2972 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:2972 Waiting for model: | ||
postgresql-k8s/0 [idle] active: | ||
postgresql-k8s/1 [idle] active: Primary | ||
postgresql-k8s/2 [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,16 @@ | ||
[32mINFO [0m juju.model:model.py:2098 Deploying ch:amd64/jammy/data-integrator-80 | ||
[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: | ||
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 second database | ||
finos-waltz-k8s/0 [idle] active: | ||
pgbouncer-k8s-secondary/0 [idle] active: | ||
data-integrator/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: | ||
data-integrator/0 [idle] blocked: Please relate the data-integrator with the desired product |
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 @@ | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
postgresql-test-app/0 [executing] 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: | ||
[32mINFO [0m juju.model:model.py:2972 Waiting for model: | ||
pgbouncer-k8s/0 [idle] active: | ||
pgbouncer-k8s/1 [idle] active: |
Oops, something went wrong.