-
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
1f38940
commit ecdda81
Showing
331 changed files
with
6,664 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,128 @@ | ||
[32mINFO [0m integration.test_backups:test_backups.py:319 configuring S3 integrator for an invalid cloud | ||
[32mINFO [0m integration.test_backups:test_backups.py:334 waiting for the database charm to become blocked | ||
[32mINFO [0m integration.test_backups:test_backups.py:341 configuring S3 integrator for a valid cloud, but with the path of another cluster repository | ||
[32mINFO [0m integration.test_backups:test_backups.py:350 waiting for the database charm to become blocked | ||
[32mINFO [0m integration.test_backups:test_backups.py:357 configuring S3 integrator for a valid cloud | ||
[32mINFO [0m integration.test_backups:test_backups.py:361 waiting for the database charm to become active | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
new-postgresql/0 [executing] blocked: the S3 repository has backups from another cluster | ||
s3-integrator/0 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
new-postgresql/0 [executing] maintenance: initialising stanza | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
new-postgresql/0 [idle] active: Primary | ||
[32mINFO [0m integration.test_backups:test_backups.py:84 deleting the previously created backups | ||
[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 02:07:11Z | ||
|
||
App Version Status Scale Charm Channel Rev Exposed Message | ||
new-postgresql 14.13 active 1 postgresql 2 no | ||
s3-integrator active 1 s3-integrator latest/stable 31 no | ||
|
||
Unit Workload Agent Machine Public address Ports Message | ||
new-postgresql/0* active idle 5 10.113.19.158 5432/tcp Primary | ||
s3-integrator/0* active idle 0 10.113.19.222 | ||
|
||
Machine State Address Inst id Base AZ Message | ||
0 started 10.113.19.222 juju-957d25-0 [email protected] Running | ||
5 started 10.113.19.158 juju-957d25-5 [email protected] Running | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:909 Juju error logs: | ||
|
||
machine-1: 01:37:56 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-1: 01:37:56 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-0: 01:37:56 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-0: 01:37:56 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
unit-self-signed-certificates-0: 01:37:57 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
unit-s3-integrator-0: 01:37:57 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
machine-2: 01:38:18 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-2: 01:38:18 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
unit-postgresql-gcp-0: 01:38:18 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
machine-3: 01:38:23 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-3: 01:38:23 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
unit-postgresql-gcp-1: 01:38:23 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
machine-4: 01:59:27 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-4: 01:59:27 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
unit-postgresql-gcp-2: 01:59:27 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
machine-5: 01:59:37 ERROR juju.worker.dependency "kvm-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
machine-5: 01:59:37 ERROR juju.worker.dependency "lxd-container-provisioner" manifold worker returned unexpected error: container types not yet available | ||
unit-new-postgresql-0: 01:59:37 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk | ||
unit-postgresql-gcp-2: 02:00:30 ERROR unit.postgresql-gcp/2.juju-log Failed to list PostgreSQL database users: could not translate host name "None" to address: Temporary failure in name resolution | ||
|
||
unit-postgresql-gcp-2: 02:01:54 ERROR juju.worker.dependency "uniter" manifold worker returned unexpected error: relation scope id "e06e4ed2-d021-41b2-8c1b-a891e7957d25:r#12#s3-integrator": settings e06e4ed2-d021-41b2-8c1b-a891e7957d25:r#12#s3-integrator not found (not found) | ||
unit-postgresql-gcp-2: 02:01:59 ERROR juju.worker.dependency "uniter" manifold worker returned unexpected error: relation scope id "e06e4ed2-d021-41b2-8c1b-a891e7957d25:r#6#postgresql-gcp": settings e06e4ed2-d021-41b2-8c1b-a891e7957d25:r#6#postgresql-gcp not found (not found) | ||
machine-4: 02:02:05 ERROR juju.api.watcher error trying to stop watcher: websocket: close sent | ||
unit-new-postgresql-0: 02:05:31 ERROR unit.new-postgresql/0.juju-log s3-parameters:13: Failed to create a session 'bucket' in region=region. | ||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/src/backups.py", line 268, in _create_bucket_if_not_exists | ||
s3 = session.resource( | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/venv/boto3/session.py", line 444, in resource | ||
client = self.client( | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/venv/boto3/session.py", line 297, in client | ||
return self._session.create_client( | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/venv/botocore/session.py", line 997, in create_client | ||
client = client_creator.create_client( | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/venv/botocore/client.py", line 165, in create_client | ||
client_args = self._get_client_args( | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/venv/botocore/client.py", line 524, in _get_client_args | ||
return args_creator.get_client_args( | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/venv/botocore/args.py", line 138, in get_client_args | ||
endpoint = endpoint_creator.create_endpoint( | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/venv/botocore/endpoint.py", line 408, in create_endpoint | ||
raise ValueError(f"Invalid endpoint: {endpoint_url}") | ||
ValueError: Invalid endpoint: endpoint | ||
unit-new-postgresql-0: 02:05:33 ERROR unit.new-postgresql/0.juju-log s3-parameters:13: Uncaught exception while in charm code: | ||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/./src/charm.py", line 1884, in <module> | ||
main(PostgresqlOperatorCharm) | ||
File "/var/lib/juju/agents/unit-new-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-new-postgresql-0/charm/venv/ops/_main.py", line 543, in main | ||
manager.run() | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/venv/ops/_main.py", line 529, in run | ||
self._emit() | ||
File "/var/lib/juju/agents/unit-new-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-new-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-new-postgresql-0/charm/venv/ops/framework.py", line 347, in emit | ||
framework._emit(event) | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/venv/ops/framework.py", line 857, in _emit | ||
self._reemit(event_path) | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/venv/ops/framework.py", line 947, in _reemit | ||
custom_handler(event) | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/lib/charms/data_platform_libs/v0/s3.py", line 768, in _on_relation_changed | ||
getattr(self.on, "credentials_changed").emit( | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/venv/ops/framework.py", line 347, in emit | ||
framework._emit(event) | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/venv/ops/framework.py", line 857, in _emit | ||
self._reemit(event_path) | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/venv/ops/framework.py", line 947, in _reemit | ||
custom_handler(event) | ||
File "/var/lib/juju/agents/unit-new-postgresql-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-new-postgresql-0/charm/src/backups.py", line 657, in _on_s3_credential_changed | ||
self._create_bucket_if_not_exists() | ||
File "/var/lib/juju/agents/unit-new-postgresql-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-new-postgresql-0/charm/src/backups.py", line 294, in _create_bucket_if_not_exists | ||
bucket.create(CreateBucketConfiguration={"LocationConstraint": region}) | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/venv/boto3/resources/factory.py", line 581, in do_action | ||
response = action(self, *args, **kwargs) | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/venv/boto3/resources/action.py", line 88, in __call__ | ||
response = getattr(parent.meta.client, operation_name)(*args, **params) | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/venv/botocore/client.py", line 569, in _api_call | ||
return self._make_api_call(operation_name, kwargs) | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/venv/botocore/client.py", line 980, in _make_api_call | ||
request_dict = self._convert_to_request_dict( | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/venv/botocore/client.py", line 1047, in _convert_to_request_dict | ||
request_dict = self._serializer.serialize_to_request( | ||
File "/var/lib/juju/agents/unit-new-postgresql-0/charm/venv/botocore/validate.py", line 381, in serialize_to_request | ||
raise ParamValidationError(report=report.generate_report()) | ||
botocore.exceptions.ParamValidationError: Parameter validation failed: | ||
Invalid type for parameter CreateBucketConfiguration.LocationConstraint, value: None, type: <class 'NoneType'>, valid types: <class 'str'> | ||
unit-new-postgresql-0: 02:05:34 ERROR juju.worker.uniter.operation hook "s3-parameters-relation-changed" (via hook dispatching script: dispatch) failed: exit status 1 | ||
|
||
[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,4 @@ | ||
[32mINFO [0m integration.ha_tests.helpers:helpers.py:219 checking that the former primary is now a replica | ||
[32mINFO [0m integration.ha_tests.helpers:helpers.py:225 checking that all units are part of the same cluster | ||
[32mINFO [0m integration.ha_tests.helpers:helpers.py:239 checking that no writes to the database were missed after stopping the writes | ||
[32mINFO [0m integration.ha_tests.helpers:helpers.py:243 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,47 @@ | ||
[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 local:postgresql-0 | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [allocating] waiting: waiting for machine | ||
postgresql/1 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [allocating] waiting: waiting for machine | ||
postgresql/1 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [allocating] waiting: waiting for machine | ||
postgresql/1 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [allocating] waiting: waiting for machine | ||
postgresql/1 [allocating] waiting: waiting for machine | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [executing] maintenance: installing PostgreSQL | ||
postgresql/1 [executing] maintenance: installing charm software | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [executing] waiting: waiting to start PostgreSQL | ||
postgresql/1 [executing] waiting: waiting to start PostgreSQL | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [executing] active: Primary | ||
postgresql/1 [executing] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [executing] active: Primary | ||
postgresql/1 [executing] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [executing] active: Primary | ||
postgresql/1 [executing] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [executing] active: Primary | ||
postgresql/1 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [idle] active: Primary | ||
postgresql/1 [idle] active: | ||
[32mINFO [0m integration.test_plugins:test_plugins.py:180 checking that the plugins are disabled | ||
[32mINFO [0m integration.test_plugins:test_plugins.py:194 enabling the plugins | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [idle] active: Primary | ||
postgresql/1 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [executing] waiting: Updating extensions | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [executing] waiting: Updating extensions | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql/0 [executing] waiting: Updating extensions | ||
[32mINFO [0m integration.test_plugins:test_plugins.py:201 checking that the plugins are enabled |
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:766 Connecting to existing model localhost-localhost:test on unspecified cloud | ||
[32mINFO [0m juju.model:model.py:2097 Deploying local:postgresql-0 |
Oops, something went wrong.