-
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
f24017c
commit 86c1c67
Showing
323 changed files
with
6,357 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,97 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:766 Connecting to existing model localhost-localhost:test on unspecified cloud | ||
[32mINFO [0m juju.model:model.py:2097 Deploying ch:amd64/jammy/ubuntu-advantage-113 | ||
[32mINFO [0m juju.model:model.py:2097 Deploying ch:amd64/jammy/landscape-client-69 | ||
[32mINFO [0m juju.model:model.py:2097 Deploying local:postgresql-0 | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pg/0 [allocating] waiting: waiting for machine | ||
pg/1 [allocating] waiting: waiting for machine | ||
pg/2 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pg/0 [allocating] waiting: waiting for machine | ||
pg/1 [allocating] waiting: waiting for machine | ||
pg/2 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pg/0 [allocating] waiting: waiting for machine | ||
pg/1 [allocating] waiting: waiting for machine | ||
pg/2 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pg/0 [allocating] waiting: waiting for machine | ||
pg/1 [allocating] waiting: waiting for machine | ||
pg/2 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pg/0 [allocating] waiting: waiting for machine | ||
pg/1 [allocating] waiting: waiting for machine | ||
pg/2 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pg/0 [allocating] waiting: installing agent | ||
pg/1 [allocating] waiting: waiting for machine | ||
pg/2 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pg/0 [executing] maintenance: installing PostgreSQL | ||
pg/1 [executing] maintenance: installing PostgreSQL | ||
pg/2 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pg/0 [executing] waiting: waiting to start PostgreSQL | ||
pg/1 [executing] waiting: awaiting passwords generation | ||
pg/2 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pg/0 [executing] active: Primary | ||
pg/1 [executing] waiting: awaiting for cluster to start | ||
pg/2 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pg/0 [executing] maintenance: reconfiguring cluster | ||
pg/1 [executing] waiting: awaiting for cluster to start | ||
pg/2 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pg/0 [executing] maintenance: reconfiguring cluster | ||
pg/1 [executing] waiting: awaiting for cluster to start | ||
pg/2 [executing] maintenance: installing PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pg/0 [idle] active: | ||
pg/1 [idle] waiting: awaiting for member to start | ||
pg/2 [executing] maintenance: installing PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pg/0 [executing] maintenance: reconfiguring cluster | ||
pg/1 [executing] waiting: awaiting for member to start | ||
pg/2 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pg/0 [executing] maintenance: reconfiguring cluster | ||
pg/1 [executing] active: | ||
pg/2 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pg/0 [executing] active: Primary | ||
pg/1 [idle] active: | ||
pg/2 [executing] waiting: awaiting for member to start | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pg/2 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
pg/0 [executing] active: Primary | ||
pg/1 [executing] active: | ||
pg/2 [executing] active: | ||
[33mWARNING [0m juju.model:model.py:1563 relate is deprecated and will be removed. Use integrate instead. | ||
[33mWARNING [0m juju.model:model.py:1563 relate is deprecated and will be removed. Use integrate instead. | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
landscape-client (not enough units yet - 0/1) | ||
ubuntu-advantage (not enough units yet - 0/1) | ||
pg/0 [idle] active: Primary | ||
pg/1 [idle] active: | ||
pg/2 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
landscape-client/0 [executing] maintenance: Installing landscape client.. | ||
landscape-client/1 [executing] maintenance: Installing landscape client.. | ||
landscape-client/3 [executing] maintenance: Adding client PPA.. | ||
ubuntu-advantage/0 [executing] maintenance: Configuring | ||
ubuntu-advantage/1 [executing] maintenance: Configuring | ||
ubuntu-advantage/2 [executing] maintenance: installing charm software | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
landscape-client/0 [executing] maintenance: Configuring landscape client.. | ||
landscape-client/1 [executing] maintenance: Adding client PPA.. | ||
landscape-client/3 [executing] active: Client registered! | ||
ubuntu-advantage/0 [executing] active: Attached (esm-apps,esm-infra) | ||
ubuntu-advantage/1 [executing] active: Attached (esm-apps,esm-infra) | ||
ubuntu-advantage/2 [executing] maintenance: Configuring | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
landscape-client/0 [idle] active: Client registered! | ||
landscape-client/1 [idle] active: Client registered! | ||
landscape-client/3 [idle] active: Client registered! | ||
ubuntu-advantage/1 [idle] active: Attached (esm-apps,esm-infra) |
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,8 @@ | ||
[33mWARNING [0m juju.model:model.py:1563 relate is deprecated and will be removed. Use integrate instead. | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-test-app/0 [idle] active: | ||
postgresql-test-app/1 [idle] active: | ||
database/0 [idle] active: Primary | ||
another-database/0 [idle] active: Primary | ||
another-database/1 [idle] active: | ||
[32mINFO [0m integration.new_relations.test_new_relations:test_new_relations.py:92 checking for secrets |
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,104 @@ | ||
[1m[31mERROR [0m integration.helpers:helpers.py:931 | ||
[1m[31mERROR [0m integration.helpers:helpers.py:931 | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:903 Model status: | ||
|
||
Model Controller Cloud/Region Version SLA Timestamp | ||
test localhost-localhost localhost/localhost 3.4.6 unsupported 01:54:04Z | ||
|
||
App Version Status Scale Charm Channel Rev Exposed Message | ||
postgresql 14.13 active 3 postgresql 0 no | ||
|
||
Unit Workload Agent Machine Public address Ports Message | ||
postgresql/0* active idle 0 10.80.23.197 5432/tcp Primary | ||
postgresql/1 active idle 1 10.80.23.231 5432/tcp | ||
postgresql/2 active idle 2 10.80.23.207 5432/tcp | ||
|
||
Machine State Address Inst id Base AZ Message | ||
0 started 10.80.23.197 juju-38f997-0 [email protected] Running | ||
1 started 10.80.23.231 juju-38f997-1 [email protected] Running | ||
2 started 10.80.23.207 juju-38f997-2 [email protected] Running | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:909 Juju error logs: | ||
|
||
machine-0: 01:37:46 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-0: 01:37:46 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
unit-postgresql-0: 01:37:46 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
machine-1: 01:37:52 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-1: 01:37:52 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
unit-postgresql-1: 01:37:52 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
machine-2: 01:37:53 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-2: 01:37:53 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
unit-postgresql-2: 01:37:53 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
unit-postgresql-0: 01:38:53 ERROR unit.postgresql/0.juju-log Failed to list PostgreSQL database users: could not translate host name "None" to address: Temporary failure in name resolution | ||
|
||
unit-postgresql-0: 01:53:56 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/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-0/secret-set', 'secret://5f38a73d-56c5-4ad2-8dac-90102e38f997/cs5i965vjlt1sn6nlfsg', 'backup-password#file=/tmp/tmpz6k3h14s/backup-password', 'monitoring-password#file=/tmp/tmpz6k3h14s/monitoring-password', 'operator-password#file=/tmp/tmpz6k3h14s/operator-password', 'patroni-password#file=/tmp/tmpz6k3h14s/patroni-password', 'raft-password#file=/tmp/tmpz6k3h14s/raft-password', 'replication-password#file=/tmp/tmpz6k3h14s/replication-password', 'rewind-password#file=/tmp/tmpz6k3h14s/rewind-password')' returned non-zero exit status 2. | ||
|
||
The above exception was the direct cause of the following exception: | ||
|
||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/./src/charm.py", line 1880, in <module> | ||
main(PostgresqlOperatorCharm) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/__init__.py", line 343, in __call__ | ||
return _main.main(charm_class=charm_class, use_juju_for_storage=use_juju_for_storage) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/_main.py", line 543, in main | ||
manager.run() | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/_main.py", line 529, in run | ||
self._emit() | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/_main.py", line 518, in _emit | ||
_emit_charm_event(self.charm, self.dispatcher.event_name, self._juju_context) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/_main.py", line 134, in _emit_charm_event | ||
event_to_emit.emit(*args, **kwargs) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/framework.py", line 347, in emit | ||
framework._emit(event) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/framework.py", line 857, in _emit | ||
self._reemit(event_path) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/framework.py", line 947, in _reemit | ||
custom_handler(event) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/lib/charms/tempo_coordinator_k8s/v0/charm_tracing.py", line 735, in wrapped_function | ||
return callable(*args, **kwargs) # type: ignore | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/./src/charm.py", line 1306, in _on_set_password | ||
self.set_secret(APP_SCOPE, f"{username}-password", password) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/lib/charms/tempo_coordinator_k8s/v0/charm_tracing.py", line 735, in wrapped_function | ||
return callable(*args, **kwargs) # type: ignore | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/./src/charm.py", line 315, 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 521, 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 2026, 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 496, 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 1407, 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 536, 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 2350, 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 1190, 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 1533, 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 508, 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 1518, 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 773, in set_content | ||
self.meta.set_content(content) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/model.py", line 1524, in set_content | ||
self._backend.secret_set( | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/model.py", line 3749, in secret_set | ||
self._run_for_secret('secret-set', *args) | ||
File "/var/lib/juju/agents/unit-postgresql-0/charm/venv/ops/model.py", line 3702, 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 3321, in _run | ||
raise ModelError(e.stderr) from e | ||
ops.model.ModelError: ERROR secret content in file "/tmp/tmpz6k3h14s/replication-password" too large: 2000000 bytes | ||
|
||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:991 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,31 @@ | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:73 starting continuous writes to the database | ||
[33mWARNING [0m juju.model:model.py:1563 relate is deprecated and will be removed. Use integrate instead. | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [executing] active: Primary | ||
postgresql/1 [executing] active: | ||
postgresql/2 [executing] active: | ||
postgresql-test-app/0 [executing] active: | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:77 checking whether writes are increasing | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:85 Build charm locally | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:88 Refresh the charm | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:91 Wait for upgrade to start | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:97 Wait for upgrade to complete | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [idle] active: Primary | ||
postgresql/1 [executing] waiting: other units upgrading first... | ||
postgresql/2 [executing] waiting: other units upgrading first... | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [idle] waiting: other units upgrading first... | ||
postgresql/1 [idle] maintenance: upgrade completed | ||
postgresql/2 [executing] maintenance: updating configuration | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [executing] active: | ||
postgresql/1 [executing] active: | ||
postgresql/2 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [idle] active: Primary | ||
postgresql/1 [idle] active: | ||
postgresql/2 [idle] active: | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:104 checking whether writes are increasing | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:109 checking whether no writes were lost | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:112 checking the number of switchovers |
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,25 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:766 Connecting to existing model localhost-localhost:test on unspecified cloud | ||
[32mINFO [0m integration.ha_tests.test_smoke:test_smoke.py:42 deploying charm | ||
[32mINFO [0m juju.model:model.py:2097 Deploying local:postgresql-0 | ||
[32mINFO [0m integration.ha_tests.test_smoke:test_smoke.py:52 waiting for idle | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-test-app/0 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-test-app/0 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-test-app/0 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-test-app/0 [allocating] waiting: agent initialising | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-test-app/0 [executing] maintenance: installing PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-test-app/0 [executing] active: Primary | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-test-app/0 [executing] active: Primary | ||
[32mINFO [0m integration.ha_tests.test_smoke:test_smoke.py:58 waiting for postgresql | ||
[32mINFO [0m integration.ha_tests.test_smoke:test_smoke.py:63 getting storage id | ||
[32mINFO [0m integration.ha_tests.test_smoke:test_smoke.py:67 werifing is storage exists | ||
[32mINFO [0m integration.ha_tests.test_smoke:test_smoke.py:73 creating db | ||
[32mINFO [0m integration.ha_tests.test_smoke:test_smoke.py:77 checking db | ||
[32mINFO [0m integration.ha_tests.test_smoke:test_smoke.py:81 force removing charm | ||
[32mINFO [0m integration.ha_tests.test_smoke:test_smoke.py:90 werifing is storage exists |
Oops, something went wrong.