-
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
2db2ae9
commit 4c28068
Showing
207 changed files
with
13,418 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,2 @@ | ||
[32mINFO [0m integration.ha_tests.test_upgrade_from_stable:test_upgrade_from_stable.py:91 Get leader unit | ||
[32mINFO [0m integration.ha_tests.test_upgrade_from_stable:test_upgrade_from_stable.py:95 Run pre-upgrade-check action |
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,4 @@ | ||
[32mINFO [0m integration.ha_tests.helpers:helpers.py:196 checking that the former primary is now a replica | ||
[32mINFO [0m integration.ha_tests.helpers:helpers.py:202 checking that all units are part of the same cluster | ||
[32mINFO [0m integration.ha_tests.helpers:helpers.py:216 checking that no writes to the database were missed after stopping the writes | ||
[32mINFO [0m integration.ha_tests.helpers:helpers.py:220 checking that the former primary is up to date with the cluster after restarting |
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:56:35Z | ||
|
||
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.220.72.68 5432/tcp | ||
postgresql/1* active idle 1 10.220.72.70 5432/tcp Primary | ||
postgresql/2 active idle 2 10.220.72.119 5432/tcp | ||
|
||
Machine State Address Inst id Base AZ Message | ||
0 started 10.220.72.68 juju-d77244-0 [email protected] Running | ||
1 started 10.220.72.70 juju-d77244-1 [email protected] Running | ||
2 started 10.220.72.119 juju-d77244-2 [email protected] Running | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:868 Juju error logs: | ||
|
||
machine-1: 01:37:14 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-1: 01:37:14 ERROR juju.worker.dependency "broker-tracker" manifold worker returned unexpected error: no container types determined | ||
machine-1: 01:37:14 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
unit-postgresql-1: 01:37:14 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
machine-0: 01:37:53 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-0: 01:37:53 ERROR juju.worker.dependency "broker-tracker" manifold worker returned unexpected error: no container types determined | ||
machine-0: 01:37:53 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
unit-postgresql-0: 01:37:53 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
machine-2: 01:38:08 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-2: 01:38:08 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-2: 01:38:08 ERROR juju.worker.dependency "broker-tracker" manifold worker returned unexpected error: no container types determined | ||
unit-postgresql-2: 01:38:08 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
unit-postgresql-1: 01:56:32 ERROR unit.postgresql/1.juju-log Uncaught exception while in charm code: | ||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-postgresql-1/charm/./src/charm.py", line 1645, in <module> | ||
main(PostgresqlOperatorCharm) | ||
File "/var/lib/juju/agents/unit-postgresql-1/charm/venv/ops/main.py", line 544, in main | ||
manager.run() | ||
File "/var/lib/juju/agents/unit-postgresql-1/charm/venv/ops/main.py", line 520, in run | ||
self._emit() | ||
File "/var/lib/juju/agents/unit-postgresql-1/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-1/charm/venv/ops/main.py", line 143, in _emit_charm_event | ||
event_to_emit.emit(*args, **kwargs) | ||
File "/var/lib/juju/agents/unit-postgresql-1/charm/venv/ops/framework.py", line 352, in emit | ||
framework._emit(event) | ||
File "/var/lib/juju/agents/unit-postgresql-1/charm/venv/ops/framework.py", line 851, in _emit | ||
self._reemit(event_path) | ||
File "/var/lib/juju/agents/unit-postgresql-1/charm/venv/ops/framework.py", line 941, in _reemit | ||
custom_handler(event) | ||
File "/var/lib/juju/agents/unit-postgresql-1/charm/./src/charm.py", line 1207, in _on_set_password | ||
self.set_secret(APP_SCOPE, f"{username}-password", password) | ||
File "/var/lib/juju/agents/unit-postgresql-1/charm/./src/charm.py", line 284, in set_secret | ||
self.peer_relation_data(scope).set_secret(peers.id, secret_key, value) | ||
File "/var/lib/juju/agents/unit-postgresql-1/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-1/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-1/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-1/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-1/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-1/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-1/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-1/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-1/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-1/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-1/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-1/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-1/charm/venv/ops/model.py", line 3418, in secret_set | ||
self._run_for_secret('secret-set', *args) | ||
File "/var/lib/juju/agents/unit-postgresql-1/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-1/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-1/secret-set' | ||
|
||
[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,9 @@ | ||
[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 juju.model:model.py:2958 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 another-database | ||
database/0 [executing] active: Primary | ||
database/1 [executing] active: | ||
another-database/0 [executing] active: Primary | ||
another-database/1 [executing] 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,4 @@ | ||
[32mINFO [0m integration.ha_tests.helpers:helpers.py:196 checking that the former primary is now a replica | ||
[32mINFO [0m integration.ha_tests.helpers:helpers.py:202 checking that all units are part of the same cluster | ||
[32mINFO [0m integration.ha_tests.helpers:helpers.py:216 checking that no writes to the database were missed after stopping the writes | ||
[32mINFO [0m integration.ha_tests.helpers:helpers.py:220 checking that the former primary is up to date with the cluster after restarting |
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,18 @@ | ||
[33mWARNING [0m juju.model:model.py:1564 relate is deprecated and will be removed. Use integrate instead. | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql-test-app/0 [idle] active: received database credentials of the second database | ||
postgresql-test-app/1 [idle] active: received database credentials of the second database | ||
database/2 [executing] active: Primary | ||
database/3 [idle] active: | ||
another-database/0 [idle] active: Primary | ||
another-database/1 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
database/2 [idle] active: Primary | ||
database/3 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql-test-app/0 [idle] active: received database credentials of the second database | ||
postgresql-test-app/1 [idle] active: received database credentials of the second database | ||
database/2 [executing] active: Primary | ||
database/3 [executing] active: | ||
another-database/0 [idle] active: Primary | ||
another-database/1 [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,2 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:734 Connecting to existing model localhost-localhost:test on unspecified cloud | ||
[32mINFO [0m juju.model:model.py:2098 Deploying local:jammy/postgresql-0 |
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,149 @@ | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/0 [idle] active: Primary | ||
postgresql/1 [idle] active: | ||
postgresql/2 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql (waiting for exactly 2 units, current : 3) | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/1 [executing] maintenance: reconfiguring cluster | ||
postgresql/2 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/2 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/1 [idle] active: Primary | ||
postgresql/2 [idle] active: | ||
postgresql/3 [allocating] waiting: waiting for machine | ||
postgresql/4 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/3 [allocating] waiting: waiting for machine | ||
postgresql/4 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/3 [allocating] waiting: waiting for machine | ||
postgresql/4 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/3 [allocating] waiting: waiting for machine | ||
postgresql/4 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/3 [executing] maintenance: installing PostgreSQL | ||
postgresql/4 [executing] maintenance: installing PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/1 [executing] maintenance: reconfiguring cluster | ||
postgresql/2 [executing] active: | ||
postgresql/3 [executing] waiting: waiting to start PostgreSQL | ||
postgresql/4 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/1 [executing] maintenance: reconfiguring cluster | ||
postgresql/2 [executing] active: | ||
postgresql/3 [executing] waiting: waiting to start PostgreSQL | ||
postgresql/4 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/1 [executing] maintenance: reconfiguring cluster | ||
postgresql/3 [executing] waiting: waiting to start PostgreSQL | ||
postgresql/4 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/1 [executing] maintenance: reconfiguring cluster | ||
postgresql/2 [executing] active: | ||
postgresql/3 [executing] waiting: awaiting for member to start | ||
postgresql/4 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/1 [executing] active: | ||
postgresql/2 [executing] active: | ||
postgresql/3 [executing] active: | ||
postgresql/4 [executing] waiting: awaiting for member to start | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/1 [executing] active: Primary | ||
postgresql/2 [executing] active: | ||
postgresql/3 [executing] active: | ||
postgresql/4 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/1 [idle] active: Primary | ||
postgresql/2 [idle] active: | ||
postgresql/3 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql (waiting for exactly 3 units, current : 4) | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/2 [executing] active: Primary | ||
postgresql/3 [executing] active: | ||
postgresql/4 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/2 [idle] active: Primary | ||
postgresql/3 [idle] active: | ||
postgresql/4 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/3 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/2 [idle] active: Primary | ||
postgresql/3 [idle] active: | ||
postgresql/4 [idle] active: | ||
postgresql/5 [allocating] waiting: waiting for machine | ||
postgresql/6 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/5 [allocating] waiting: waiting for machine | ||
postgresql/6 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/5 [allocating] waiting: waiting for machine | ||
postgresql/6 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/5 [allocating] waiting: waiting for machine | ||
postgresql/6 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/5 [executing] maintenance: installing PostgreSQL | ||
postgresql/6 [executing] maintenance: installing PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/2 [executing] active: Primary | ||
postgresql/3 [executing] active: | ||
postgresql/4 [executing] active: | ||
postgresql/5 [executing] maintenance: installing PostgreSQL | ||
postgresql/6 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/2 [executing] maintenance: reconfiguring cluster | ||
postgresql/3 [executing] active: | ||
postgresql/4 [executing] active: | ||
postgresql/5 [executing] waiting: waiting to start PostgreSQL | ||
postgresql/6 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/2 [executing] active: Primary | ||
postgresql/3 [idle] active: | ||
postgresql/4 [idle] active: | ||
postgresql/5 [executing] waiting: waiting to start PostgreSQL | ||
postgresql/6 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/2 [executing] maintenance: reconfiguring cluster | ||
postgresql/5 [executing] waiting: waiting to start PostgreSQL | ||
postgresql/6 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/2 [executing] active: Primary | ||
postgresql/3 [executing] active: | ||
postgresql/4 [executing] active: | ||
postgresql/5 [executing] waiting: awaiting for member to start | ||
postgresql/6 [executing] waiting: awaiting for member to start | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/2 [executing] active: | ||
postgresql/3 [executing] active: | ||
postgresql/4 [executing] active: | ||
postgresql/5 [executing] active: | ||
postgresql/6 [executing] waiting: waiting for primary to be reachable from this unit | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/2 [executing] active: Primary | ||
postgresql/3 [executing] active: | ||
postgresql/4 [executing] active: | ||
postgresql/5 [executing] active: | ||
postgresql/6 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/5 [executing] active: | ||
postgresql/6 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql (waiting for exactly 3 units, current : 5) | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql (waiting for exactly 3 units, current : 4) | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/4 [idle] active: Primary | ||
postgresql/6 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/4 [idle] active: Primary | ||
postgresql/5 [idle] active: | ||
postgresql/6 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2958 Waiting for model: | ||
postgresql/4 [executing] active: | ||
postgresql/5 [executing] active: | ||
postgresql/6 [executing] active: |
Oops, something went wrong.