Catch exceptions if Patroni is not up
This commit is contained in:
parent
7e77752ce5
commit
0446b2db02
|
@ -797,7 +797,10 @@ if enable_networking:
|
|||
if not network in network_list:
|
||||
d_network[network] = VXNetworkInstance.VXNetworkInstance(network, zk_conn, config, logger, this_node)
|
||||
if config['daemon_mode'] == 'coordinator' and d_network[network].nettype == 'managed':
|
||||
dns_aggregator.add_network(d_network[network])
|
||||
try:
|
||||
dns_aggregator.add_network(d_network[network])
|
||||
except Exception as e:
|
||||
logger.out('Failed to create DNS Aggregator for network {}'.format(network), 'w')
|
||||
# Start primary functionality
|
||||
if this_node.router_state == 'primary' and d_network[network].nettype == 'managed':
|
||||
d_network[network].createGateways()
|
||||
|
|
Loading…
Reference in New Issue