Skip to content

Commit

Permalink
[DPE-5169] Add unicast_hosts.txt review on update_status (#400)
Browse files Browse the repository at this point in the history
The unicast_hosts.txt needs to be also reviewed at `update-status`, so
we can consider situations such as nodes that have been broken and not
responsive anymore.
  • Loading branch information
phvalguima authored Aug 16, 2024
1 parent c205834 commit f98c36b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/charms/opensearch/v0/opensearch_base_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,9 @@ def _on_update_status(self, event: UpdateStatusEvent):
if not self.opensearch.is_node_up():
return

# review available CMs
self._add_cm_addresses_to_conf()

# if there are exclusions to be removed
if self.unit.is_leader():
self.opensearch_exclusions.cleanup()
Expand Down

0 comments on commit f98c36b

Please sign in to comment.