Skip to content

Commit

Permalink
DPE-2333 show open ports (#249)
Browse files Browse the repository at this point in the history
open port after startup
  • Loading branch information
reneradoi authored Apr 24, 2024
1 parent 0eb2b92 commit 0b0cd9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/charms/opensearch/v0/opensearch_base_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,8 @@ def _post_start_init(self, event: EventBase):
# clear waiting to start status
self.status.clear(WaitingToStart)

self.unit.open_port("tcp", 9200)

# update the peer cluster rel data with new IP in case of main cluster manager
if self.opensearch_peer_cm.deployment_desc().typ != DeploymentType.OTHER:
if self.opensearch_peer_cm.is_peer_cluster_orchestrator_relation_set():
Expand Down

0 comments on commit 0b0cd9c

Please sign in to comment.