-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple returns with syndic #21601
Comments
Thanks for the reply @rallytime. Our servers are all running the same version: Super Master: Salt: 2014.7.1
Python: 2.7.3 (default, Mar 13 2014, 11:03:55)
Jinja2: 2.6
M2Crypto: 0.21.1
msgpack-python: 0.1.10
msgpack-pure: Not Installed
pycrypto: 2.6
libnacl: Not Installed
PyYAML: 3.10
ioflo: Not Installed
PyZMQ: 13.1.0
RAET: Not Installed
ZMQ: 4.0.4
Mako: 0.7.0 Syndic: Salt: 2014.7.1
Python: 2.7.3 (default, Mar 13 2014, 11:03:55)
Jinja2: 2.6
M2Crypto: 0.21.1
msgpack-python: 0.1.10
msgpack-pure: Not Installed
pycrypto: 2.6
libnacl: Not Installed
PyYAML: 3.10
ioflo: Not Installed
PyZMQ: 13.1.0
RAET: Not Installed
ZMQ: 4.0.4
Mako: 0.7.0 Minion: Salt: 2014.7.1
Python: 2.7.3 (default, Mar 13 2014, 11:03:55)
Jinja2: 2.6
M2Crypto: 0.21.1
msgpack-python: 0.1.10
msgpack-pure: Not Installed
pycrypto: 2.6
libnacl: Not Installed
PyYAML: 3.10
ioflo: Not Installed
PyZMQ: 13.1.0
RAET: Not Installed
ZMQ: 4.0.4
Mako: 0.7.0 |
Also, if it helps, here are the relevant config file settings (minus some defined nodegroups and some grains): Super Master (/etc/salt/master): file_roots:
base:
- /srv/salt
- /srv/files
pillar_roots:
base:
- /srv/pillar
order_masters: True Syndic (/etc/salt/master): file_roots:
base:
- /srv/salt
pillar_roots:
base:
- /srv/pillar
# Modified to protect master hostname
syndic_master: salt.example.com Syndic (/etc/salt/minion): # Modified to protect master hostname
master: salt.example.com Minion (/etc/salt/minion): # Modified to protect syndic hostname
master: syndic.example.com |
@ev0rtex Do you have a minion installed on the box that has the Syndic/Master? I am wondering if the config value you have listed in the Syndic's /etc/salt/minion file is causing these multiple returns. If you do not have a minion on the Syndic box, you shouldn't need an /etc/salt/minion file. The |
@rallytime I do run a minion on the syndic as evidenced by my config files above. I have tried shutting down the minion in case that was part of the problem but it makes no difference. |
This is very odd. The only time I would expect to see behavior like this is in a multi-master syndic setup. If minions are connected to multiple masters, and those masters are all connected to a master of masters, then the minion will get the job multiple times (once from each master). Are you using multi-master at all? |
@basepi We don't have a multi-master setup. As I'm thinking about it I know we switched the minions to point to the syndic in the past. Prior to doing so they originally pointed at our super master before we had the syndic master in place. When I did the switch I deleted the minion keys from the super master and then I pointed the minions to the syndic master. I can't imagine that anything would be wrong with how I did this though. I'm pretty stumped at this point and nothing I have tried thus far seems to make a difference. |
@ev0rtex Nothing sounds wrong with that setup or the changes to your setup. I wonder if the various fixes we have put in place for the syndic in the last week or so would help this issue? We're hoping to get 2015.2.0rc2 out today or Monday and it will have those changes, would be useful if you could test there. Another thought I had -- you should double check that you only have one copy of the syndic running on your lower level masters. Otherwise I could see duplicate events coming through and potentially causing these issues. If neither of those things helps, I'm a little stumped too.... |
Check if you have multiple syndic processes running, that was my problem. I even reported this in issue #19957 |
@claudiupopescu, @basepi I don't know why I didn't think to check that earlier. It does appear that I'm affected by that problem. I just checked and there were like 20 salt-syndic processes running. I definitely have that exact same issue where stopping the salt-syndic service does not kill the salt-syndic processes. |
@ev0rtex Glad that we figured it out! I didn't think to check that either. I think that in this case we should close this in favor of the other issue and track the progress of this bug there, since it was filed earlier. That ok with you? |
@rallytime yeah, let's watch the other issue. Thanks |
Cool! Thanks! |
I am trying to figure out if I've done something wrong or if this is actually a bug of some sort. My setup has a main salt master and lower-level masters running the syndic (I'll call these syndic-masters). Whenever I try to run something (e.g. test.ping) from the main master targeting minions under a syndic-master I am seeing multiple returns:
root@salt:~# salt ddmvarnish01-ssl.deseretdigital.com test.ping
in the debug output on the targeted minion I see a lot of this:
I have no idea what's happening here but if I'm not mistaken I think I'm seeing the same job actually being run multiple times on the minion. This issue does not happen if I run the same command from the syndic-master.
The text was updated successfully, but these errors were encountered: