Repository navigation
Closed
Labels
Corerelates to code central or existential to SaltMulti-MasterP1Priority 1RegressionThe issue is a bug that breaks functionality known to work in previous releases.ZDThe issue is related to a Zendesk customer support ticket.bugbroken, incorrect, or confusing behaviorfixed-pls-verifyfix is linked, bug author to confirm fixseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Description
When setting up multi-master on the HEAD of the 2015.2 branch, when the minion starts, the minion will block until it authenticates with the first master in the minion's list of masters. Once that auth has taken place, it will then block on the authentication of the second master, and so on (if more than two).
This is a regression in behavior since 2014.7 (and, after testing on the HEAD of 2014.7, is not an issue there). In 2014.7, the minion would try to auth with both masters, before eventually settling on whichever masters were up after a number of iterations (see #17032).
The blocking behavior causes several problems with multi-master:
- When the minion is started and the 1st master is up but the second master is down, the minion auths with the first master and then blocks. The 1st master, which is running, cannot send commands to the minion(s), because the minions aren't receiving the event, processing it, and sending returns. The CLI on the master says "Minion did not return. [No response]".
- When the minion is started and the 2nd master is up but the 1st master is down, the minion blocks on authing to the first master. Commands can't be sent from the 2nd master to the minion(s) because the minions haven't authenticated and are not receiving events.
ping @cachedout
Metadata
Metadata
Assignees
Labels
Corerelates to code central or existential to SaltMulti-MasterP1Priority 1RegressionThe issue is a bug that breaks functionality known to work in previous releases.ZDThe issue is related to a Zendesk customer support ticket.bugbroken, incorrect, or confusing behaviorfixed-pls-verifyfix is linked, bug author to confirm fixseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Activity
rallytime commentedon Mar 19, 2015
I can still reproduce this problem on my testing setup and it doesn't appear fixed. @cachedout Let's look at this again and see if I am just missing something.
cachedout commentedon Mar 20, 2015
This does work but only if
auth_retryandauth_timeoutare dialed down from their original defaults. However, that has other (potentially serious) side effects, especially at scale.23 remaining items
plastikos commentedon Oct 23, 2015
Hmmm. I'd like to watch the internals of libzmq with my instrumented version to see what is going on. Unfortunately I'm not sure when I'd set those tests up. Do you have a nice, contained test for this?
cachedout commentedon Oct 23, 2015
@plastikos The steps to reproduce it are in the comment I left above: #21744 (comment). All that's needed is a single master and a single minion.
DmitryKuzmenko commentedon Oct 23, 2015
My 5 cents: ZeroMQ workflow have to be the following:
Here it looks we haven't close a socket somewhere.
DmitryKuzmenko commentedon Oct 26, 2015
Caught it!
As I said we don't close the ZeroMQ socket. Will review all the zeromq transport layer and send PR in an hour or two.
cachedout commentedon Oct 26, 2015
@DmitryKuzmenko Great! As you probably say in my comments, calling
destroy()on the context will force-close the socket(s) but you may have an approach which is more selective. Looking forward to seeing what you come up with.DmitryKuzmenko commentedon Oct 26, 2015
Checked other zeromq channels, AsyncZeroMQPubChannel is the only one who doesn't close it's socket in some cases: when stream was never created.
cachedout commentedon Oct 26, 2015
@Ch3LL Please see if you can verify the fix from @DmitryKuzmenko and we'll get this closed.
Ch3LL commentedon Oct 27, 2015
Forgot to update this thread. Tests passed in 2015.8.0. :)
DmitryKuzmenko commentedon Oct 27, 2015
Yes! Thank you @Ch3LL !
Ch3LL commentedon Dec 4, 2015
@usernkey only active-active (master_type: str)
Ch3LL commentedon Dec 4, 2015
@usernkey its definitely on our radar. There's a couple issues opened for multi-master failover that you can track here: #24243 #27152
Please confirm you are seeing the same problems reported in those issues. Thanks