Skip to content

Commit

Permalink
Rollback this change
Browse files Browse the repository at this point in the history
  • Loading branch information
phvalguima committed Nov 15, 2024
1 parent f7a1fb7 commit 7b4d732
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/charms/opensearch/v0/opensearch_base_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,10 @@ def on_tls_conf_set(
if self.tls.is_fully_configured():
try:
self.tls.reload_tls_certificates()
except OpenSearchHttpError:
logger.error("Could not reload TLS certificates via API, will restart.")
self._restart_opensearch_event.emit()
else:
self.status.clear(TLSNotFullyConfigured)
self.tls.reset_ca_rotation_state()
# if all certs are stored and CA rotation is complete in the cluster
Expand All @@ -870,10 +874,6 @@ def on_tls_conf_set(
logger.info("on_tls_conf_set: Detected CA rotation complete in cluster")
self.tls.on_ca_certs_rotation_complete()

except OpenSearchHttpError:
logger.error("Could not reload TLS certificates via API, will restart.")
self._restart_opensearch_event.emit()

else:
event.defer()
return
Expand Down

0 comments on commit 7b4d732

Please sign in to comment.