Skip to content

[DOCS] Out of date reference minion configuration for retry_dns #69109

Closed

Description

@Desmonthes

Description
There is some inconsistency of the retry_dns option for salt minion

https://docs.saltproject.io/en/latest/ref/configuration/minion.html#retry-dns
... Defaults to 30 seconds. Set to zero if the minion should shutdown and not retry.

From a Windows minion with failover master configuration

salt-call state.apply

[CRITICAL] '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.`
...

Suggested Fix
What did you expect to see in the documentation that is missing or needs updating?

I'll test with a dummy master DNS entry to see if the failover still happens with retry_dns is 0

Type of documentation
This is from the Saltstack reference configuration for minion

Location or format of documentation
Minion Primary configuration

Additional context
Relates to #25404

salt master version is 3008.rc2 (onedir)

PS C:\> salt-call -V
Salt Version:
          Salt: 3007.13

Python Version:
        Python: 3.10.19 (heads/main:12306c3, Feb  5 2026, 06:58:37) [MSC v.1944 64 bit (AMD64)]

Dependency Versions:
          cffi: 2.0.0
      cherrypy: unknown
  cryptography: 42.0.5
      dateutil: 2.8.2
     docker-py: Not Installed
         gitdb: 4.0.10
     gitpython: Not Installed
        Jinja2: 3.1.6
       libgit2: Not Installed
  looseversion: 1.3.0
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 1.0.7
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     packaging: 24.0
     pycparser: 2.21
      pycrypto: Not Installed
  pycryptodome: 3.19.1
        pygit2: Not Installed
  python-gnupg: 0.5.2
        PyYAML: 6.0.1
         PyZMQ: 25.1.2
        relenv: 0.22.3
         smmap: 5.0.1
       timelib: 0.3.0
       Tornado: 6.5.4
           ZMQ: 4.3.4

Salt Package Information:
  Package Type: onedir

System Versions:
          dist:
        locale: utf-8
       machine: AMD64
       release: 2025Server
        system: Windows
       version: 2025Server 10.0.26100 SP0 Multiprocessor Free

