Skip to content

Commit

Permalink
Allure report 3102
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 4, 2024
1 parent fa5d565 commit b964dd7
Show file tree
Hide file tree
Showing 363 changed files with 5,996 additions and 2 deletions.
2 changes: 2 additions & 0 deletions 3102/app.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions 3102/data/attachments/15d8c3271f9fea0e.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
INFO  integration.ha_tests.test_upgrade:test_upgrade.py:69 Get leader unit
INFO  integration.ha_tests.test_upgrade:test_upgrade.py:75 Run pre-upgrade-check action
INFO  integration.ha_tests.test_upgrade:test_upgrade.py:83 Assert partition is set to 2
INFO  httpx:_client.py:1038 HTTP Request: GET https://10.1.0.174:16443/apis/apps/v1/namespaces/test/statefulsets/postgresql-k8s "HTTP/1.1 200 OK"
169 changes: 169 additions & 0 deletions 3102/data/attachments/18f13cec72b26167.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
INFO  juju.model:model.py:2098 Deploying local:jammy/postgresql-k8s-3
INFO  juju.model:model.py:2972 Waiting for model:
test-storage-postgresql-k8s/0 [allocating] waiting: agent initialising
INFO  juju.model:model.py:2972 Waiting for model:
test-storage-postgresql-k8s/0 [executing] waiting: awaiting for cluster to start
INFO  juju.model:model.py:2972 Waiting for model:
test-storage-postgresql-k8s/0 [executing] waiting: awaiting for primary endpoint to be ready
INFO  juju.model:model.py:2972 Waiting for model:
test-storage-postgresql-k8s/0 [executing] waiting: awaiting for primary endpoint to be ready
INFO  juju.model:model.py:2972 Waiting for model:
test-storage-postgresql-k8s/0 [idle] active: Primary
INFO  pytest_operator.plugin:plugin.py:903 Model status:

Model Controller Cloud/Region Version SLA Timestamp
test microk8s-localhost microk8s/localhost 3.4.6 unsupported 02:17:01Z

App Version Status Scale Charm Channel Rev Address Exposed Message
postgresql-k8s 14.13 active 3 postgresql-k8s 2 10.152.183.65 no
test-storage-postgresql-k8s 14.13 active 1 postgresql-k8s 3 10.152.183.215 no Primary

Unit Workload Agent Address Ports Message
postgresql-k8s/0 active idle 10.1.218.223
postgresql-k8s/1* active idle 10.1.218.225 Primary
postgresql-k8s/2 active idle 10.1.218.224
test-storage-postgresql-k8s/0* active idle 10.1.218.227 Primary

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

