-
Notifications
You must be signed in to change notification settings - Fork 20
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
a1ad31c
commit d16d866
Showing
179 changed files
with
5,906 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,151 @@ | ||
[32mINFO [0m integration.ha_tests.test_restore_cluster:test_restore_cluster.py:80 creating a table in the database | ||
[32mINFO [0m integration.ha_tests.test_restore_cluster:test_restore_cluster.py:88 Downscaling the existing cluster | ||
[32mINFO [0m integration.ha_tests.test_restore_cluster:test_restore_cluster.py:97 Upscaling the second cluster with the old data | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] maintenance: installing PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] waiting: waiting for primary to be reachable from this unit | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] waiting: waiting for primary to be reachable from this unit | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] waiting: waiting for primary to be reachable from this unit | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] waiting: waiting for primary to be reachable from this unit | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] waiting: awaiting for member to start | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [idle] active: Primary | ||
second-cluster/2 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [idle] active: Primary | ||
second-cluster/2 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [idle] active: Primary | ||
second-cluster/2 [executing] maintenance: installing PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] maintenance: reconfiguring cluster | ||
second-cluster/2 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] active: | ||
second-cluster/2 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] maintenance: reconfiguring cluster | ||
second-cluster/2 [executing] waiting: awaiting for member to start | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [idle] active: Primary | ||
second-cluster/2 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] active: | ||
second-cluster/2 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [idle] active: Primary | ||
second-cluster/2 [idle] active: | ||
second-cluster/3 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [idle] active: Primary | ||
second-cluster/2 [idle] active: | ||
second-cluster/3 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [idle] active: Primary | ||
second-cluster/2 [idle] active: | ||
second-cluster/3 [executing] maintenance: installing PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] maintenance: reconfiguring cluster | ||
second-cluster/2 [idle] active: | ||
second-cluster/3 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] maintenance: reconfiguring cluster | ||
second-cluster/2 [idle] active: | ||
second-cluster/3 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] maintenance: reconfiguring cluster | ||
second-cluster/2 [executing] active: | ||
second-cluster/3 [executing] waiting: awaiting for member to start | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [idle] active: Primary | ||
second-cluster/2 [idle] active: | ||
second-cluster/3 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [executing] active: Primary | ||
second-cluster/2 [executing] active: | ||
second-cluster/3 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
second-cluster/1 [idle] active: Primary | ||
second-cluster/2 [idle] active: | ||
[32mINFO [0m integration.ha_tests.test_restore_cluster:test_restore_cluster.py:108 checking that data was persisted | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:862 Model status: | ||
|
||
Model Controller Cloud/Region Version SLA Timestamp | ||
test localhost-localhost localhost/localhost 3.1.8 unsupported 02:02:39Z | ||
|
||
App Version Status Scale Charm Channel Rev Exposed Message | ||
second-cluster 14.11 active 3 postgresql 1 no Primary | ||
|
||
Unit Workload Agent Machine Public address Ports Message | ||
second-cluster/1* active idle 4 10.208.68.233 5432/tcp Primary | ||
second-cluster/2 active idle 5 10.208.68.59 5432/tcp | ||
second-cluster/3 active idle 6 10.208.68.123 5432/tcp | ||
|
||
Machine State Address Inst id Base AZ Message | ||
4 started 10.208.68.233 juju-73ebb0-4 [email protected] Running | ||
5 started 10.208.68.59 juju-73ebb0-5 [email protected] Running | ||
6 started 10.208.68.123 juju-73ebb0-6 [email protected] Running | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:868 Juju error logs: | ||
|
||
machine-2: 01:32:49 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-2: 01:32:49 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-2: 01:32:49 ERROR juju.worker.dependency "broker-tracker" manifold worker returned unexpected error: no container types determined | ||
unit-first-cluster-2: 01:32:50 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
machine-0: 01:32:50 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-0: 01:32:50 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-0: 01:32:50 ERROR juju.worker.dependency "broker-tracker" manifold worker returned unexpected error: no container types determined | ||
unit-first-cluster-0: 01:32:51 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
machine-1: 01:32:51 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-1: 01:32:51 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-1: 01:32:51 ERROR juju.worker.dependency "broker-tracker" manifold worker returned unexpected error: no container types determined | ||
unit-first-cluster-1: 01:32:52 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
machine-3: 01:33:00 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-3: 01:33:00 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-3: 01:33:00 ERROR juju.worker.dependency "broker-tracker" manifold worker returned unexpected error: no container types determined | ||
unit-second-cluster-0: 01:33:00 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
machine-4: 01:45:44 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-4: 01:45:44 ERROR juju.worker.dependency "broker-tracker" manifold worker returned unexpected error: no container types determined | ||
machine-4: 01:45:44 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
unit-second-cluster-1: 01:45:44 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
machine-5: 01:55:11 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-5: 01:55:11 ERROR juju.worker.dependency "broker-tracker" manifold worker returned unexpected error: no container types determined | ||
machine-5: 01:55:11 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
unit-second-cluster-2: 01:55:11 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
machine-6: 01:59:07 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-6: 01:59:07 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-6: 01:59:07 ERROR juju.worker.dependency "broker-tracker" manifold worker returned unexpected error: no container types determined | ||
unit-second-cluster-3: 01:59:07 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:947 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,93 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:862 Model status: | ||
|
||
Model Controller Cloud/Region Version SLA Timestamp | ||
test localhost-localhost localhost/localhost 3.1.8 unsupported 01:47:27Z | ||
|
||
App Version Status Scale Charm Channel Rev Exposed Message | ||
postgresql 14.11 active 3 postgresql 0 no | ||
|
||
Unit Workload Agent Machine Public address Ports Message | ||
postgresql/0* active idle 0 10.17.228.13 5432/tcp | ||
postgresql/1 active idle 1 10.17.228.225 5432/tcp | ||
postgresql/2 active idle 2 10.17.228.180 5432/tcp | ||
|
||
Machine State Address Inst id Base AZ Message | ||
0 started 10.17.228.13 juju-d9fc9d-0 [email protected] Running | ||
1 started 10.17.228.225 juju-d9fc9d-1 [email protected] Running | ||
2 started 10.17.228.180 juju-d9fc9d-2 [email protected] Running | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:868 Juju error logs: | ||
|
||
machine-0: 01:31:43 ERROR juju.worker.dependency "broker-tracker" manifold worker returned unexpected error: no container types determined | ||
machine-0: 01:31:43 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-0: 01:31:43 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
unit-postgresql-0: 01:31:44 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
machine-1: 01:31:49 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-1: 01:31:49 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-1: 01:31:49 ERROR juju.worker.dependency "broker-tracker" manifold worker returned unexpected error: no container types determined | ||
unit-postgresql-1: 01:31:49 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
machine-2: 01:31:53 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-2: 01:31:53 ERROR juju.worker.dependency "broker-tracker" manifold worker returned unexpected error: no container types determined | ||
machine-2: 01:31:53 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
unit-postgresql-2: 01:31:54 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
unit-postgresql-0: 01:47:25 ERROR unit.postgresql/0.juju-log Uncaught exception while in charm code: | ||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/./src/charm.py", line 1601, in <module> | ||
main(PostgresqlOperatorCharm) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/main.py", line 544, in main | ||
manager.run() | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/main.py", line 520, in run | ||
self._emit() | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/main.py", line 509, in _emit | ||
_emit_charm_event(self.charm, self.dispatcher.event_name) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/main.py", line 143, in _emit_charm_event | ||
event_to_emit.emit(*args, **kwargs) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/framework.py", line 352, in emit | ||
framework._emit(event) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/framework.py", line 851, in _emit | ||
self._reemit(event_path) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/framework.py", line 941, in _reemit | ||
custom_handler(event) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/./src/charm.py", line 1185, in _on_set_password | ||
self.set_secret(APP_SCOPE, f"{username}-password", password) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/./src/charm.py", line 283, in set_secret | ||
self.peer_relation_data(scope).set_secret(peers.id, secret_key, value) | ||
File "/var/lib/juju/agents/unit-postgresql-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-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1856, in set_secret | ||
self.update_relation_data(relation_id, {full_field: value}) | ||
File "/var/lib/juju/agents/unit-postgresql-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-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1264, in update_relation_data | ||
return self._update_relation_data(relation, data) | ||
File "/var/lib/juju/agents/unit-postgresql-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-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 2086, in _update_relation_data | ||
_, normal_fields = self._process_secret_fields( | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1063, in _process_secret_fields | ||
if group_result := operation(relation, group, secret_fields, *args, **kwargs): | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1387, in _add_or_update_relation_secrets | ||
return self._update_relation_secret(relation, group, secret_fields, data) | ||
File "/var/lib/juju/agents/unit-postgresql-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-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1372, in _update_relation_secret | ||
secret.set_content(full_content) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 663, in set_content | ||
self.meta.set_content(content) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/model.py", line 1351, in set_content | ||
self._backend.secret_set(typing.cast(str, self.id), content=content) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/model.py", line 3418, in secret_set | ||
self._run_for_secret('secret-set', *args) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/model.py", line 3380, in _run_for_secret | ||
return self._run(*args, return_output=return_output, use_json=use_json) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/model.py", line 3022, 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-0/secret-set' | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:947 Forgetting model main... |
Oops, something went wrong.