Can't get my minions to grab new Pillar data
Description of Issue/Question
Having a LOT of trouble trying to get my minions to grab new pillar data, specifically, I am trying to add new service beacons.
I have tried salt '*' saltutil.refresh_pillar and it doesn't work.
Tried restarting services both on master and minion, does not update.
I finally created an entirely new ext_pillar and git repo from scratch which finally got the new data, THEN I tried adding a new line of data and it was not updating again.
I am not using a local pillar, only GitHub.
I've already scoured the salt documentation and googled it into oblivion.
Setup
git repo: https://github.com/LaughHammers/spase-git-pillars
config:
ext_pillar:
- git:
- [email protected]:LaughHammers/spase-git-pillars.git:
- root: pillars
- pubkey: /root/.ssh/id_rsa.pub
- privkey: /root/.ssh/id_rsa
pillar top:
base:
'*':
- data
data.sls:
test_pillar:
- check 1
- check 2
- check 3
If I add a new line like check 4 and run saltutil.refresh_pillar it does not get picked up by minions. They only see the data since creating an entirely new github repo.
Steps to Reproduce Issue
winserv1:
c:\salt>salt-call -l debug saltutil.refresh_pillar
[DEBUG ] Reading configuration from c:\salt\conf\minion
[DEBUG ] Including configuration from 'c:\salt\conf\minion.d\_schedule.conf'
[DEBUG ] Reading configuration from c:\salt\conf\minion.d\_schedule.conf
[DEBUG ] Configuration file path: c:\salt\conf\minion
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[DEBUG ] Grains refresh requested. Refreshing grains.
[DEBUG ] Reading configuration from c:\salt\conf\minion
[DEBUG ] Including configuration from 'c:\salt\conf\minion.d\_schedule.conf'
[DEBUG ] Reading configuration from c:\salt\conf\minion.d\_schedule.conf
[DEBUG ] Connecting to master. Attempt 1 (infinite attempts)
[DEBUG ] Master URI: tcp://192.168.1.10:4506
[DEBUG ] Popen(['git', 'version'], cwd=c:\salt, universal_newlines=False, shell=None)
[DEBUG ] Initializing new AsyncAuth for ('c:\\salt\\conf\\pki\\minion', 'winserv1', 'tcp://192.168.1.10:4506')
[DEBUG ] Generated random reconnect delay between '1000ms' and '11000ms' (3659)
[DEBUG ] Setting zmq_reconnect_ivl to '3659ms'
[DEBUG ] Setting zmq_reconnect_ivl_max to '11000ms'
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('c:\\salt\\conf\\pki\\minion', 'winserv1', 'tcp://192.168.1.10:4506', 'clear')
[DEBUG ] Connecting the Minion to the Master URI (for the return server): tcp://192.168.1.10:4506
[DEBUG ] Trying to connect to: tcp://192.168.1.10:4506
[DEBUG ] salt.crypt.get_rsa_pub_key: Loading public key
[DEBUG ] Decrypting the current master AES key
[DEBUG ] salt.crypt.get_rsa_key: Loading private key
[DEBUG ] salt.crypt._get_key_with_evict: Loading private key
[DEBUG ] Loaded minion key: c:\salt\conf\pki\minion\minion.pem
[DEBUG ] salt.crypt.get_rsa_pub_key: Loading public key
[DEBUG ] Closing AsyncZeroMQReqChannel instance
[DEBUG ] Connecting the Minion to the Master publish port, using the URI: tcp://192.168.1.10:4505
[DEBUG ] salt.crypt.get_rsa_key: Loading private key
[DEBUG ] Loaded minion key: c:\salt\conf\pki\minion\minion.pem
[DEBUG ] Determining pillar cache
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('c:\\salt\\conf\\pki\\minion', 'winserv1', 'tcp://192.168.1.10:4506', 'aes')
[DEBUG ] Initializing new AsyncAuth for ('c:\\salt\\conf\\pki\\minion', 'winserv1', 'tcp://192.168.1.10:4506')
[DEBUG ] Connecting the Minion to the Master URI (for the return server): tcp://192.168.1.10:4506
[DEBUG ] Trying to connect to: tcp://192.168.1.10:4506
[DEBUG ] salt.crypt.get_rsa_key: Loading private key
[DEBUG ] Loaded minion key: c:\salt\conf\pki\minion\minion.pem
[DEBUG ] Closing AsyncZeroMQReqChannel instance
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] LazyLoaded saltutil.refresh_pillar
[DEBUG ] LazyLoaded direct_call.execute
[DEBUG ] LazyLoaded event.fire
[DEBUG ] SaltEvent PUB socket URI: 4510
[DEBUG ] SaltEvent PULL socket URI: 4511
[DEBUG ] Initializing new IPCClient for path: 4511
[DEBUG ] Sending event: tag = pillar_refresh; data = {'_stamp': '2019-05-10T17:19:12.952546'}
[DEBUG ] Closing IPCMessageClient instance
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('c:\\salt\\conf\\pki\\minion', 'winserv1', 'tcp://192.168.1.10:4506', 'aes')
[DEBUG ] Initializing new AsyncAuth for ('c:\\salt\\conf\\pki\\minion', 'winserv1', 'tcp://192.168.1.10:4506')
[DEBUG ] Connecting the Minion to the Master URI (for the return server): tcp://192.168.1.10:4506
[DEBUG ] Trying to connect to: tcp://192.168.1.10:4506
[DEBUG ] Closing AsyncZeroMQReqChannel instance
[DEBUG ] LazyLoaded nested.output
local:
True
master:
root@master:/home/mother# salt winserv* -l debug saltutil.refresh_pillar
[DEBUG ] Reading configuration from /etc/salt/master
[DEBUG ] Including configuration from '/etc/salt/master.d/reactor.conf'
[DEBUG ] Reading configuration from /etc/salt/master.d/reactor.conf
[DEBUG ] Including configuration from '/etc/salt/master.d/spase.conf'
[DEBUG ] Reading configuration from /etc/salt/master.d/spase.conf
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: master
[DEBUG ] Missing configuration file: /root/.saltrc
[DEBUG ] Configuration file path: /etc/salt/master
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[DEBUG ] Reading configuration from /etc/salt/master
[DEBUG ] Including configuration from '/etc/salt/master.d/reactor.conf'
[DEBUG ] Reading configuration from /etc/salt/master.d/reactor.conf
[DEBUG ] Including configuration from '/etc/salt/master.d/spase.conf'
[DEBUG ] Reading configuration from /etc/salt/master.d/spase.conf
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: master
[DEBUG ] Missing configuration file: /root/.saltrc
[DEBUG ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc
[DEBUG ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc
[DEBUG ] Popen(['git', 'version'], cwd=/home/mother, universal_newlines=False, shell=None)
[DEBUG ] Popen(['git', 'version'], cwd=/home/mother, universal_newlines=False, shell=None)
[DEBUG ] Initializing new AsyncZeroMQReqChannel for (u'/etc/salt/pki/master', u'master_master', u'tcp://127.0.0.1:4506', u'clear')
[DEBUG ] Connecting the Minion to the Master URI (for the return server): tcp://127.0.0.1:4506
[DEBUG ] Trying to connect to: tcp://127.0.0.1:4506
[DEBUG ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pub.ipc
[DEBUG ] Closing AsyncZeroMQReqChannel instance
[DEBUG ] LazyLoaded local_cache.get_load
[DEBUG ] Reading minion list from /var/cache/salt/master/jobs/01/46bad7e68a9678ec31b1ecbd984f924bb900930d7d3725ee803fd510b7fabf/.minions.p
[DEBUG ] get_iter_returns for jid 20190510172242081847 sent to set(['winserv1']) will timeout at 12:22:47.098291
[DEBUG ] Checking whether jid 20190510172242081847 is still running
[DEBUG ] Initializing new AsyncZeroMQReqChannel for (u'/etc/salt/pki/master', u'master_master', u'tcp://127.0.0.1:4506', u'clear')
[DEBUG ] Connecting the Minion to the Master URI (for the return server): tcp://127.0.0.1:4506
[DEBUG ] Trying to connect to: tcp://127.0.0.1:4506
[DEBUG ] Closing AsyncZeroMQReqChannel instance
[DEBUG ] Passing on saltutil error. Key 'u'retcode' missing from client return. This may be an error in the client.
[DEBUG ] jid 20190510172242081847 return from winserv1
[DEBUG ] return event: {u'winserv1': {u'jid': u'20190510172242081847', u'retcode': 0, u'ret': True}}
[DEBUG ] LazyLoaded nested.output
winserv1:
True
winserv1:
c:\salt>salt-call -l debug pillar.items
[DEBUG ] Reading configuration from c:\salt\conf\minion
[DEBUG ] Including configuration from 'c:\salt\conf\minion.d\_schedule.conf'
[DEBUG ] Reading configuration from c:\salt\conf\minion.d\_schedule.conf
[DEBUG ] Configuration file path: c:\salt\conf\minion
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[DEBUG ] Grains refresh requested. Refreshing grains.
[DEBUG ] Reading configuration from c:\salt\conf\minion
[DEBUG ] Including configuration from 'c:\salt\conf\minion.d\_schedule.conf'
[DEBUG ] Reading configuration from c:\salt\conf\minion.d\_schedule.conf
[DEBUG ] Connecting to master. Attempt 1 (infinite attempts)
[DEBUG ] Master URI: tcp://192.168.1.10:4506
[DEBUG ] Popen(['git', 'version'], cwd=c:\salt, universal_newlines=False, shell=None)
[DEBUG ] Initializing new AsyncAuth for ('c:\\salt\\conf\\pki\\minion', 'winserv1', 'tcp://192.168.1.10:4506')
[DEBUG ] Generated random reconnect delay between '1000ms' and '11000ms' (5925)
[DEBUG ] Setting zmq_reconnect_ivl to '5925ms'
[DEBUG ] Setting zmq_reconnect_ivl_max to '11000ms'
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('c:\\salt\\conf\\pki\\minion', 'winserv1', 'tcp://192.168.1.10:4506', 'clear')
[DEBUG ] Connecting the Minion to the Master URI (for the return server): tcp://192.168.1.10:4506
[DEBUG ] Trying to connect to: tcp://192.168.1.10:4506
[DEBUG ] salt.crypt.get_rsa_pub_key: Loading public key
[DEBUG ] Decrypting the current master AES key
[DEBUG ] salt.crypt.get_rsa_key: Loading private key
[DEBUG ] salt.crypt._get_key_with_evict: Loading private key
[DEBUG ] Loaded minion key: c:\salt\conf\pki\minion\minion.pem
[DEBUG ] salt.crypt.get_rsa_pub_key: Loading public key
[DEBUG ] Closing AsyncZeroMQReqChannel instance
[DEBUG ] Connecting the Minion to the Master publish port, using the URI: tcp://192.168.1.10:4505
[DEBUG ] salt.crypt.get_rsa_key: Loading private key
[DEBUG ] Loaded minion key: c:\salt\conf\pki\minion\minion.pem
[DEBUG ] Determining pillar cache
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('c:\\salt\\conf\\pki\\minion', 'winserv1', 'tcp://192.168.1.10:4506', 'aes')
[DEBUG ] Initializing new AsyncAuth for ('c:\\salt\\conf\\pki\\minion', 'winserv1', 'tcp://192.168.1.10:4506')
[DEBUG ] Connecting the Minion to the Master URI (for the return server): tcp://192.168.1.10:4506
[DEBUG ] Trying to connect to: tcp://192.168.1.10:4506
[DEBUG ] salt.crypt.get_rsa_key: Loading private key
[DEBUG ] Loaded minion key: c:\salt\conf\pki\minion\minion.pem
[DEBUG ] Closing AsyncZeroMQReqChannel instance
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] LazyLoaded pillar.items
[DEBUG ] LazyLoaded direct_call.execute
[DEBUG ] Determining pillar cache
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('c:\\salt\\conf\\pki\\minion', 'winserv1', 'tcp://192.168.1.10:4506', 'aes')
[DEBUG ] Initializing new AsyncAuth for ('c:\\salt\\conf\\pki\\minion', 'winserv1', 'tcp://192.168.1.10:4506')
[DEBUG ] Connecting the Minion to the Master URI (for the return server): tcp://192.168.1.10:4506
[DEBUG ] Trying to connect to: tcp://192.168.1.10:4506
[DEBUG ] salt.crypt.get_rsa_key: Loading private key
[DEBUG ] Loaded minion key: c:\salt\conf\pki\minion\minion.pem
[DEBUG ] Closing AsyncZeroMQReqChannel instance
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('c:\\salt\\conf\\pki\\minion', 'winserv1', 'tcp://192.168.1.10:4506', 'aes')
[DEBUG ] Initializing new AsyncAuth for ('c:\\salt\\conf\\pki\\minion', 'winserv1', 'tcp://192.168.1.10:4506')
[DEBUG ] Connecting the Minion to the Master URI (for the return server): tcp://192.168.1.10:4506
[DEBUG ] Trying to connect to: tcp://192.168.1.10:4506
[DEBUG ] Closing AsyncZeroMQReqChannel instance
[DEBUG ] LazyLoaded nested.output
local:
----------
beacons:
----------
service:
|_
----------
services:
----------
LogInsightAgentService:
----------
onchangeonly:
True
enstart64:
----------
onchangeonly:
True
scsm:
----------
onchangeonly:
True
test_pillar:
- check 1
- check 2
- check 3
c:\salt>
Versions Report
master:
Salt Version:
Salt: 2019.2.0
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.6.1
docker-py: Not Installed
gitdb: 2.0.3
gitpython: 2.1.8
ioflo: Not Installed
Jinja2: 2.10
libgit2: 0.26.0
libnacl: Not Installed
M2Crypto: Not Installed
Mako: 1.0.7
msgpack-pure: Not Installed
msgpack-python: 0.5.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: 0.26.2
Python: 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
python-gnupg: 0.4.1
PyYAML: 3.12
PyZMQ: 16.0.2
RAET: Not Installed
smmap: 2.0.3
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.2.5
System Versions:
dist: Ubuntu 18.04 bionic
locale: UTF-8
machine: x86_64
release: 4.15.0-47-generic
system: Linux
version: Ubuntu 18.04 bionic
winserv1:
c:\salt>salt-call --versions-report
Salt Version:
Salt: 2019.2.0
Dependency Versions:
cffi: 1.11.5
cherrypy: 17.4.1
dateutil: 2.7.5
docker-py: Not Installed
gitdb: 2.0.5
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.10
libgit2: Not Installed
libnacl: 1.6.1
M2Crypto: Not Installed
Mako: 1.0.7
msgpack-pure: Not Installed
msgpack-python: 0.5.6
mysql-python: Not Installed
pycparser: 2.19
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 3.5.4 (v3.5.4:3f56838, Aug 8 2017, 02:17:05) [MSC v.1900 64 bit (AMD64)]
python-gnupg: 0.4.3
PyYAML: 3.13
PyZMQ: 17.1.2
RAET: Not Installed
smmap: 2.0.5
timelib: 0.2.4
Tornado: 4.5.3
ZMQ: 4.2.5
System Versions:
dist:
locale: cp1252
machine: AMD64
release: 2012ServerR2
system: Windows
version: 2012ServerR2 6.3.9600 SP0 Multiprocessor Free
Solved!
salt-run cache.clear_git_lock git_pillar type=update