Activity

  1. added
    documentation
    on May 11, 2026
  2. Desmonthes commented on May 12, 2026

    @Desmonthes
    Author

    Just test and the redacted log is below with a test minion config and salt-dummy.domain.example is not a valid DNS record, and salt-nonprod.domain.example is the current test master server

    tested state.apply was also successful and reverted the minion config to its correct configuration

    id: i-01a8be885effc0b26
    master:
      - salt-dummy.domain.example
      - salt-nonprod.domain.example
    master_type: failover
    master_alive_interval: 600
    recon_default: 1000
    recon_max: 59000
    recon_randomize: True
    tcp_keepalive: True
    tcp_keepalive_idle: 300
    tcp_keepalive_cnt: 10
    tcp_keepalive_intvl: 120
    master_tries: 10
    auth_tries: 10
    auth_safemode: True
    ping_interval: 5
    random_startup_delay: 60
    random_reauth_delay: 300
    use_superseded:
      - module.run
    
    failover master setup and default retry_dns value (30s)
    .....
    [INFO    ] Got list of available master addresses: ['salt-dummy.domain.example', 'salt-nonprod.domain.example']
    [CRITICAL] '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.
    [DEBUG   ] "salt-dummy.domain.example" Not an IP address? Assuming it is a hostname.
    [ERROR   ] DNS lookup or connection check of 'salt-dummy.domain.example' failed.
    [DEBUG   ] "salt-nonprod.domain.example" Not an IP address? Assuming it is a hostname.
    [DEBUG   ] Master URI: tcp://10.163.68.19:4506
    [DEBUG   ] Connecting to master. Attempt 1 of 10
    [DEBUG   ] "salt-dummy.domain.example" Not an IP address? Assuming it is a hostname.
    [ERROR   ] DNS lookup or connection check of 'salt-dummy.domain.example' failed.
    [DEBUG   ] "salt-nonprod.domain.example" Not an IP address? Assuming it is a hostname.
    [DEBUG   ] Master URI: tcp://10.163.68.19:4506
    [DEBUG   ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'i-01a8be885effc0b26', 'tcp://10.163.68.19:4506', '1695876823.0334685')
    [DEBUG   ] Generated random reconnect delay between '1000ms' and '60000ms' (54011)
    [DEBUG   ] Setting zmq_reconnect_ivl to '54011ms'
    [DEBUG   ] Setting zmq_reconnect_ivl_max to '60000ms'
    [DEBUG   ] salt.crypt.get_rsa_key: Loading private key
    [DEBUG   ] salt.crypt._get_key_with_evict: Loading private key
    [DEBUG   ] SaltEvent PUB socket URI: /var/run/salt/minion/minion_event_3c0ebde267_pub.ipc
    [DEBUG   ] SaltEvent PULL socket URI: /var/run/salt/minion/minion_event_3c0ebde267_pull.ipc
    [DEBUG   ] Decrypting the current master AES key
    [DEBUG   ] salt.crypt.verify_signature: Loading public key
    [DEBUG   ] <salt.crypt.AsyncAuth object at 0x7fae1e107130> Got new master aes key.
    [DEBUG   ] Closing AsyncReqChannel instance
    [DEBUG   ] Connecting the Minion to the Master publish port, using the URI: tcp://10.163.68.19:4505
    [DEBUG   ] <salt.transport.zeromq.PublishClient object at 0x7fae1e5c23e0> connecting to tcp://10.163.68.19:4505
    [DEBUG   ] Sending event: tag = __master_connected; data = {'master': 'salt-nonprod.domain.example', '_stamp': '2026-05-12T07:02:48.072171'}
    [DEBUG   ] Closing IPCMessageClient instance
    [DEBUG   ] Determining pillar cache
    [DEBUG   ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'i-01a8be885effc0b26', 'tcp://10.163.68.19:4506', '1695876823.0334685')
    [DEBUG   ] salt.crypt.get_rsa_key: Loading private key
    [DEBUG   ] Closing AsyncReqChannel instance
    [DEBUG   ] The functions from module 'jinja' are being loaded by dir() on the loaded module
    [DEBUG   ] LazyLoaded jinja.render
    [DEBUG   ] The functions from module 'yaml' are being loaded by dir() on the loaded module
    [DEBUG   ] LazyLoaded yaml.render
    [DEBUG   ] The functions from module 'test' are being loaded by dir() on the loaded module
    [DEBUG   ] LazyLoaded test.version
    [DEBUG   ] The functions from module 'direct_call' are being loaded by dir() on the loaded module
    [DEBUG   ] LazyLoaded direct_call.execute
    [DEBUG   ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'i-01a8be885effc0b26', 'tcp://10.163.68.19:4506', '1695876823.0334685')
    [DEBUG   ] salt.crypt.get_rsa_key: Loading private key
    [DEBUG   ] Closing AsyncReqChannel instance
    [DEBUG   ] The functions from module 'nested' are being loaded by dir() on the loaded module
    [DEBUG   ] LazyLoaded nested.output
    local:
        3006.23
    
  3. Desmonthes commented on May 12, 2026

    @Desmonthes
    Author

    @tdashelby-cmyk for your PR, thanks.

  4. added this to the Potassium v3009.0 milestone on Jun 25, 2026
  5. dwoz commented on Oct 28, 2026

    @dwoz
    Contributor

    Closing — consolidated into #70585. The checkbox for this item is in the appropriate theme section of that tracker. Please pick up the sub-item there.

  6. dwoz commented on Nov 20, 2026

    @dwoz
    Contributor

    Reopening — #69110 is still in flight.

  7. reopened this on Nov 20, 2026
  8. dwoz commented on Nov 23, 2026

    @dwoz
    Contributor

    Fixed by #70920; will ship in 3008.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions