Skip to content

Commit

Permalink
Fixes endpoint discovery
Browse files Browse the repository at this point in the history
The zaza test used the default endpoint as exposed by
the unit to perform object IO, however, SSL is configured
for PUBLIC,INTERNAL, and ADMIN bindings.

Signed-off-by: Utkarsh Bhatt <[email protected]>
  • Loading branch information
UtkarshBhatthere committed Jun 12, 2024
1 parent b0d0012 commit 21b51a4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions zaza/openstack/charm_tests/ceph/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,13 +840,12 @@ def get_rgw_endpoint(self, unit_name: str):
:param unit_name: Unit name for which RGW endpoint is required.
:type unit_name: str
"""
unit = zaza_model.get_unit_from_name(unit_name)
unit_address = zaza_model.get_unit_public_address(
unit,
self.model_name
)
# Get address "public" network binding.
unit_address = zaza_model.run_on_unit(
unit_name, "network-get public --bind-address"
).get('Stdout', '').strip()

logging.debug("Unit: {}, Endpoint: {}".format(unit_name, unit_address))
logging.info("Unit: {}, Endpoint: {}".format(unit_name, unit_address))
if unit_address is None:
return None
# Evaluate port
Expand Down

0 comments on commit 21b51a4

Please sign in to comment.