Charmed OpenSearch

Channel Revision Published Runs on
2/edge 90 08 May 2024
Ubuntu 22.04
juju deploy opensearch --channel 2/edge
Show information

Platform:

Ubuntu
22.04

charms.opensearch.v0.helper_networking

Helpers for networking related operations.


def get_host_ip(
    charm: CharmBase,
    peer_relation_name: str
)

Description

Fetches the IP address of the current unit. None

def get_hostname_by_unit(
    charm: CharmBase,
    unit_name: str
)

Description

Create a DNS name for an OpenSearch unit. None

def unit_ip(
    charm: CharmBase,
    unit: Unit,
    peer_relation_name: str
)

Description

Returns the ip address of a given unit. None

def units_ips(
    charm: CharmBase,
    peer_relation_name: str
)

Description

Returns the mapping "unit id / ip address" of all units. None

def is_reachable(
    host: str,
    port: int
)

Description

Attempting a socket connection to a host/port. None