Ensure Patroni failures do not block takeover
This commit is contained in:
parent
ed087d83c2
commit
5e43f9bd7c
|
@ -620,9 +620,12 @@ class NodeInstance(object):
|
|||
for network in self.d_network:
|
||||
self.d_network[network].startDHCPServer()
|
||||
# 9. Start DNS aggregator; just continue if we fail
|
||||
if not patroni_failed:
|
||||
self.dns_aggregator.start_aggregator()
|
||||
else:
|
||||
try:
|
||||
if not patroni_failed:
|
||||
self.dns_aggregator.start_aggregator()
|
||||
else:
|
||||
raise
|
||||
except Exception:
|
||||
self.logger.out(
|
||||
"Not starting DNS aggregator due to Patroni failures", state="e"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue