mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Fixed minion failover to next master on DNS errors.
This commit is contained in:
parent
727e322188
commit
80473dca04
@ -762,6 +762,13 @@ class Minion(MinionBase):
|
||||
'{0}'.format(type(opts['master'])))
|
||||
log.error(msg)
|
||||
sys.exit(salt.defaults.exitcodes.EX_GENERIC)
|
||||
# If failover is set, minion have to failover on DNS errors instead of retry DNS resolve.
|
||||
# See issue 21082 for details
|
||||
if opts['retry_dns']:
|
||||
msg = ('\'master_type\' set to \'failover\' but \'retry_dns\' is not 0. '
|
||||
'Setting \'retry_dns\' to 0 to failover to the next master on DNS errors.')
|
||||
log.critical(msg)
|
||||
opts['retry_dns'] = 0
|
||||
else:
|
||||
msg = ('Invalid keyword \'{0}\' for variable '
|
||||
'\'master_type\''.format(opts['master_type']))
|
||||
|
Loading…
Reference in New Issue
Block a user