Skip to content

master_type failover does not failover on DNS errors #21082

Closed

Description

@clinta

With the following minion configuration:

master:
  - salt.mydomain.com
  - 24.25.26.28

master_type: failover

If the first server cannot be resolved by DNS, the minion continuously logs

DNS lookup of 'salt.mydomain.com' failed.
Master hostanme: 'salt.mydomain.com' not found. Retrying in 30 seconds

It never fails over to the second entry.

Activity

  1. added
    bug
    severity-low
    on Feb 26, 2015
  2. added this to the Approved milestone on Feb 26, 2015
  3. jfindlay commented on Feb 26, 2015

    @jfindlay
    Contributor

    @clinta, thanks for the report.

  4. added
    severity-medium
    Core
    P4
    and removed
    severity-low
    on May 19, 2015
  5. added
    P2
    and removed
    P4
    on Jun 24, 2015
  6. added
    ZD
    on Jun 24, 2015
  7. rickh563 commented on Jun 24, 2015

    @rickh563

    ZD-342

  8. DmitryKuzmenko commented on Jul 13, 2015

    @DmitryKuzmenko
    Contributor

    This works as the following: if minion gets a list of masters it loops through the list trying to connect until the first success. If dns lookup fails minion retries infinitely with interval set by retry_dns config option. If retry_dns is set to 0 it works as expected: minion tries the second entry after dns lookup failed.

    What's expected behavior if retry_dns is non-zero in failover case? Shall minion just ignore retry_dns in this case? Or shall it connect to the second master but still periodically check the first one?

  9. added
    pending-discussion
    Confirmed
    on Jul 13, 2015
  10. DmitryKuzmenko commented on Jul 13, 2015

    @DmitryKuzmenko
    Contributor

    The fix isn't for this issue but related because master list case doesn't work even if all masters in the list are accessible.

  11. DmitryKuzmenko commented on Jul 14, 2015

    @DmitryKuzmenko
    Contributor

    As discussed PR #25404 forces retry_dns to 0 if master_type is set to failover.

  12. added
    fixed-pls-verify
    and removed
    pending-discussion
    on Jul 14, 2015
  13. modified the milestones: Be 2, Approved on Jul 14, 2015
  14. added
    severity-critical
    on Jul 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ConfirmedCoreP2ZDZRELEASED - Berylliumbugfixed-pls-verifyseverity-criticalseverity-medium

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions