Shut down and resart the server hosting the Juju model.
Opensearch units will be blocked on net.ipv4.tcp_retries2 should be 5
Destroy a unit and add a new one.
The new one will have this issue (see attached screenshots)
Expected behavior
Model running smooth.
Actual behavior
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-opensearch-2/charm/./src/charm.py", line 267, in <module>
main(OpenSearchOperatorCharm)
File "/var/lib/juju/agents/unit-opensearch-2/charm/venv/ops/main.py", line 544, in main
manager.run()
File "/var/lib/juju/agents/unit-opensearch-2/charm/venv/ops/main.py", line 520, in run
self._emit()
File "/var/lib/juju/agents/unit-opensearch-2/charm/venv/ops/main.py", line 509, in _emit
_emit_charm_event(self.charm, self.dispatcher.event_name)
File "/var/lib/juju/agents/unit-opensearch-2/charm/venv/ops/main.py", line 143, in _emit_charm_event
event_to_emit.emit(*args, **kwargs)
File "/var/lib/juju/agents/unit-opensearch-2/charm/venv/ops/framework.py", line 350, in emit
framework._emit(event)
File "/var/lib/juju/agents/unit-opensearch-2/charm/venv/ops/framework.py", line 849, in _emit
self._reemit(event_path)
File "/var/lib/juju/agents/unit-opensearch-2/charm/venv/ops/framework.py", line 939, in _reemit
custom_handler(event)
File "/var/lib/juju/agents/unit-opensearch-2/charm/lib/charms/opensearch/v0/opensearch_locking.py", line 164, in _on_peer_relation_changed
if self._unit_with_lock and self._unit_requested_lock(
File "/var/lib/juju/agents/unit-opensearch-2/charm/lib/charms/opensearch/v0/opensearch_locking.py", line 103, in _unit_requested_lock
value = self._relation.data[unit].get("lock-requested")
File "/var/lib/juju/agents/unit-opensearch-2/charm/venv/ops/model.py", line 1582, in __getitem__
return self._data[key]
KeyError: <ops.model.Unit opensearch/0>
Steps to reproduce
Shut down and resart the server hosting the Juju model. Opensearch units will be blocked on
net.ipv4.tcp_retries2 should be 5
Destroy a unit and add a new one. The new one will have this issue (see attached screenshots)Expected behavior
Model running smooth.
Actual behavior
Versions
Operating system:
Juju CLI: 3.1.8-genericlinux-amd64
Juju agent: installed: 3.1.8 (26977) 95MB -
Charm revision: installed: 2.14.0 (51) 935MB held
LXD: 5.0.3
Log output
Juju debug log:
Additional context