Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit bd99d88

Browse files
Allure report canonical#27
1 parent cb2b75a commit bd99d88

File tree

197 files changed

+3703
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+3703
-2
lines changed

27/app.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
INFO  integration.test_charm:test_charm.py:296 connecting to primary postgresql-k8s/1 on 10.1.82.77
2+
INFO  httpx:_client.py:1773 HTTP Request: DELETE https://10.1.0.56:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK"
3+
INFO  integration.test_charm:test_charm.py:305 primary pod deleted
4+
INFO  integration.test_charm:test_charm.py:308 wait for juju to reset postgres container
5+
INFO  juju.model:model.py:2958 Waiting for model:
6+
postgresql-k8s/0 [idle] active:
7+
postgresql-k8s/1 [idle] active: Primary
8+
postgresql-k8s/2 [idle] active:
9+
INFO  juju.model:model.py:2958 Waiting for model:
10+
postgresql-k8s/0 [idle] active:
11+
postgresql-k8s/1 [idle] waiting: awaiting for cluster to start
12+
postgresql-k8s/2 [idle] active:
13+
INFO  juju.model:model.py:2958 Waiting for model:
14+
postgresql-k8s/0 [idle] active:
15+
postgresql-k8s/1 [idle] waiting: awaiting for cluster to start
16+
postgresql-k8s/2 [idle] active:
17+
INFO  juju.model:model.py:2958 Waiting for model:
18+
postgresql-k8s/0 [idle] active:
19+
postgresql-k8s/1 [idle] waiting: awaiting for cluster to start
20+
postgresql-k8s/2 [idle] active:
21+
INFO  juju.model:model.py:2958 Waiting for model:
22+
postgresql-k8s/0 [idle] active:
23+
postgresql-k8s/1 [idle] waiting: awaiting for cluster to start
24+
postgresql-k8s/2 [idle] active:
25+
INFO  juju.model:model.py:2958 Waiting for model:
26+
postgresql-k8s/0 [idle] active:
27+
postgresql-k8s/1 [idle] waiting: awaiting for cluster to start
28+
postgresql-k8s/2 [idle] active:
29+
INFO  juju.model:model.py:2958 Waiting for model:
30+
postgresql-k8s/0 [idle] active: Primary
31+
postgresql-k8s/1 [idle] waiting: awaiting for cluster to start
32+
postgresql-k8s/2 [idle] active:
33+
INFO  juju.model:model.py:2958 Waiting for model:
34+
postgresql-k8s/0 [idle] active: Primary
35+
postgresql-k8s/1 [idle] waiting: awaiting for cluster to start
36+
postgresql-k8s/2 [idle] active:
37+
INFO  juju.model:model.py:2958 Waiting for model:
38+
postgresql-k8s/0 [idle] active: Primary
39+
postgresql-k8s/1 [idle] waiting: awaiting for cluster to start
40+
postgresql-k8s/2 [idle] active:
41+
INFO  juju.model:model.py:2958 Waiting for model:
42+
postgresql-k8s/0 [idle] active: Primary
43+
postgresql-k8s/1 [idle] waiting: awaiting for cluster to start
44+
postgresql-k8s/2 [idle] active:
45+
INFO  juju.model:model.py:2958 Waiting for model:
46+
postgresql-k8s/0 [idle] active: Primary
47+
postgresql-k8s/1 [idle] waiting: awaiting for cluster to start
48+
postgresql-k8s/2 [idle] active:
49+
INFO  juju.model:model.py:2958 Waiting for model:
50+
postgresql-k8s/0 [idle] active: Primary
51+
postgresql-k8s/1 [idle] active:
52+
postgresql-k8s/2 [idle] active:
53+
INFO  integration.test_charm:test_charm.py:317 juju has reset postgres container
54+
INFO  integration.test_charm:test_charm.py:323 connecting to the database host: 10.1.82.75
55+
INFO  integration.test_charm:test_charm.py:323 connecting to the database host: 10.1.82.82
56+
INFO  integration.test_charm:test_charm.py:323 connecting to the database host: 10.1.82.79
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
INFO  pytest_operator.plugin:plugin.py:862 Model status:
2+
3+
Model Controller Cloud/Region Version SLA Timestamp
4+
test microk8s-localhost microk8s/localhost 3.1.8 unsupported 10:15:38Z
5+
6+
App Version Status Scale Charm Channel Rev Address Exposed Message
7+
postgresql-k8s 14.11 active 3 postgresql-k8s 0 10.152.183.82 no
8+
9+
Unit Workload Agent Address Ports Message
10+
postgresql-k8s/0 active idle 10.1.178.75
11+
postgresql-k8s/1* active idle 10.1.178.76 Primary
12+
postgresql-k8s/2 active idle 10.1.178.77
13+
14+
INFO  pytest_operator.plugin:plugin.py:868 Juju error logs:
15+
16+
unit-postgresql-k8s-1: 10:15:35 ERROR unit.postgresql-k8s/1.juju-log Uncaught exception while in charm code:
17+
Traceback (most recent call last):
18+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/./src/charm.py", line 1690, in <module>
19+
main(PostgresqlOperatorCharm, use_juju_for_storage=True)
20+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/main.py", line 544, in main
21+
manager.run()
22+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/main.py", line 520, in run
23+
self._emit()
24+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/main.py", line 509, in _emit
25+
_emit_charm_event(self.charm, self.dispatcher.event_name)
26+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/main.py", line 143, in _emit_charm_event
27+
event_to_emit.emit(*args, **kwargs)
28+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/framework.py", line 352, in emit
29+
framework._emit(event)
30+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/framework.py", line 851, in _emit
31+
self._reemit(event_path)
32+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/framework.py", line 941, in _reemit
33+
custom_handler(event)
34+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/./src/charm.py", line 1023, in _on_set_password
35+
self.set_secret(APP_SCOPE, f"{username}-password", password)
36+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/./src/charm.py", line 287, in set_secret
37+
self.peer_relation_data(scope).set_secret(peers.id, secret_key, value)
38+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 519, in wrapper
39+
return f(self, *args, **kwargs)
40+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1856, in set_secret
41+
self.update_relation_data(relation_id, {full_field: value})
42+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 494, in wrapper
43+
return f(self, *args, **kwargs)
44+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1264, in update_relation_data
45+
return self._update_relation_data(relation, data)
46+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 534, in wrapper
47+
return f(self, *args, **kwargs)
48+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 2086, in _update_relation_data
49+
_, normal_fields = self._process_secret_fields(
50+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1063, in _process_secret_fields
51+
if group_result := operation(relation, group, secret_fields, *args, **kwargs):
52+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1387, in _add_or_update_relation_secrets
53+
return self._update_relation_secret(relation, group, secret_fields, data)
54+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 506, in wrapper
55+
return f(self, *args, **kwargs)
56+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1372, in _update_relation_secret
57+
secret.set_content(full_content)
58+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 663, in set_content
59+
self.meta.set_content(content)
60+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/model.py", line 1351, in set_content
61+
self._backend.secret_set(typing.cast(str, self.id), content=content)
62+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/model.py", line 3418, in secret_set
63+
self._run_for_secret('secret-set', *args)
64+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/model.py", line 3380, in _run_for_secret
65+
return self._run(*args, return_output=return_output, use_json=use_json)
66+
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/model.py", line 3022, in _run
67+
result = subprocess.run(args, **kwargs) # type: ignore
68+
File "/usr/lib/python3.10/subprocess.py", line 503, in run
69+
with Popen(*popenargs, **kwargs) as process:
70+
File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
71+
self._execute_child(args, executable, preexec_fn, close_fds,
72+
File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
73+
raise child_exception_type(errno_num, err_msg, err_filename)
74+
OSError: [Errno 7] Argument list too long: '/var/lib/juju/tools/unit-postgresql-k8s-1/secret-set'
75+
76+
INFO  pytest_operator.plugin:plugin.py:947 Forgetting model main...
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
INFO  pytest_operator.plugin:plugin.py:734 Connecting to existing model microk8s-localhost:test on unspecified cloud
2+
WARNING  juju.client.connection:connection.py:578 Receiver: Connection closed, reconnecting
3+
ERROR  asyncio:base_events.py:1758 Task exception was never retrieved
4+
future: <Task finished name='Task-71' coro=<Connection.reconnect() done, defined at /home/runner/work/test-runners-2-github-x64-postgresql-k8s-operator/test-runners-2-github-x64-postgresql-k8s-operator/.tox/integration/lib/python3.10/site-packages/juju/client/connection.py:779> exception=OSError(9, 'Bad file descriptor')>
5+
Traceback (most recent call last):
6+
File "/home/runner/work/test-runners-2-github-x64-postgresql-k8s-operator/test-runners-2-github-x64-postgresql-k8s-operator/.tox/integration/lib/python3.10/site-packages/juju/client/connection.py", line 788, in reconnect
7+
res = await connector(
8+
File "/home/runner/work/test-runners-2-github-x64-postgresql-k8s-operator/test-runners-2-github-x64-postgresql-k8s-operator/.tox/integration/lib/python3.10/site-packages/juju/client/connection.py", line 868, in _connect_with_login
9+
await self._connect(endpoints)
10+
File "/home/runner/work/test-runners-2-github-x64-postgresql-k8s-operator/test-runners-2-github-x64-postgresql-k8s-operator/.tox/integration/lib/python3.10/site-packages/juju/client/connection.py", line 817, in _connect
11+
result = await task
12+
File "/usr/lib/python3.10/asyncio/tasks.py", line 571, in _wait_for_one
13+
return f.result() # May raise f.exception().
14+
File "/home/runner/work/test-runners-2-github-x64-postgresql-k8s-operator/test-runners-2-github-x64-postgresql-k8s-operator/.tox/integration/lib/python3.10/site-packages/juju/client/connection.py", line 806, in _try_endpoint
15+
return await self._open(endpoint, cacert)
16+
File "/home/runner/work/test-runners-2-github-x64-postgresql-k8s-operator/test-runners-2-github-x64-postgresql-k8s-operator/.tox/integration/lib/python3.10/site-packages/juju/client/connection.py", line 427, in _open
17+
return (await websockets.connect(
18+
File "/home/runner/work/test-runners-2-github-x64-postgresql-k8s-operator/test-runners-2-github-x64-postgresql-k8s-operator/.tox/integration/lib/python3.10/site-packages/websockets/legacy/client.py", line 647, in __await_impl_timeout__
19+
return await self.__await_impl__()
20+
File "/home/runner/work/test-runners-2-github-x64-postgresql-k8s-operator/test-runners-2-github-x64-postgresql-k8s-operator/.tox/integration/lib/python3.10/site-packages/websockets/legacy/client.py", line 651, in __await_impl__
21+
_transport, _protocol = await self._create_connection()
22+
File "/usr/lib/python3.10/asyncio/base_events.py", line 1103, in create_connection
23+
transport, protocol = await self._create_connection_transport(
24+
File "/usr/lib/python3.10/asyncio/base_events.py", line 1119, in _create_connection_transport
25+
sock.setblocking(False)
26+
OSError: [Errno 9] Bad file descriptor
27+
INFO  integration.test_trust:test_trust.py:58 Response from rbac check ('no' means enabled): no
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
INFO  pytest_operator.plugin:plugin.py:734 Connecting to existing model microk8s-localhost:test on unspecified cloud
2+
INFO  juju.model:model.py:2098 Deploying local:jammy/postgresql-k8s-0
3+
INFO  juju.model:model.py:2958 Waiting for model:
4+
postgresql-k8s/0 [allocating] waiting: installing agent
5+
postgresql-k8s/1 [allocating] waiting: installing agent
6+
postgresql-k8s/2 [allocating] waiting: installing agent
7+
INFO  juju.model:model.py:2958 Waiting for model:
8+
postgresql-k8s/0 [executing] maintenance: installing charm software
9+
postgresql-k8s/1 [executing] maintenance: installing charm software
10+
postgresql-k8s/2 [executing] maintenance: installing charm software
11+
INFO  juju.model:model.py:2958 Waiting for model:
12+
postgresql-k8s/0 [executing] unknown:
13+
postgresql-k8s/1 [executing] waiting: awaiting for cluster to start
14+
postgresql-k8s/2 [executing] unknown:
15+
INFO  juju.model:model.py:2958 Waiting for model:
16+
postgresql-k8s/0 [idle] unknown:
17+
postgresql-k8s/1 [executing] active: Primary
18+
postgresql-k8s/2 [idle] unknown:
19+
INFO  juju.model:model.py:2958 Waiting for model:
20+
postgresql-k8s/0 [idle] unknown:
21+
postgresql-k8s/1 [executing] active: Primary
22+
postgresql-k8s/2 [idle] unknown:
23+
INFO  juju.model:model.py:2958 Waiting for model:
24+
postgresql-k8s/0 [idle] waiting: awaiting for cluster to start
25+
postgresql-k8s/1 [executing] active: Primary
26+
postgresql-k8s/2 [idle] waiting: awaiting for cluster to start
27+
INFO  juju.model:model.py:2958 Waiting for model:
28+
postgresql-k8s/0 [idle] waiting: awaiting for member to start
29+
postgresql-k8s/1 [idle] active: Primary
30+
postgresql-k8s/2 [idle] waiting: awaiting for cluster to start
31+
INFO  juju.model:model.py:2958 Waiting for model:
32+
postgresql-k8s/0 [idle] waiting: awaiting for member to start
33+
postgresql-k8s/1 [idle] active: Primary
34+
postgresql-k8s/2 [idle] waiting: awaiting for member to start
35+
INFO  juju.model:model.py:2958 Waiting for model:
36+
postgresql-k8s/0 [idle] active:
37+
postgresql-k8s/1 [idle] active: Primary
38+
postgresql-k8s/2 [idle] waiting: awaiting for member to start
39+
INFO  juju.model:model.py:2958 Waiting for model:
40+
postgresql-k8s/0 [idle] active:
41+
postgresql-k8s/1 [idle] active: Primary
42+
postgresql-k8s/2 [idle] active:
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
INFO  juju.model:model.py:2098 Deploying local:jammy/postgresql-k8s-1
2+
INFO  juju.model:model.py:2958 Waiting for model:
3+
postgresql-k8s (waiting for exactly 3 units, current : 2)
4+
INFO  juju.model:model.py:2958 Waiting for model:
5+
postgresql-k8s/0 [executing] maintenance: installing charm software
6+
postgresql-k8s/1 [executing] waiting: awaiting for cluster to start
7+
postgresql-k8s/2 [executing] maintenance: installing charm software
8+
INFO  juju.model:model.py:2958 Waiting for model:
9+
postgresql-k8s/0 [idle] unknown:
10+
postgresql-k8s/1 [executing] waiting: awaiting for primary endpoint to be ready
11+
postgresql-k8s/2 [idle] unknown:
12+
INFO  juju.model:model.py:2958 Waiting for model:
13+
postgresql-k8s/0 [idle] unknown:
14+
postgresql-k8s/1 [executing] waiting: awaiting for primary endpoint to be ready
15+
postgresql-k8s/2 [idle] unknown:
16+
INFO  juju.model:model.py:2958 Waiting for model:
17+
postgresql-k8s/0 [idle] unknown:
18+
postgresql-k8s/1 [idle] active: Primary
19+
postgresql-k8s/2 [idle] unknown:
20+
INFO  juju.model:model.py:2958 Waiting for model:
21+
postgresql-k8s/0 [executing] unknown:
22+
postgresql-k8s/1 [idle] active: Primary
23+
postgresql-k8s/2 [executing] unknown:
24+
INFO  juju.model:model.py:2958 Waiting for model:
25+
postgresql-k8s/0 [idle] unknown:
26+
postgresql-k8s/1 [executing] active: Primary
27+
postgresql-k8s/2 [idle] unknown:
28+
INFO  juju.model:model.py:2958 Waiting for model:
29+
postgresql-k8s/0 [idle] unknown:
30+
postgresql-k8s/1 [executing] active: Primary
31+
postgresql-k8s/2 [idle] unknown:
32+
INFO  juju.model:model.py:2958 Waiting for model:
33+
postgresql-k8s/0 [idle] waiting: awaiting for member to start
34+
postgresql-k8s/1 [idle] active: Primary
35+
postgresql-k8s/2 [idle] waiting: awaiting for cluster to start
36+
INFO  juju.model:model.py:2958 Waiting for model:
37+
postgresql-k8s/0 [idle] active:
38+
postgresql-k8s/1 [idle] active: Primary
39+
postgresql-k8s/2 [idle] waiting: awaiting for member to start
40+
INFO  juju.model:model.py:2958 Waiting for model:
41+
postgresql-k8s/0 [idle] active:
42+
postgresql-k8s/1 [idle] active: Primary
43+
postgresql-k8s/2 [idle] waiting: awaiting for member to start
44+
INFO  juju.model:model.py:2958 Waiting for model:
45+
postgresql-k8s/0 [executing] active:
46+
postgresql-k8s/1 [idle] active: Primary
47+
postgresql-k8s/2 [idle] active:
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
INFO  juju.model:model.py:2958 Waiting for model:
2+
postgresql-k8s/0 [idle] active:
3+
postgresql-k8s/1 [idle] active:
4+
postgresql-k8s/2 [idle] active:
5+
postgresql-test-app/0 [executing] active:
6+
postgresql-test-app2/0 [executing] active:
7+
WARNING  juju.model:model.py:1564 relate is deprecated and will be removed. Use integrate instead.
8+
WARNING  juju.model:model.py:1564 relate is deprecated and will be removed. Use integrate instead.
9+
INFO  integration.test_db:test_db.py:217 Verify that the charm remains blocked if there are other blocking relations
10+
INFO  integration.test_db:test_db.py:228 Verify that active status is restored when all blocking relations are gone
11+
INFO  juju.model:model.py:2958 Waiting for model:
12+
postgresql-k8s/0 [executing] active:
13+
postgresql-k8s/1 [executing] blocked: roles requested through relation, use postgresql_client interface instead
14+
postgresql-k8s/2 [executing] active:
15+
INFO  pytest_operator.plugin:plugin.py:862 Model status:
16+
17+
Model Controller Cloud/Region Version SLA Timestamp
18+
test microk8s-localhost microk8s/localhost 3.1.8 unsupported 10:17:41Z
19+
20+
App Version Status Scale Charm Channel Rev Address Exposed Message
21+
postgresql-k8s 14.11 active 3 postgresql-k8s 0 10.152.183.71 no
22+
postgresql-test-app active 1 postgresql-test-app edge 127 10.152.183.42 no
23+
postgresql-test-app2 active 1 postgresql-test-app edge 127 10.152.183.243 no
24+
25+
Unit Workload Agent Address Ports Message
26+
postgresql-k8s/0 active idle 10.1.113.11
27+
postgresql-k8s/1* active idle 10.1.113.12
28+
postgresql-k8s/2 active idle 10.1.113.13
29+
postgresql-test-app2/0* active idle 10.1.113.17
30+
postgresql-test-app/0* active idle 10.1.113.16
31+
32+
INFO  pytest_operator.plugin:plugin.py:868 Juju error logs:
33+
34+
unit-postgresql-k8s-1: 10:14:29 ERROR unit.postgresql-k8s/1.juju-log db:8: ERROR - `extensions` (pg_trgm, unaccent) cannot be requested through relations - Please enable extensions through `juju config` and add the relation again.
35+
unit-postgresql-k8s-1: 10:16:17 ERROR unit.postgresql-k8s/1.juju-log db:10: ERROR - `extensions` (pg_trgm, unaccent) cannot be requested through relations - Please enable extensions through `juju config` and add the relation again.
36+
37+
INFO  pytest_operator.plugin:plugin.py:947 Forgetting model main...

0 commit comments

Comments
 (0)