Skip to content

Commit

Permalink
Allure report canonical#101
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 4, 2024
1 parent c9a8059 commit fe18064
Show file tree
Hide file tree
Showing 318 changed files with 3,964 additions and 2 deletions.
2 changes: 2 additions & 0 deletions 101/app.js

Large diffs are not rendered by default.

80 changes: 80 additions & 0 deletions 101/data/attachments/111573a4dfd2c7aa.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
INFO  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:44:10Z

App Version Status Scale Charm Channel Rev Address Exposed Message
postgresql-k8s 14.11 active 3 postgresql-k8s 0 10.152.183.34 no

Unit Workload Agent Address Ports Message
postgresql-k8s/0* active idle 10.1.151.139 Primary
postgresql-k8s/1 active idle 10.1.151.141
postgresql-k8s/2 active idle 10.1.151.140

INFO  pytest_operator.plugin:plugin.py:868 Juju error logs:

unit-postgresql-k8s-0: 01:44:05 ERROR unit.postgresql-k8s/0.juju-log Uncaught exception while in charm code:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/./src/charm.py", line 1837, in <module>
main(PostgresqlOperatorCharm, use_juju_for_storage=True)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/main.py", line 548, in main
manager.run()
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/main.py", line 527, in run
self._emit()
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/main.py", line 516, in _emit
_emit_charm_event(self.charm, self.dispatcher.event_name)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/main.py", line 147, in _emit_charm_event
event_to_emit.emit(*args, **kwargs)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/framework.py", line 348, in emit
framework._emit(event)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/framework.py", line 860, in _emit
self._reemit(event_path)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/framework.py", line 950, in _reemit
custom_handler(event)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/tempo_k8s/v1/charm_tracing.py", line 544, in wrapped_function
return callable(*args, **kwargs) # type: ignore
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/./src/charm.py", line 1147, in _on_set_password
self.set_secret(APP_SCOPE, f"{username}-password", password)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/tempo_k8s/v1/charm_tracing.py", line 544, in wrapped_function
return callable(*args, **kwargs) # type: ignore
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/./src/charm.py", line 317, in set_secret
self.peer_relation_data(scope).set_secret(peers.id, secret_key, value)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 519, in wrapper
return f(self, *args, **kwargs)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1860, in set_secret
self.update_relation_data(relation_id, {full_field: value})
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 494, in wrapper
return f(self, *args, **kwargs)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1268, in update_relation_data
return self._update_relation_data(relation, data)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 534, in wrapper
return f(self, *args, **kwargs)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 2090, in _update_relation_data
_, normal_fields = self._process_secret_fields(
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1067, in _process_secret_fields
if group_result := operation(relation, group, secret_fields, *args, **kwargs):
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1391, in _add_or_update_relation_secrets
return self._update_relation_secret(relation, group, secret_fields, data)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 506, in wrapper
return f(self, *args, **kwargs)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1376, in _update_relation_secret
secret.set_content(full_content)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 667, in set_content
self.meta.set_content(content)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/model.py", line 1409, in set_content
self._backend.secret_set(typing.cast(str, self.id), content=content)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/model.py", line 3557, in secret_set
self._run_for_secret('secret-set', *args)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/model.py", line 3515, in _run_for_secret
return self._run(*args, return_output=return_output, use_json=use_json)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/model.py", line 3139, in _run
result = subprocess.run(args, **kwargs) # type: ignore
File "/usr/lib/python3.10/subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 7] Argument list too long: '/var/lib/juju/tools/unit-postgresql-k8s-0/secret-set'

INFO  pytest_operator.plugin:plugin.py:947 Forgetting model main...
73 changes: 73 additions & 0 deletions 101/data/attachments/1903ece5147fed93.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
INFO  juju.model:model.py:2971 Waiting for model:
untrusted-postgresql-k8s/0 [executing] maintenance: installing charm software
untrusted-postgresql-k8s/1 [executing] maintenance: installing charm software
untrusted-postgresql-k8s/2 [executing] blocked: Insufficient permissions, try: `juju trust untrusted-postgresql-k8s --scope=cluster`
INFO  juju.model:model.py:2971 Waiting for model:
untrusted-postgresql-k8s/0 [idle] unknown:
untrusted-postgresql-k8s/1 [idle] unknown:
untrusted-postgresql-k8s/2 [executing] waiting: awaiting for cluster to start
INFO  juju.model:model.py:2971 Waiting for model:
untrusted-postgresql-k8s/0 [idle] unknown:
untrusted-postgresql-k8s/1 [idle] unknown:
untrusted-postgresql-k8s/2 [executing] waiting: awaiting for primary endpoint to be ready
INFO  juju.model:model.py:2971 Waiting for model:
untrusted-postgresql-k8s/0 [idle] unknown:
untrusted-postgresql-k8s/1 [idle] unknown:
untrusted-postgresql-k8s/2 [idle] active: Primary
INFO  juju.model:model.py:2971 Waiting for model:
untrusted-postgresql-k8s/0 [executing] waiting: awaiting for cluster to start
untrusted-postgresql-k8s/1 [executing] waiting: awaiting for cluster to start
untrusted-postgresql-k8s/2 [idle] active: Primary
INFO  juju.model:model.py:2971 Waiting for model:
untrusted-postgresql-k8s/0 [idle] waiting: awaiting for member to start
untrusted-postgresql-k8s/1 [idle] waiting: awaiting for cluster to start
untrusted-postgresql-k8s/2 [idle] active: Primary
INFO  juju.model:model.py:2971 Waiting for model:
untrusted-postgresql-k8s/0 [idle] waiting: awaiting for member to start
untrusted-postgresql-k8s/1 [idle] waiting: awaiting for member to start
untrusted-postgresql-k8s/2 [idle] active: Primary
INFO  juju.model:model.py:2971 Waiting for model:
untrusted-postgresql-k8s/0 [idle] active:
untrusted-postgresql-k8s/1 [idle] waiting: awaiting for member to start
untrusted-postgresql-k8s/2 [executing] active: Primary
INFO  juju.model:model.py:2971 Waiting for model:
untrusted-postgresql-k8s/0 [idle] active:
untrusted-postgresql-k8s/1 [idle] waiting: awaiting for member to start
untrusted-postgresql-k8s/2 [idle] active: Primary
INFO  juju.model:model.py:2971 Waiting for model:
untrusted-postgresql-k8s/0 [idle] active:
untrusted-postgresql-k8s/1 [idle] waiting: awaiting for member to start
untrusted-postgresql-k8s/2 [idle] active: Primary
INFO  juju.model:model.py:2971 Waiting for model:
untrusted-postgresql-k8s/0 [idle] active:
untrusted-postgresql-k8s/1 [idle] waiting: awaiting for member to start
untrusted-postgresql-k8s/2 [idle] active: Primary
INFO  juju.model:model.py:2971 Waiting for model:
untrusted-postgresql-k8s/0 [idle] active:
untrusted-postgresql-k8s/1 [idle] active:
untrusted-postgresql-k8s/2 [idle] active: Primary
INFO  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:39:55Z

App Version Status Scale Charm Channel Rev Address Exposed Message
untrusted-postgresql-k8s 14.11 active 3 postgresql-k8s 0 10.152.183.20 no

Unit Workload Agent Address Ports Message
untrusted-postgresql-k8s/0 active idle 10.1.153.203
untrusted-postgresql-k8s/1 active idle 10.1.153.204
untrusted-postgresql-k8s/2* active idle 10.1.153.205 Primary

INFO  pytest_operator.plugin:plugin.py:868 Juju error logs:

unit-untrusted-postgresql-k8s-2: 01:34:08 ERROR unit.untrusted-postgresql-k8s/2.juju-log
Access to k8s cluster resources is not authorized. This happens when RBAC is enabled and the deployed application was not trusted by the juju admin.
To fix this issue, run `juju trust untrusted-postgresql-k8s --scope=cluster` (or remove & re-deploy untrusted-postgresql-k8s with `--trust`)

unit-untrusted-postgresql-k8s-2: 01:34:09 ERROR unit.untrusted-postgresql-k8s/2.juju-log
Access to k8s cluster resources is not authorized. This happens when RBAC is enabled and the deployed application was not trusted by the juju admin.
To fix this issue, run `juju trust untrusted-postgresql-k8s --scope=cluster` (or remove & re-deploy untrusted-postgresql-k8s with `--trust`)


INFO  pytest_operator.plugin:plugin.py:947 Forgetting model main...
64 changes: 64 additions & 0 deletions 101/data/attachments/1bc40bc9fd685685.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
INFO  juju.model:model.py:2097 Deploying local:jammy/postgresql-k8s-1
INFO  juju.model:model.py:2971 Waiting for model:
second-postgresql-k8s/0 [allocating] waiting: installing agent
second-postgresql-k8s/1 [allocating] waiting: installing agent
INFO  juju.model:model.py:2971 Waiting for model:
second-postgresql-k8s/0 [executing] maintenance: installing charm software
second-postgresql-k8s/1 [executing] waiting: awaiting for cluster to start
INFO  juju.model:model.py:2971 Waiting for model:
second-postgresql-k8s/0 [idle] unknown:
second-postgresql-k8s/1 [executing] waiting: awaiting for primary endpoint to be ready
INFO  juju.model:model.py:2971 Waiting for model:
second-postgresql-k8s/0 [idle] unknown:
second-postgresql-k8s/1 [executing] waiting: awaiting for primary endpoint to be ready
INFO  juju.model:model.py:2971 Waiting for model:
second-postgresql-k8s/0 [idle] unknown:
second-postgresql-k8s/1 [executing] waiting: awaiting for primary endpoint to be ready
INFO  juju.model:model.py:2971 Waiting for model:
second-postgresql-k8s/0 [executing] unknown:
second-postgresql-k8s/1 [idle] active: Primary
INFO  juju.model:model.py:2971 Waiting for model:
second-postgresql-k8s/0 [executing] unknown:
second-postgresql-k8s/1 [executing] active: Primary
INFO  juju.model:model.py:2971 Waiting for model:
second-postgresql-k8s/0 [idle] unknown:
second-postgresql-k8s/1 [executing] active: Primary
INFO  juju.model:model.py:2971 Waiting for model:
second-postgresql-k8s/0 [idle] waiting: awaiting for member to start
second-postgresql-k8s/1 [idle] active: Primary
INFO  juju.model:model.py:2971 Waiting for model:
second-postgresql-k8s/0 [idle] waiting: awaiting for member to start
second-postgresql-k8s/1 [idle] active: Primary
INFO  juju.model:model.py:2971 Waiting for model:
second-postgresql-k8s/0 [idle] waiting: awaiting for member to start
second-postgresql-k8s/1 [idle] active: Primary
INFO  juju.model:model.py:2971 Waiting for model:
second-postgresql-k8s/0 [idle] waiting: awaiting for member to start
second-postgresql-k8s/1 [idle] active: Primary
INFO  httpx:_client.py:1026 HTTP Request: GET https://10.1.0.4:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK"
INFO  httpx:_client.py:1026 HTTP Request: GET https://10.1.0.4:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK"
INFO  httpx:_client.py:1026 HTTP Request: GET https://10.1.0.4:16443/api/v1/namespaces/test/pods/postgresql-k8s-0 "HTTP/1.1 200 OK"
INFO  httpx:_client.py:1026 HTTP Request: GET https://10.1.0.4:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK"
INFO  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:48:17Z

App Version Status Scale Charm Channel Rev Address Exposed Message
postgresql-k8s 14.11 active 3 postgresql-k8s 0 10.152.183.18 no
postgresql-test-app active 1 postgresql-test-app edge 172 10.152.183.242 no received database credentials of the first database
second-postgresql-k8s 14.11 active 2 postgresql-k8s 1 10.152.183.217 no

Unit Workload Agent Address Ports Message
postgresql-k8s/0 active idle 10.1.139.11 Primary
postgresql-k8s/1 active idle 10.1.139.13
postgresql-k8s/2* active idle 10.1.139.15
postgresql-test-app/0* active idle 10.1.139.14 received database credentials of the first database
second-postgresql-k8s/0 active idle 10.1.139.18
second-postgresql-k8s/1* active idle 10.1.139.19 Primary

INFO  pytest_operator.plugin:plugin.py:868 Juju error logs:

unit-postgresql-k8s-2: 01:39:40 ERROR unit.postgresql-k8s/2.juju-log Cluster upgrade failed, ensure pre-upgrade checks are ran first.

INFO  pytest_operator.plugin:plugin.py:947 Forgetting model main...
22 changes: 22 additions & 0 deletions 101/data/attachments/1c8e73fc92b81f9d.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
WARNING  juju.model:model.py:1563 relate is deprecated and will be removed. Use integrate instead.
WARNING  juju.model:model.py:1563 relate is deprecated and will be removed. Use integrate instead.
INFO  juju.model:model.py:2971 Waiting for model:
postgresql-test-app/0 [idle] active: received database credentials for cluster database
postgresql-test-app/1 [idle] active: received database credentials for cluster database
database/0 [executing] active:
database/1 [executing] active: Primary
database/2 [executing] active:
another-database/0 [executing] active: Primary
another-database/1 [executing] active:
another-database/2 [executing] active:
INFO  juju.model:model.py:2971 Waiting for model:
postgresql-test-app/0 [idle] active: received database credentials for cluster2
postgresql-test-app/1 [idle] active: received database credentials for cluster1
database/0 [idle] active:
database/1 [idle] active: Primary
database/2 [idle] active:
another-database/0 [idle] active: Primary
another-database/1 [idle] active:
another-database/2 [idle] active:
INFO  httpx:_client.py:1773 HTTP Request: GET https://10.1.0.150:16443/api/v1/namespaces/test/services/another-database-primary "HTTP/1.1 200 OK"
INFO  httpx:_client.py:1773 HTTP Request: GET https://10.1.0.150:16443/api/v1/namespaces/test/services/database-primary "HTTP/1.1 200 OK"
23 changes: 23 additions & 0 deletions 101/data/attachments/1e8ae87a76824575.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
INFO  pytest_operator.plugin:plugin.py:734 Connecting to existing model microk8s-localhost:test on unspecified cloud
INFO  juju.model:model.py:2097 Deploying ch:amd64/jammy/postgresql-k8s-281
INFO  juju.model:model.py:2971 Waiting for model:
postgresql-k8s/0 [allocating] waiting: installing agent
INFO  juju.model:model.py:2971 Waiting for model:
postgresql-k8s/0 [executing] maintenance: installing charm software
INFO  juju.model:model.py:2971 Waiting for model:
postgresql-k8s/0 [executing] unknown:
INFO  juju.model:model.py:2971 Waiting for model:
postgresql-k8s/0 [idle] unknown:
INFO  juju.model:model.py:2971 Waiting for model:
postgresql-k8s/0 [idle] unknown:
INFO  juju.model:model.py:2971 Waiting for model:
postgresql-k8s/0 [idle] waiting: awaiting for cluster to start
INFO  integration.ha_tests.test_smoke:test_smoke.py:70 waiting for postgresql
INFO  integration.ha_tests.test_smoke:test_smoke.py:76 creating db
INFO  integration.ha_tests.test_smoke:test_smoke.py:81 get pvc for postgresql-k8s/0
INFO  httpx:_client.py:1026 HTTP Request: GET https://10.1.0.148:16443/api/v1/namespaces/test/persistentvolumeclaims "HTTP/1.1 200 OK"
INFO  integration.ha_tests.test_smoke:test_smoke.py:86 get pv for postgresql-k8s/0
INFO  httpx:_client.py:1026 HTTP Request: GET https://10.1.0.148:16443/api/v1/persistentvolumes "HTTP/1.1 200 OK"
INFO  integration.ha_tests.test_smoke:test_smoke.py:91 get storage id
INFO  integration.ha_tests.test_smoke:test_smoke.py:97 scale to 0 with force
INFO  integration.ha_tests.test_smoke:test_smoke.py:101 werifing is storage exists
Loading

0 comments on commit fe18064

Please sign in to comment.