unit-postgresql-k8s-2: 01:43:25 ERROR unit.postgresql-k8s/2.juju-log Cluster upgrade failed, ensure pre-upgrade checks are ran first.
unit-postgresql-k8s-0: 01:56:42 ERROR unit.postgresql-k8s/0.juju-log Cluster upgrade failed, ensure pre-upgrade checks are ran first.
unit-postgresql-k8s-0: 01:56:43 ERROR unit.postgresql-k8s/0.juju-log Kubernetes service get failed: services "postgresql-k8s" not found
unit-postgresql-k8s-0: 01:56:43 ERROR unit.postgresql-k8s/0.juju-log Kubernetes service patch failed: services "postgresql-k8s" not found
unit-postgresql-k8s-1: 01:57:50 ERROR unit.postgresql-k8s/1.juju-log Kubernetes service get failed: services "postgresql-k8s" not found
unit-postgresql-k8s-1: 01:57:50 ERROR unit.postgresql-k8s/1.juju-log Kubernetes service patch failed: services "postgresql-k8s" not found
unit-postgresql-k8s-2: 02:00:49 ERROR unit.postgresql-k8s/2.juju-log Kubernetes service get failed: services "postgresql-k8s" not found
unit-postgresql-k8s-2: 02:00:49 ERROR unit.postgresql-k8s/2.juju-log Kubernetes service patch failed: services "postgresql-k8s" not found
unit-postgresql-k8s-0: 02:02:02 ERROR unit.postgresql-k8s/0.juju-log Kubernetes service get failed: services "postgresql-k8s" not found
unit-postgresql-k8s-0: 02:02:02 ERROR unit.postgresql-k8s/0.juju-log Kubernetes service patch failed: services "postgresql-k8s" not found
unit-postgresql-k8s-1: 02:02:23 ERROR unit.postgresql-k8s/1.juju-log Kubernetes service get failed: services "postgresql-k8s" not found
unit-postgresql-k8s-1: 02:02:23 ERROR unit.postgresql-k8s/1.juju-log Kubernetes service patch failed: services "postgresql-k8s" not found
unit-postgresql-k8s-2: 02:07:03 ERROR unit.postgresql-k8s/2.juju-log pgdata folder not found in /var/lib/postgresql/data/pgdata
unit-postgresql-k8s-0: 02:07:03 ERROR unit.postgresql-k8s/0.juju-log pgdata folder not found in /var/lib/postgresql/data/pgdata
unit-postgresql-k8s-2: 02:07:22 ERROR unit.postgresql-k8s/2.juju-log pgdata folder not found in /var/lib/postgresql/data/pgdata
unit-postgresql-k8s-0: 02:07:22 ERROR unit.postgresql-k8s/0.juju-log pgdata folder not found in /var/lib/postgresql/data/pgdata
unit-postgresql-k8s-1: 02:09:04 ERROR unit.postgresql-k8s/1.juju-log Uncaught exception while in charm code:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/model.py", line 3319, in _run
result = subprocess.run(args, **kwargs) # type: ignore
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('/var/lib/juju/tools/unit-postgresql-k8s-1/relation-get', '-r', '4', '-', 'postgresql-k8s/1', '--format=json')' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/./src/charm.py", line 2202, in <module>
main(PostgresqlOperatorCharm, use_juju_for_storage=True)
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/main.py", line 45, in main
return _main.main(charm_class=charm_class, use_juju_for_storage=use_juju_for_storage)
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/_main.py", line 541, in main
manager = _Manager(charm_class, use_juju_for_storage=use_juju_for_storage)
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/_main.py", line 424, in __init__
self.charm = self._make_charm(self.framework, self.dispatcher)
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/_main.py", line 427, in _make_charm
charm = self._charm_class(framework)
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/tempo_k8s/v1/charm_tracing.py", line 441, in wrap_init
original_init(self, framework, *args, **kwargs)
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/./src/charm.py", line 235, in __init__
jobs=self._generate_metrics_jobs(self.is_tls_enabled),
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/./src/charm.py", line 1556, in is_tls_enabled
return all(self.tls.get_tls_files())
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/tempo_k8s/v1/charm_tracing.py", line 735, in wrapped_function
return callable(*args, **kwargs) # type: ignore
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/postgresql_k8s/v0/postgresql_tls.py", line 215, in get_tls_files
ca = self.charm.get_secret(SCOPE, "ca")
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/tempo_k8s/v1/charm_tracing.py", line 735, in wrapped_function
return callable(*args, **kwargs) # type: ignore
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/./src/charm.py", line 347, in get_secret
if result := self.peer_relation_data(scope).fetch_my_relation_field(peers.id, key):
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1393, in fetch_my_relation_field
if relation_data := self.fetch_my_relation_data([relation_id], [field], relation_name):
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1366, in fetch_my_relation_data
self._legacy_apply_on_fetch()
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 2130, in _legacy_apply_on_fetch
self._legacy_compat_secret_uri_from_databag(relation)
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 555, in wrapper
return f(self, *args, **kwargs)
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 2175, in _legacy_compat_secret_uri_from_databag
self._legacy_secret_uri = relation.data[self.component].get(
File "/usr/lib/python3.10/_collections_abc.py", line 824, in get
return self[key]
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/model.py", line 1926, in __getitem__
return super().__getitem__(key)
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/model.py", line 886, in __getitem__
return self._data[key]
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/model.py", line 870, in _data
data = self._lazy_data = self._load()
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/model.py", line 1814, in _load
return self._backend.relation_get(self.relation.id, self._entity.name, self._is_app)
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/model.py", line 3398, in relation_get
raw_data_content = self._run(*args, return_output=True, use_json=True)
File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/model.py", line 3321, in _run
raise ModelError(e.stderr) from e
ops.model.ModelError: ERROR permission denied

unit-postgresql-k8s-0: 02:09:04 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/venv/ops/model.py", line 3319, in _run
result = subprocess.run(args, **kwargs) # type: ignore
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('/var/lib/juju/tools/unit-postgresql-k8s-0/relation-get', '-r', '4', '-', 'postgresql-k8s/0', '--format=json')' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/./src/charm.py", line 2202, in <module>
main(PostgresqlOperatorCharm, use_juju_for_storage=True)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/main.py", line 45, in main
return _main.main(charm_class=charm_class, use_juju_for_storage=use_juju_for_storage)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/_main.py", line 541, in main
manager = _Manager(charm_class, use_juju_for_storage=use_juju_for_storage)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/_main.py", line 424, in __init__
self.charm = self._make_charm(self.framework, self.dispatcher)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/_main.py", line 427, in _make_charm
charm = self._charm_class(framework)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/tempo_k8s/v1/charm_tracing.py", line 441, in wrap_init
original_init(self, framework, *args, **kwargs)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/./src/charm.py", line 235, in __init__
jobs=self._generate_metrics_jobs(self.is_tls_enabled),
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/./src/charm.py", line 1556, in is_tls_enabled
return all(self.tls.get_tls_files())
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/tempo_k8s/v1/charm_tracing.py", line 735, in wrapped_function
return callable(*args, **kwargs) # type: ignore
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/postgresql_k8s/v0/postgresql_tls.py", line 215, in get_tls_files
ca = self.charm.get_secret(SCOPE, "ca")
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/tempo_k8s/v1/charm_tracing.py", line 735, in wrapped_function
return callable(*args, **kwargs) # type: ignore
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/./src/charm.py", line 347, in get_secret
if result := self.peer_relation_data(scope).fetch_my_relation_field(peers.id, key):
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1393, in fetch_my_relation_field
if relation_data := self.fetch_my_relation_data([relation_id], [field], relation_name):
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1366, in fetch_my_relation_data
self._legacy_apply_on_fetch()
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 2130, in _legacy_apply_on_fetch
self._legacy_compat_secret_uri_from_databag(relation)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 555, 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 2175, in _legacy_compat_secret_uri_from_databag
self._legacy_secret_uri = relation.data[self.component].get(
File "/usr/lib/python3.10/_collections_abc.py", line 824, in get
return self[key]
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/model.py", line 1926, in __getitem__
return super().__getitem__(key)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/model.py", line 886, in __getitem__
return self._data[key]
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/model.py", line 870, in _data
data = self._lazy_data = self._load()
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/model.py", line 1814, in _load
return self._backend.relation_get(self.relation.id, self._entity.name, self._is_app)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/model.py", line 3398, in relation_get
raw_data_content = self._run(*args, return_output=True, use_json=True)
File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/model.py", line 3321, in _run
raise ModelError(e.stderr) from e
ops.model.ModelError: ERROR permission denied

controller-0: 02:09:10 ERROR juju.worker.caasapplicationprovisioner.runner exited "postgresql-k8s": cannot scale dying application to 0: application "postgresql-k8s" not found

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

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

Unit Workload Agent Address Ports Message
untrusted-postgresql-k8s/0* active idle 10.1.116.75 Primary
untrusted-postgresql-k8s/1 active idle 10.1.116.76
untrusted-postgresql-k8s/2 active idle 10.1.116.77

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

unit-untrusted-postgresql-k8s-0: 01:38:30 ERROR unit.untrusted-postgresql-k8s/0.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-0: 01:38:30 ERROR unit.untrusted-postgresql-k8s/0.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:991 Forgetting model main...
10 changes: 10 additions & 0 deletions 3102/data/attachments/1a6329b72a433ff.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
INFO  pytest_operator.plugin:plugin.py:766 Connecting to existing model microk8s-localhost:test on unspecified cloud
INFO  juju.model:model.py:2098 Deploying ch:amd64/jammy/postgresql-test-app-254
INFO  juju.model:model.py:2098 Deploying local:jammy/postgresql-k8s-0
INFO  juju.model:model.py:2972 Waiting for model:
postgresql-k8s/0 [allocating] waiting: installing agent
postgresql-test-app/0 [executing] maintenance: installing charm software
INFO  juju.model:model.py:2972 Waiting for model:
postgresql-k8s/0 [executing] maintenance: installing charm software
INFO  juju.model:model.py:2972 Waiting for model:
postgresql-k8s/0 [executing] waiting: awaiting for primary endpoint to be ready
Loading

0 comments on commit b964dd7

Please sign in to comment.