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:
|
for network in self.d_network:
|
||||||
self.d_network[network].startDHCPServer()
|
self.d_network[network].startDHCPServer()
|
||||||
# 9. Start DNS aggregator; just continue if we fail
|
# 9. Start DNS aggregator; just continue if we fail
|
||||||
|
try:
|
||||||
if not patroni_failed:
|
if not patroni_failed:
|
||||||
self.dns_aggregator.start_aggregator()
|
self.dns_aggregator.start_aggregator()
|
||||||
else:
|
else:
|
||||||
|
raise
|
||||||
|
except Exception:
|
||||||
self.logger.out(
|
self.logger.out(
|
||||||
"Not starting DNS aggregator due to Patroni failures", state="e"
|
"Not starting DNS aggregator due to Patroni failures", state="e"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue