diff --git a/lib/charms/opensearch/v0/opensearch_base_charm.py b/lib/charms/opensearch/v0/opensearch_base_charm.py index 341e6d594..6048c21ae 100644 --- a/lib/charms/opensearch/v0/opensearch_base_charm.py +++ b/lib/charms/opensearch/v0/opensearch_base_charm.py @@ -722,6 +722,7 @@ def _start_opensearch(self, event: _StartOpenSearch) -> None: # noqa: C901 self._post_start_init(event) except (OpenSearchHttpError, OpenSearchNotFullyReadyError): event.defer() + logger.exception("FOOBAR start") return if not self._can_service_start(): @@ -787,6 +788,7 @@ def _post_start_init(self, event: EventBase): # may be thrown when calling a node - we want to ensure this node is perfectly ready # before marking it as ready if not self.opensearch.is_node_up(): + logger.warning("FOO not ready") raise OpenSearchNotFullyReadyError("Node started but not full ready yet.") # cleanup bootstrap conf in the node diff --git a/lib/charms/opensearch/v0/opensearch_distro.py b/lib/charms/opensearch/v0/opensearch_distro.py index 483d2902a..d61dc1088 100644 --- a/lib/charms/opensearch/v0/opensearch_distro.py +++ b/lib/charms/opensearch/v0/opensearch_distro.py @@ -279,6 +279,7 @@ def call(url: str) -> requests.Response: raise OpenSearchHttpError(response_text=str(e)) if resp_status_code: + logger.exception(f"FOO {e.response.status_code}") return e.response.status_code raise OpenSearchHttpError(