|  | 
|  | 1 | +[32mINFO    [0m pytest_operator.plugin:plugin.py:862 Model status: | 
|  | 2 | + | 
|  | 3 | +Model  Controller          Cloud/Region        Version  SLA          Timestamp | 
|  | 4 | +test   microk8s-localhost  microk8s/localhost  3.1.8    unsupported  10:15:38Z | 
|  | 5 | + | 
|  | 6 | +App             Version  Status  Scale  Charm           Channel  Rev  Address        Exposed  Message | 
|  | 7 | +postgresql-k8s  14.11    active      3  postgresql-k8s             0  10.152.183.82  no        | 
|  | 8 | + | 
|  | 9 | +Unit               Workload  Agent  Address      Ports  Message | 
|  | 10 | +postgresql-k8s/0   active    idle   10.1.178.75          | 
|  | 11 | +postgresql-k8s/1*  active    idle   10.1.178.76         Primary | 
|  | 12 | +postgresql-k8s/2   active    idle   10.1.178.77          | 
|  | 13 | + | 
|  | 14 | +[32mINFO    [0m pytest_operator.plugin:plugin.py:868 Juju error logs: | 
|  | 15 | + | 
|  | 16 | +unit-postgresql-k8s-1: 10:15:35 ERROR unit.postgresql-k8s/1.juju-log Uncaught exception while in charm code: | 
|  | 17 | +Traceback (most recent call last): | 
|  | 18 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/./src/charm.py", line 1690, in <module> | 
|  | 19 | +    main(PostgresqlOperatorCharm, use_juju_for_storage=True) | 
|  | 20 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/main.py", line 544, in main | 
|  | 21 | +    manager.run() | 
|  | 22 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/main.py", line 520, in run | 
|  | 23 | +    self._emit() | 
|  | 24 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/main.py", line 509, in _emit | 
|  | 25 | +    _emit_charm_event(self.charm, self.dispatcher.event_name) | 
|  | 26 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/main.py", line 143, in _emit_charm_event | 
|  | 27 | +    event_to_emit.emit(*args, **kwargs) | 
|  | 28 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/framework.py", line 352, in emit | 
|  | 29 | +    framework._emit(event) | 
|  | 30 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/framework.py", line 851, in _emit | 
|  | 31 | +    self._reemit(event_path) | 
|  | 32 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/framework.py", line 941, in _reemit | 
|  | 33 | +    custom_handler(event) | 
|  | 34 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/./src/charm.py", line 1023, in _on_set_password | 
|  | 35 | +    self.set_secret(APP_SCOPE, f"{username}-password", password) | 
|  | 36 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/./src/charm.py", line 287, in set_secret | 
|  | 37 | +    self.peer_relation_data(scope).set_secret(peers.id, secret_key, value) | 
|  | 38 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 519, in wrapper | 
|  | 39 | +    return f(self, *args, **kwargs) | 
|  | 40 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1856, in set_secret | 
|  | 41 | +    self.update_relation_data(relation_id, {full_field: value}) | 
|  | 42 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 494, in wrapper | 
|  | 43 | +    return f(self, *args, **kwargs) | 
|  | 44 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1264, in update_relation_data | 
|  | 45 | +    return self._update_relation_data(relation, data) | 
|  | 46 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 534, in wrapper | 
|  | 47 | +    return f(self, *args, **kwargs) | 
|  | 48 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 2086, in _update_relation_data | 
|  | 49 | +    _, normal_fields = self._process_secret_fields( | 
|  | 50 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1063, in _process_secret_fields | 
|  | 51 | +    if group_result := operation(relation, group, secret_fields, *args, **kwargs): | 
|  | 52 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1387, in _add_or_update_relation_secrets | 
|  | 53 | +    return self._update_relation_secret(relation, group, secret_fields, data) | 
|  | 54 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 506, in wrapper | 
|  | 55 | +    return f(self, *args, **kwargs) | 
|  | 56 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 1372, in _update_relation_secret | 
|  | 57 | +    secret.set_content(full_content) | 
|  | 58 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/lib/charms/data_platform_libs/v0/data_interfaces.py", line 663, in set_content | 
|  | 59 | +    self.meta.set_content(content) | 
|  | 60 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/model.py", line 1351, in set_content | 
|  | 61 | +    self._backend.secret_set(typing.cast(str, self.id), content=content) | 
|  | 62 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/model.py", line 3418, in secret_set | 
|  | 63 | +    self._run_for_secret('secret-set', *args) | 
|  | 64 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/model.py", line 3380, in _run_for_secret | 
|  | 65 | +    return self._run(*args, return_output=return_output, use_json=use_json) | 
|  | 66 | +  File "/var/lib/juju/agents/unit-postgresql-k8s-1/charm/venv/ops/model.py", line 3022, in _run | 
|  | 67 | +    result = subprocess.run(args, **kwargs)  # type: ignore | 
|  | 68 | +  File "/usr/lib/python3.10/subprocess.py", line 503, in run | 
|  | 69 | +    with Popen(*popenargs, **kwargs) as process: | 
|  | 70 | +  File "/usr/lib/python3.10/subprocess.py", line 971, in __init__ | 
|  | 71 | +    self._execute_child(args, executable, preexec_fn, close_fds, | 
|  | 72 | +  File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child | 
|  | 73 | +    raise child_exception_type(errno_num, err_msg, err_filename) | 
|  | 74 | +OSError: [Errno 7] Argument list too long: '/var/lib/juju/tools/unit-postgresql-k8s-1/secret-set' | 
|  | 75 | + | 
|  | 76 | +[32mINFO    [0m pytest_operator.plugin:plugin.py:947 Forgetting model main... | 
0 commit comments