Mine data from minions is being reported to part of masters
Hello!
Salt versions info:
[root@h1 salt]# salt --versions
Salt Version:
Salt: 2015.8.3
Dependency Versions:
Jinja2: unknown
M2Crypto: Not Installed
Mako: Not Installed
PyYAML: 3.09
PyZMQ: 14.5.0
Python: 2.6.6 (r266:84292, Jul 23 2015, 15:22:56)
RAET: Not Installed
Tornado: 4.2.1
ZMQ: 4.0.5
cffi: Not Installed
cherrypy: Not Installed
dateutil: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
libnacl: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pygit2: Not Installed
python-gnupg: Not Installed
smmap: Not Installed
timelib: Not Installed
System Versions:
dist: centos 6.5 Final
machine: x86_64
release: 2.6.32-431.29.2.el6.x86_64
system: CentOS 6.5 Final
After upgrade to SaltStack 2015.8.3 we discovered that Mine is working inconsistently in MultiMaster environment. So for example we have 5 (h1, m1, m2, m3, m4) minions and 2 (h1, m1) masters. All minions are connected to both masters. In minion config we configured grains to be added to mine:
mine_functions:
grains.items: []
Lets clean mine cache on masters:
rm -rf /var/cache/salt/master/minions/*/mine.p
After restart of all masters and minions and "salt * mine.update" we see that on one master grains were reported for 2 minions and on another master only for 3 minions:
[root@h1 salt]# salt h1 mine.get \* grains.items
h1:
----------
m1:
...
m3:
...
[root@m1 ~]# salt h1 mine.get \* grains.items
h1:
----------
h1:
...
m2:
...
m4:
...
So for some reason part of minions reported its grains to mine on one master and another part of minions to the second master.. The same behaviour could be observed if mine_functions were configured through pillar.
Do you have any idea why it could happen? Looking forward to your reply.
@vakulich - thanks for the report.
Did you run from salt * mine.update from one master or from both?
It does not matter - result is the same. Also I noticed that if restart all minions again then returns to masters will shuffle again.
Hello again! So is there any progress with this issue? =)
It is really annoying, even if we not remove mine.p files we can see timestamps difference between files:
[root@h1 setup]# ssh 10.44.3.245 'ls -lh /var/cache/salt/master/minions/*/mine.p'
-rw-r--r-- 1 root root 2.2K Jan 20 04:34 /var/cache/salt/master/minions/h1/mine.p
-rw-r--r-- 1 root root 2.2K Jan 21 04:39 /var/cache/salt/master/minions/m1/mine.p
-rw-r--r-- 1 root root 2.2K Jan 20 04:34 /var/cache/salt/master/minions/m2/mine.p
-rw-r--r-- 1 root root 2.2K Jan 21 04:39 /var/cache/salt/master/minions/m3/mine.p
-rw-r--r-- 1 root root 2.1K Jan 20 04:36 /var/cache/salt/master/minions/m4/mine.p
[root@h1 setup]# ssh 10.44.3.246 'ls -lh /var/cache/salt/master/minions/*/mine.p'
-rw-r--r-- 1 root root 2.2K Jan 21 04:39 /var/cache/salt/master/minions/h1/mine.p
-rw-r--r-- 1 root root 2.2K Jan 20 04:34 /var/cache/salt/master/minions/m1/mine.p
-rw-r--r-- 1 root root 2.2K Jan 21 04:39 /var/cache/salt/master/minions/m2/mine.p
-rw-r--r-- 1 root root 2.2K Jan 20 04:34 /var/cache/salt/master/minions/m3/mine.p
-rw-r--r-- 1 root root 2.2K Jan 21 04:39 /var/cache/salt/master/minions/m4/mine.p
So it is clear here that during the latest mine.update on Jan 21: 2 results went on first master and other 3 on another.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.