master_type: str, not working as expected, parent salt-minion process dies.
Description of Issue/Question
We run four masters with the 'str' master type for HA. Over the course of several days, some of the minion's parent process will die, leaving only the child minion alive. I've not been able to track down why, if the first minion in the list becomes 'unavailable', the minion doesn't simply reconnect to one of the other masters. The only recourse is to restart the minion, by killing the, now orphaned, child minion process and starting the minion again. The use of kill is necessary because the init.d script doesn't stop the minion child process since the parent is dead.
This is the only thing in the logs that I can find:
2017-08-04 15:04:11,176 [salt.minion ][ERROR ][5151] ** Master Ping failed. Attempting to restart minion**
The parent minion process dies immediately after this message appears.
After enabling debug log level, i see the following:
2017-08-08 10:58:15,424 [salt.transport.zeromq ][DEBUG ][8503] SaltReqTimeoutError, retrying. (1/3)
2017-08-08 10:59:15,462 [salt.transport.zeromq ][DEBUG ][8503] SaltReqTimeoutError, retrying. (2/3)
2017-08-08 11:00:15,479 [salt.transport.zeromq ][DEBUG ][8503] SaltReqTimeoutError, retrying. (3/3)
2017-08-08 11:01:15,551 [salt.minion ][INFO ][8503] fire_master failed: master could not be contacted. Request timed out.
2017-08-08 11:01:15,551 [salt.minion ][ERROR ][8503] ** Master Ping failed. Attempting to restart minion**
2017-08-08 11:01:15,551 [salt.minion ][INFO ][8503] delaying random_reauth_delay 30s
At this point the parent minion process has died.
Setup
(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).) Minion configuration:
sudo egrep -v "^$|^#" /etc/salt/minion
master:
- nacl1
- nacl2
- nacl3
- nacl4
random_master: True
master_shuffle: True
master_type: str
retry_dns: 0
master_port: 4506
user: root
cachedir: /var/cache/salt/minion
output: nested
color: False
backup_mode: minion
acceptance_wait_time: 60
random_reauth_delay: 30
auth_safemode: False
auth_tries: 10
master_tries: -1
restart_on_error: True
ping_interval: 5
grains_refresh_every: 10
master_alive_interval: 60
renderer: yaml_jinja
failhard: True
state_top: top.sls
file_client: remote
hash_type: sha256
open_mode: False
permissive_pki_access: False
state_output_diff: True
log_file: /var/log/salt/minion
key_logfile: /var/log/salt/key
log_level: warning
log_level_logfile: debug
log_datefmt: '%H:%M:%S %H:%M:%S'
log_datefmt_logfile: '%Y-%m-%d %H:%M:%S'
return: ns_logstash
zmq_monitor: False
master_failback: True
master_failback_interval: 60
mine_enabled: True
mine_interval: 60
ipv6: False
Master Configuration:
sudo egrep -v "^$|^#" /etc/salt/master
default_include: master.d/*.conf
interface: 10.XX.YY.ZZ
ipv6: False
publish_port: 4505
user: root
ret_port: 4506
cachedir: /data/servers/salt/cache
keep_jobs: 24
timeout: 30
output: json
show_timeout: True
color: False
strip_colors: True
job_cache: True
minion_data_cache: True
ping_on_rotate: True
worker_threads: 100
auto_accept: True
file_recv: False
state_top: top.sls
renderer: yaml_jinja
state_verbose: True
state_output: changes
file_roots:
production:
- /data/servers/salt/roots/production/salt_grains
- /data/servers/salt/roots/production/salt_firstboot/states
- /data/servers/salt/roots/production/salt_states/states
- /data/servers/salt/roots/production/protected_salt_states/states
- /data/servers/salt/roots/master/configuration_data/
pre-production:
- /data/servers/salt/roots/pre-production/salt_grains
- /data/servers/salt/roots/pre-production/salt_firstboot/states
- /data/servers/salt/roots/pre-production/salt_states/states
- /data/servers/salt/roots/pre-production/protected_salt_states/states
- /data/servers/salt/roots/master/configuration_data/
base:
- /data/servers/salt/roots/production/salt_grains
- /data/servers/salt/roots/production/salt_firstboot/states
- /data/servers/salt/roots/production/salt_states/states
- /data/servers/salt/roots/production/protected_salt_states/states
- /data/servers/salt/roots/master/configuration_data/
hash_type: sha256
pillar_roots:
production:
- /data/servers/salt/roots/production/salt_pillars/pillars
- /data/servers/salt/roots/production/protected_salt_pillars/pillars
pre-production:
- /data/servers/salt/roots/pre-production/salt_pillars/pillars
- /data/servers/salt/roots/pre-production/protected_salt_pillars/pillars
base:
- /data/servers/salt/roots/production/salt_pillars/pillars
- /data/servers/salt/roots/production/protected_salt_pillars/pillars
extension_modules: /data/servers/salt/roots/production/salt_pillars/external
ext_pillar:
- database_information: True
- envchecker:
envcheckerfile: /data/servers/salt/roots/master/configuration_data/envchecker/envchecker.json
- cfd_zonedata: True
order_masters: True
syndic_master_port: 4506
syndic_log_file: /var/log/salt/syndic.log
log_file: /var/log/salt/master
key_logfile: /var/log/salt/key
log_level: warning
log_level_logfile: warning
log_datefmt: '%H:%M:%S %H:%M:%S'
log_datefmt_logfile: '%Y-%m-%d %H:%M:%S'
reactor:
- 'minion_start':
- /data/servers/salt/roots/master/salt_reactors/sync_grains.sls
- 'salt/presence/change':
- /data/servers/salt/roots/master/salt_reactors/new_minions.sls
return: ns_logstash
smtp.from: 'salt-master@nacl1'
smtp.to: [email protected]
smtp.host: localhost
smtp.subject: '[Salt Master nacl1]'
presence_events: True
salt_event_pub_hwm: 128000
event_publisher_pub_hwm: 64000
pillar_cache: True
pillar_cache_ttl: 3600
pillar_cache_backend: disk
Steps to Reproduce Issue
(Include debug logs if possible and relevant.)
The only way i've been able to reproduce the problem is by adding a iptables DROP rule for the first master in the list of masters.
Versions Report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Masters:
Salt Version:
Salt: 2016.11.6
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 1.4.1
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.8.1
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: 0.20.2
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: 1.2.3c1
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.6.6 (r266:84292, Jan 22 2014, 01:49:05)
python-gnupg: 0.3.6
PyYAML: 3.11
PyZMQ: 14.5.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.0.5
System Versions:
dist: redhat 6.6 Santiago
machine: x86_64
release: 2.6.32-504.8.1.el6.x86_64
system: Linux
version: Red Hat Enterprise Linux Server 6.6 Santiago
Minions:
Salt Version:
Salt: 2016.11.6
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 1.4.1
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.8.1
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: 0.20.2
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: 1.2.3c1
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: 3.4.3
pygit2: Not Installed
Python: 2.6.6 (r266:84292, Jan 22 2014, 01:49:05)
python-gnupg: 0.3.6
PyYAML: 3.11
PyZMQ: 14.5.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.0.5
System Versions:
dist: redhat 6.6 Santiago
machine: x86_64
release: 2.6.32-504.8.1.el6.x86_64
system: Linux
version: Red Hat Enterprise Linux Server 6.6 Santiago
I believe that this is the expected behavior. If you want it to move on to the next master if it can't reach the one it is connected to, master_type needs to be set to failover.
https://docs.saltstack.com/en/latest/ref/configuration/minion.html#master-type
Can you try that? Otherwise, I am not quite sure how to replicate this is issue, because whenever i kill the parent, the rest of the minion child processes die as well.
Thanks, Daniel
Ah, I guess I mis-understood the meaning of the str master_type. My goal was to be able to have all the masters in the list as "hot". Meaning I could go onto any of the listed masters and run salt commands to talk to all my minions.
I just tested the failover master_type and it appears to do the same thing. After adding a -j DROP rule to my minion test machine, dropping traffic outbound to the master its connected to, the parent minion process dies, leaving only the child minion process.
# pgrep -fl salt-minion
17894 /usr/bin/python2.6 /usr/bin/salt-minion -c /etc/salt -d
# cat /var/run/salt-minion.pid ; echo
17893
#
yeah, unfortunately the minion can only listen to one master at a time.
I am going to test this with the Drop rule.
Thanks, Daniel
Actually, my appologies, you are able to do that with master_type: str. The reason i wasn't able to was that I did not have the same keys for the salt-master on my second master. Once those were copied over, I was able to test.ping from both.
[root@master1 salt]# salt \* test.ping
minion.c.gtmanfred-1263.internal:
True
[root@master1 salt]# salt \* cmd.run 'cat /etc/salt/minion'
minion.c.gtmanfred-1263.internal:
master:
- master1
- master2
retry_dns: 5
master_type: str
[root@master2 salt]# salt \* test.ping
minion.c.gtmanfred-1263.internal:
True
[root@master2 salt]# salt \* cmd.run 'cat /etc/salt/minion'
minion.c.gtmanfred-1263.internal:
master:
- master1
- master2
retry_dns: 5
master_type: str
Also, with this setup, I am still not able to replicate this.
[root@minion ~]# iptables -A OUTPUT -d 10.128.0.5/32 -j DROP
[root@minion ~]# ping master2 -c1
PING master2.c.gtmanfred-1263.internal (10.128.0.6) 56(84) bytes of data.
64 bytes from master2.c.gtmanfred-1263.internal (10.128.0.6): icmp_seq=1 ttl=64 time=0.934 ms
--- master2.c.gtmanfred-1263.internal ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.934/0.934/0.934/0.000 ms
[root@minion ~]# ping master1 -c1
PING master1.c.gtmanfred-1263.internal (10.128.0.5) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
--- master1.c.gtmanfred-1263.internal ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
[root@minion ~]# ps aux | grep salt
root 3770 0.1 0.9 357652 33240 ? Ss 19:08 0:00 /usr/bin/python2 /usr/bin/salt-minion
root 3784 0.5 1.0 768368 37444 ? Sl 19:08 0:00 /usr/bin/python2 /usr/bin/salt-minion
root 3786 0.0 0.7 431928 28120 ? S 19:08 0:00 /usr/bin/python2 /usr/bin/salt-minion
root 4070 0.0 0.0 112644 964 pts/0 R+ 19:11 0:00 grep --color=auto salt
And I am still able to do a test.ping from master2 after this.
[root@master2 salt]# salt \* test.ping
minion.c.gtmanfred-1263.internal:
True
[root@master2 salt]# salt \* cmd.run 'iptables -nL OUTPUT'
minion.c.gtmanfred-1263.internal:
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
DROP all -- 0.0.0.0/0 10.128.0.5
But obviously not from master1 (since established connections were not allowed)
[root@master1 salt]# salt -t 5 \* test.ping
minion.c.gtmanfred-1263.internal:
Minion did not return. [No response]
Weird, I can reproduce it over and over.
2017-08-09 12:58:08PDT [ root@nacl-minion:~ ] # /sbin/iptables -nL OUTPUT
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
2017-08-09 12:58:25PDT [ root@nacl-minion:~ ] # pgrep -fl salt-minion
2017-08-09 12:58:28PDT [ root@nacl-minion:~ ] # /etc/init.d/salt-minion start
Starting salt-minion:root:nacl-minion daemon: OK
2017-08-09 12:58:48PDT [ root@nacl-minion:~ ] #
2017-08-09 13:02:10PDT [ root@nacl-minion:~ ] # /sbin/iptables -A OUTPUT -d 10.1.57.152 -j DROP
2017-08-09 13:02:19PDT [ root@nacl-minion:~ ] # /sbin/iptables -nL OUTPUT
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
DROP all -- 0.0.0.0/0 10.1.57.152
2017-08-09 13:02:23PDT [ root@nacl-minion:~ ] # pgrep -fl salt-minion
11304 /usr/bin/python2.6 /usr/bin/salt-minion -c /etc/salt -d
11305 /usr/bin/python2.6 /usr/bin/salt-minion -c /etc/salt -d
2017-08-09 13:02:32PDT [ root@nacl-minion:~ ] # cat /var/run/salt-minion.pid ; echo
11304
2017-08-09 13:02:51PDT [ root@nacl-minion:~ ] # watch /var/log/salt/minion until you see the SaltReqTimeout from salt.tornado.zmq...
2017-08-09 13:05:13PDT [ root@nacl-minion:~ ] # cat /var/log/salt/minion | grep 11304 | tail -n 10
2017-08-09 13:03:07,552 [salt.utils.schedule ][DEBUG ][11304] schedule: This job was scheduled with jid_include, adding to cache (jid_include defaults to True)
2017-08-09 13:03:07,552 [salt.utils.schedule ][DEBUG ][11304] schedule: This job was scheduled with a max number of 1
2017-08-09 13:03:54,532 [salt.transport.zeromq ][DEBUG ][11304] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'nacl-minion', 'tcp://10.1.57.152:4506', 'aes')
2017-08-09 13:03:54,533 [salt.crypt ][DEBUG ][11304] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'nacl-minion', 'tcp://10.1.57.152:4506')
2017-08-09 13:04:54,952 [salt.transport.zeromq ][DEBUG ][11304] SaltReqTimeoutError, retrying. (1/3)
2017-08-09 13:05:55,012 [salt.transport.zeromq ][DEBUG ][11304] SaltReqTimeoutError, retrying. (2/3)
2017-08-09 13:06:55,071 [salt.transport.zeromq ][DEBUG ][11304] SaltReqTimeoutError, retrying. (3/3)
2017-08-09 13:07:55,133 [salt.minion ][INFO ][11304] fire_master failed: master could not be contacted. Request timed out.
2017-08-09 13:07:55,133 [salt.minion ][ERROR ][11304] ** Master Ping failed. Attempting to restart minion**
2017-08-09 13:07:55,133 [salt.minion ][INFO ][11304] delaying random_reauth_delay 30s
2017-08-09 13:08:42PDT [ root@nacl-minion:~ ]
# pgrep -fl salt-minion
11305 /usr/bin/python2.6 /usr/bin/salt-minion -c /etc/salt -d
2017-08-09 13:08:46PDT [ root@nacl-minion:~ ]
#
Hrm, i double checked with CentOS 6 and a copy of your minion config file just to make sure, but it is working still.
master1 before and after dropping.
[root@master1 salt]# salt \* test.ping
minion.c.gtmanfred-1263.internal:
True
[root@master1 salt]# salt \* test.ping
minion.c.gtmanfred-1263.internal:
Minion did not return. [No response]
[root@master1 salt]#
master2 before and after dropping
[root@master2 salt]# salt \* test.ping
minion.c.gtmanfred-1263.internal:
True
[root@master2 salt]# salt \* test.ping
minion.c.gtmanfred-1263.internal:
True
[root@master2 salt]#
and the minion with the log output.
[root@minion ~]# pgrep -fl salt-minion
3643 /usr/bin/python2.6 /usr/bin/salt-minion -c /etc/salt -d
3644 /usr/bin/python2.6 /usr/bin/salt-minion -c /etc/salt -d
[root@minion ~]# iptables -A OUTPUT -d 10.128.0.3/32 -j DROP
[root@minion ~]# grep $(</var/run/salt-minion.pid ) /var/log/salt/minion
2017-08-09 21:01:46,693 [salt.utils.process ][DEBUG ][3643] Created pidfile: /var/run/salt-minion.pid
2017-08-09 21:01:46,695 [salt.cli.daemons ][INFO ][3643] Starting up the Salt Minion
2017-08-09 21:01:46,699 [salt.utils.event ][DEBUG ][3643] AsyncEventPublisher PUB socket URI: /var/run/salt/minion/minion_event_c996324dfb_pub.ipc
2017-08-09 21:01:46,699 [salt.utils.event ][DEBUG ][3643] AsyncEventPublisher PULL socket URI: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:46,700 [salt.utils.event ][INFO ][3643] Starting pull socket on /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:46,701 [salt.utils.event ][DEBUG ][3643] SaltEvent PUB socket URI: /var/run/salt/minion/minion_event_c996324dfb_pub.ipc
2017-08-09 21:01:46,701 [salt.utils.event ][DEBUG ][3643] SaltEvent PULL socket URI: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:46,701 [salt.transport.ipc ][DEBUG ][3643] Initializing new IPCClient for path: /var/run/salt/minion/minion_event_c996324dfb_pub.ipc
2017-08-09 21:01:46,706 [salt.config ][DEBUG ][3643] Reading configuration from /etc/salt/minion
2017-08-09 21:01:46,726 [salt.config ][DEBUG ][3643] Including configuration from '/etc/salt/minion.d/_schedule.conf'
2017-08-09 21:01:46,726 [salt.config ][DEBUG ][3643] Reading configuration from /etc/salt/minion.d/_schedule.conf
2017-08-09 21:01:46,925 [salt.minion ][INFO ][3643] Creating minion process manager
2017-08-09 21:01:46,927 [salt.config ][DEBUG ][3643] Reading configuration from /etc/salt/minion
2017-08-09 21:01:46,936 [salt.config ][DEBUG ][3643] Including configuration from '/etc/salt/minion.d/_schedule.conf'
2017-08-09 21:01:46,936 [salt.config ][DEBUG ][3643] Reading configuration from /etc/salt/minion.d/_schedule.conf
2017-08-09 21:01:47,103 [salt.minion ][INFO ][3643] Creating minion process manager
2017-08-09 21:01:47,104 [salt.utils.process ][DEBUG ][3643] Process Manager starting!
2017-08-09 21:01:47,105 [salt.utils.process ][DEBUG ][3643] Process Manager starting!
2017-08-09 21:01:47,121 [salt.minion ][WARNING ][3643] random_master is True but there is only one master specified. Ignoring.
2017-08-09 21:01:47,122 [salt.minion ][DEBUG ][3643] Connecting to master. Attempt 1 (infinite attempts)
2017-08-09 21:01:47,139 [salt.crypt ][DEBUG ][3643] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.3:4506')
2017-08-09 21:01:47,141 [salt.transport.zeromq ][DEBUG ][3643] Generated random reconnect delay between '1000ms' and '11000ms' (1999)
2017-08-09 21:01:47,141 [salt.transport.zeromq ][DEBUG ][3643] Setting zmq_reconnect_ivl to '1999ms'
2017-08-09 21:01:47,141 [salt.transport.zeromq ][DEBUG ][3643] Setting zmq_reconnect_ivl_max to '11000ms'
2017-08-09 21:01:47,141 [salt.utils.process ][DEBUG ][3643] Process Manager starting!
2017-08-09 21:01:47,158 [salt.minion ][WARNING ][3643] random_master is True but there is only one master specified. Ignoring.
2017-08-09 21:01:47,158 [salt.minion ][DEBUG ][3643] Connecting to master. Attempt 1 (infinite attempts)
2017-08-09 21:01:47,160 [salt.crypt ][DEBUG ][3643] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.6:4506')
2017-08-09 21:01:47,161 [salt.transport.zeromq ][DEBUG ][3643] Generated random reconnect delay between '1000ms' and '11000ms' (3406)
2017-08-09 21:01:47,162 [salt.transport.zeromq ][DEBUG ][3643] Setting zmq_reconnect_ivl to '3406ms'
2017-08-09 21:01:47,162 [salt.transport.zeromq ][DEBUG ][3643] Setting zmq_reconnect_ivl_max to '11000ms'
2017-08-09 21:01:47,162 [salt.transport.zeromq ][DEBUG ][3643] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.3:4506', 'clear')
2017-08-09 21:01:47,166 [salt.transport.zeromq ][DEBUG ][3643] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.6:4506', 'clear')
2017-08-09 21:01:47,241 [salt.crypt ][DEBUG ][3643] Decrypting the current master AES key
2017-08-09 21:01:47,244 [salt.crypt ][DEBUG ][3643] Loaded minion key: /etc/salt/pki/minion/minion.pem
2017-08-09 21:01:47,396 [salt.utils.event ][DEBUG ][3643] SaltEvent PUB socket URI: /var/run/salt/minion/minion_event_c996324dfb_pub.ipc
2017-08-09 21:01:47,396 [salt.utils.event ][DEBUG ][3643] SaltEvent PULL socket URI: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:47,396 [salt.transport.ipc ][DEBUG ][3643] Initializing new IPCClient for path: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:47,397 [salt.utils.event ][DEBUG ][3643] Sending event: tag = salt/auth/creds; data = {'_stamp': '2017-08-09T21:01:47.397635', 'creds': {'publish_port': 4505, 'aes': 'rBt3iT6B6SUl005aylR0D1o59r30KCuVY8K4A2s/lIbM2H9AAohG/FW84r0B3kWWyaysXFq7BrA=', 'master_uri': 'tcp://10.128.0.3:4506'}, 'key': ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.3:4506')}
2017-08-09 21:01:47,401 [salt.crypt ][DEBUG ][3643] Loaded minion key: /etc/salt/pki/minion/minion.pem
2017-08-09 21:01:47,405 [salt.crypt ][DEBUG ][3643] Decrypting the current master AES key
2017-08-09 21:01:47,406 [salt.crypt ][DEBUG ][3643] Loaded minion key: /etc/salt/pki/minion/minion.pem
2017-08-09 21:01:47,531 [salt.transport.zeromq ][DEBUG ][3643] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.3:4506', 'aes')
2017-08-09 21:01:47,531 [salt.crypt ][DEBUG ][3643] Re-using AsyncAuth for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.3:4506')
2017-08-09 21:01:47,533 [salt.utils.event ][DEBUG ][3643] SaltEvent PUB socket URI: /var/run/salt/minion/minion_event_c996324dfb_pub.ipc
2017-08-09 21:01:47,534 [salt.utils.event ][DEBUG ][3643] SaltEvent PULL socket URI: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:47,534 [salt.transport.ipc ][DEBUG ][3643] Initializing new IPCClient for path: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:47,535 [salt.utils.event ][DEBUG ][3643] Sending event: tag = salt/auth/creds; data = {'_stamp': '2017-08-09T21:01:47.535281', 'creds': {'publish_port': 4505, 'aes': 'nbhobhvESE6KkcXDdKlvisuAtwjkm53he80UKqJIqGXVRy1GvMMm3Xr5FOIw8eghjyZJaA8F4rc=', 'master_uri': 'tcp://10.128.0.6:4506'}, 'key': ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.6:4506')}
2017-08-09 21:01:47,540 [salt.crypt ][DEBUG ][3643] Loaded minion key: /etc/salt/pki/minion/minion.pem
2017-08-09 21:01:47,547 [salt.transport.zeromq ][DEBUG ][3643] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.6:4506', 'aes')
2017-08-09 21:01:47,547 [salt.crypt ][DEBUG ][3643] Re-using AsyncAuth for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.6:4506')
2017-08-09 21:01:47,577 [salt.crypt ][DEBUG ][3643] Loaded minion key: /etc/salt/pki/minion/minion.pem
2017-08-09 21:01:47,670 [salt.crypt ][DEBUG ][3643] Loaded minion key: /etc/salt/pki/minion/minion.pem
2017-08-09 21:01:47,760 [salt.config ][DEBUG ][3643] Reading configuration from /etc/salt/minion
2017-08-09 21:01:47,775 [salt.config ][DEBUG ][3643] Including configuration from '/etc/salt/minion.d/_schedule.conf'
2017-08-09 21:01:47,775 [salt.config ][DEBUG ][3643] Reading configuration from /etc/salt/minion.d/_schedule.conf
2017-08-09 21:01:48,041 [salt.utils.schedule ][DEBUG ][3643] Initializing new Schedule
2017-08-09 21:01:48,044 [salt.utils.lazy ][DEBUG ][3643] LazyLoaded timezone.get_offset
2017-08-09 21:01:48,046 [salt.utils.lazy ][DEBUG ][3643] LazyLoaded cmd.run
2017-08-09 21:01:48,046 [salt.loader.master1.int.module.cmdmod ][INFO ][3643] Executing command ['date', '+%z'] in directory '/root'
2017-08-09 21:01:48,051 [salt.loader.master1.int.module.cmdmod ][DEBUG ][3643] output: +0000
2017-08-09 21:01:48,056 [salt.utils.lazy ][DEBUG ][3643] LazyLoaded config.merge
2017-08-09 21:01:48,056 [salt.utils.event ][DEBUG ][3643] SaltEvent PUB socket URI: /var/run/salt/minion/minion_event_c996324dfb_pub.ipc
2017-08-09 21:01:48,057 [salt.utils.event ][DEBUG ][3643] SaltEvent PULL socket URI: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:48,057 [salt.transport.ipc ][DEBUG ][3643] Initializing new IPCClient for path: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:48,058 [salt.utils.event ][DEBUG ][3643] Sending event: tag = /salt/minion/minion_schedule_delete_complete; data = {'_stamp': '2017-08-09T21:01:48.058279', 'complete': True, 'schedule': {'__mine_interval': {'function': 'mine.update', 'return_job': False, 'enabled': True, 'jid_include': True, 'maxrunning': 2, 'minutes': 60}}}
2017-08-09 21:01:48,058 [salt.utils.schedule ][DEBUG ][3643] Persisting schedule
2017-08-09 21:01:48,060 [salt.utils.lazy ][DEBUG ][3643] LazyLoaded mine.update
2017-08-09 21:01:48,060 [salt.utils.schedule ][INFO ][3643] Updating job settings for scheduled job: __mine_interval
2017-08-09 21:01:48,060 [salt.utils.event ][DEBUG ][3643] SaltEvent PUB socket URI: /var/run/salt/minion/minion_event_c996324dfb_pub.ipc
2017-08-09 21:01:48,060 [salt.utils.event ][DEBUG ][3643] SaltEvent PULL socket URI: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:48,060 [salt.transport.ipc ][DEBUG ][3643] Initializing new IPCClient for path: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:48,061 [salt.utils.event ][DEBUG ][3643] Sending event: tag = /salt/minion/minion_schedule_add_complete; data = {'_stamp': '2017-08-09T21:01:48.061456', 'complete': True, 'schedule': {'__mine_interval': {'function': 'mine.update', 'enabled': True, 'return_job': False, 'jid_include': True, 'maxrunning': 2, 'minutes': 60}}}
2017-08-09 21:01:48,061 [salt.utils.schedule ][DEBUG ][3643] Persisting schedule
2017-08-09 21:01:48,063 [salt.minion ][INFO ][3643] Added mine.update to scheduler
2017-08-09 21:01:48,063 [salt.utils.schedule ][INFO ][3643] Added new job __master_alive_master1 to scheduler
2017-08-09 21:01:48,064 [salt.utils.event ][DEBUG ][3643] SaltEvent PUB socket URI: /var/run/salt/minion/minion_event_c996324dfb_pub.ipc
2017-08-09 21:01:48,064 [salt.utils.event ][DEBUG ][3643] SaltEvent PULL socket URI: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:48,064 [salt.transport.ipc ][DEBUG ][3643] Initializing new IPCClient for path: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:48,064 [salt.utils.event ][DEBUG ][3643] Sending event: tag = /salt/minion/minion_schedule_add_complete; data = {'_stamp': '2017-08-09T21:01:48.064862', 'complete': True, 'schedule': {'__master_alive_master1': {'function': 'status.master', 'seconds': 60, 'enabled': True, 'return_job': False, 'jid_include': True, 'maxrunning': 1, 'kwargs': {'connected': True, 'master': 'master1'}}, '__mine_interval': {'function': 'mine.update', 'enabled': True, 'return_job': False, 'jid_include': True, 'maxrunning': 2, 'minutes': 60}}}
2017-08-09 21:01:48,065 [salt.utils.schedule ][DEBUG ][3643] Persisting schedule
2017-08-09 21:01:48,067 [salt.utils.event ][DEBUG ][3643] SaltEvent PUB socket URI: /var/run/salt/minion/minion_event_c996324dfb_pub.ipc
2017-08-09 21:01:48,067 [salt.utils.event ][DEBUG ][3643] SaltEvent PULL socket URI: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:48,067 [salt.transport.ipc ][DEBUG ][3643] Initializing new IPCClient for path: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:48,068 [salt.utils.event ][DEBUG ][3643] Sending event: tag = /salt/minion/minion_schedule_delete_complete; data = {'_stamp': '2017-08-09T21:01:48.067941', 'complete': True, 'schedule': {'__master_alive_master1': {'function': 'status.master', 'seconds': 60, 'enabled': True, 'return_job': False, 'jid_include': True, 'maxrunning': 1, 'kwargs': {'connected': True, 'master': 'master1'}}, '__mine_interval': {'function': 'mine.update', 'enabled': True, 'return_job': False, 'jid_include': True, 'maxrunning': 2, 'minutes': 60}}}
2017-08-09 21:01:48,068 [salt.utils.schedule ][DEBUG ][3643] Persisting schedule
2017-08-09 21:01:48,070 [salt.config ][DEBUG ][3643] Reading configuration from /etc/salt/minion
2017-08-09 21:01:48,079 [salt.config ][DEBUG ][3643] Including configuration from '/etc/salt/minion.d/_schedule.conf'
2017-08-09 21:01:48,079 [salt.config ][DEBUG ][3643] Reading configuration from /etc/salt/minion.d/_schedule.conf
2017-08-09 21:01:48,277 [salt.utils.schedule ][DEBUG ][3643] Re-using Schedule
2017-08-09 21:01:48,278 [salt.utils.lazy ][DEBUG ][3643] LazyLoaded mine.update
2017-08-09 21:01:48,278 [salt.utils.schedule ][INFO ][3643] Updating job settings for scheduled job: __mine_interval
2017-08-09 21:01:48,279 [salt.utils.event ][DEBUG ][3643] SaltEvent PUB socket URI: /var/run/salt/minion/minion_event_c996324dfb_pub.ipc
2017-08-09 21:01:48,279 [salt.utils.event ][DEBUG ][3643] SaltEvent PULL socket URI: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:48,279 [salt.transport.ipc ][DEBUG ][3643] Initializing new IPCClient for path: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:48,281 [salt.utils.event ][DEBUG ][3643] Sending event: tag = /salt/minion/minion_schedule_add_complete; data = {'_stamp': '2017-08-09T21:01:48.280901', 'complete': True, 'schedule': {'__master_alive_master1': {'function': 'status.master', 'seconds': 60, 'enabled': True, 'return_job': False, 'jid_include': True, 'maxrunning': 1, 'kwargs': {'connected': True, 'master': 'master1'}}, '__mine_interval': {'function': 'mine.update', 'enabled': True, 'return_job': False, 'jid_include': True, 'maxrunning': 2, 'minutes': 60}}}
2017-08-09 21:01:48,281 [salt.utils.schedule ][DEBUG ][3643] Persisting schedule
2017-08-09 21:01:48,283 [salt.minion ][INFO ][3643] Added mine.update to scheduler
2017-08-09 21:01:48,283 [salt.utils.schedule ][INFO ][3643] Added new job __master_alive_master2 to scheduler
2017-08-09 21:01:48,284 [salt.utils.event ][DEBUG ][3643] SaltEvent PUB socket URI: /var/run/salt/minion/minion_event_c996324dfb_pub.ipc
2017-08-09 21:01:48,284 [salt.utils.event ][DEBUG ][3643] SaltEvent PULL socket URI: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:48,284 [salt.transport.ipc ][DEBUG ][3643] Initializing new IPCClient for path: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:48,285 [salt.utils.event ][DEBUG ][3643] Sending event: tag = /salt/minion/minion_schedule_add_complete; data = {'_stamp': '2017-08-09T21:01:48.285156', 'complete': True, 'schedule': {'__master_alive_master2': {'function': 'status.master', 'seconds': 60, 'enabled': True, 'return_job': False, 'jid_include': True, 'maxrunning': 1, 'kwargs': {'connected': True, 'master': 'master2'}}, '__master_alive_master1': {'function': 'status.master', 'seconds': 60, 'enabled': True, 'return_job': False, 'jid_include': True, 'maxrunning': 1, 'kwargs': {'connected': True, 'master': 'master1'}}, '__mine_interval': {'function': 'mine.update', 'enabled': True, 'return_job': False, 'jid_include': True, 'maxrunning': 2, 'minutes': 60}}}
2017-08-09 21:01:48,285 [salt.utils.schedule ][DEBUG ][3643] Persisting schedule
2017-08-09 21:01:48,287 [salt.utils.event ][DEBUG ][3643] SaltEvent PUB socket URI: /var/run/salt/minion/minion_event_c996324dfb_pub.ipc
2017-08-09 21:01:48,287 [salt.utils.event ][DEBUG ][3643] SaltEvent PULL socket URI: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:48,288 [salt.transport.ipc ][DEBUG ][3643] Initializing new IPCClient for path: /var/run/salt/minion/minion_event_c996324dfb_pull.ipc
2017-08-09 21:01:48,288 [salt.utils.event ][DEBUG ][3643] Sending event: tag = /salt/minion/minion_schedule_delete_complete; data = {'_stamp': '2017-08-09T21:01:48.288833', 'complete': True, 'schedule': {'__master_alive_master2': {'function': 'status.master', 'seconds': 60, 'enabled': True, 'return_job': False, 'jid_include': True, 'maxrunning': 1, 'kwargs': {'connected': True, 'master': 'master2'}}, '__master_alive_master1': {'function': 'status.master', 'seconds': 60, 'enabled': True, 'return_job': False, 'jid_include': True, 'maxrunning': 1, 'kwargs': {'connected': True, 'master': 'master1'}}, '__mine_interval': {'function': 'mine.update', 'enabled': True, 'return_job': False, 'jid_include': True, 'maxrunning': 2, 'minutes': 60}}}
2017-08-09 21:01:48,289 [salt.utils.schedule ][DEBUG ][3643] Persisting schedule
2017-08-09 21:01:48,293 [salt.minion ][INFO ][3643] Minion is starting as user 'root'
2017-08-09 21:01:48,293 [salt.minion ][DEBUG ][3643] Minion 'minion.c.gtmanfred-1263.internal' trying to tune in
2017-08-09 21:01:48,293 [salt.transport.zeromq ][DEBUG ][3643] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.3:4506', 'aes')
2017-08-09 21:01:48,294 [salt.crypt ][DEBUG ][3643] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.3:4506')
2017-08-09 21:01:48,302 [salt.transport.zeromq ][DEBUG ][3643] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.3:4506', 'aes')
2017-08-09 21:01:48,302 [salt.crypt ][DEBUG ][3643] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.3:4506')
2017-08-09 21:01:48,310 [salt.minion ][INFO ][3643] Minion is ready to receive requests!
2017-08-09 21:01:48,310 [salt.minion ][DEBUG ][3643] Enabling the grains refresher. Will run every 10 minutes.
2017-08-09 21:01:48,312 [salt.minion ][INFO ][3643] Minion is starting as user 'root'
2017-08-09 21:01:48,312 [salt.minion ][DEBUG ][3643] Minion 'minion.c.gtmanfred-1263.internal' trying to tune in
2017-08-09 21:01:48,312 [salt.transport.zeromq ][DEBUG ][3643] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.6:4506', 'aes')
2017-08-09 21:01:48,312 [salt.crypt ][DEBUG ][3643] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.6:4506')
2017-08-09 21:01:48,318 [salt.transport.zeromq ][DEBUG ][3643] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.6:4506', 'aes')
2017-08-09 21:01:48,318 [salt.crypt ][DEBUG ][3643] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.6:4506')
2017-08-09 21:01:48,324 [salt.minion ][INFO ][3643] Minion is ready to receive requests!
2017-08-09 21:01:48,325 [salt.minion ][DEBUG ][3643] Enabling the grains refresher. Will run every 10 minutes.
2017-08-09 21:01:48,326 [salt.minion ][DEBUG ][3643] Minion of "master1" is handling event tag '/salt/minion/minion_schedule_delete_complete'
2017-08-09 21:01:48,326 [salt.minion ][DEBUG ][3643] Minion of "master2" is handling event tag '/salt/minion/minion_schedule_delete_complete'
2017-08-09 21:01:48,326 [salt.minion ][DEBUG ][3643] Minion of "master1" is handling event tag '/salt/minion/minion_schedule_add_complete'
2017-08-09 21:01:48,326 [salt.minion ][DEBUG ][3643] Minion of "master2" is handling event tag '/salt/minion/minion_schedule_add_complete'
2017-08-09 21:01:48,326 [salt.minion ][DEBUG ][3643] Minion of "master1" is handling event tag '/salt/minion/minion_schedule_add_complete'
2017-08-09 21:01:48,327 [salt.minion ][DEBUG ][3643] Minion of "master2" is handling event tag '/salt/minion/minion_schedule_add_complete'
2017-08-09 21:01:48,327 [salt.minion ][DEBUG ][3643] Minion of "master1" is handling event tag '/salt/minion/minion_schedule_delete_complete'
2017-08-09 21:01:48,327 [salt.minion ][DEBUG ][3643] Minion of "master2" is handling event tag '/salt/minion/minion_schedule_delete_complete'
2017-08-09 21:01:48,327 [salt.minion ][DEBUG ][3643] Minion of "master1" is handling event tag '/salt/minion/minion_schedule_add_complete'
2017-08-09 21:01:48,327 [salt.minion ][DEBUG ][3643] Minion of "master2" is handling event tag '/salt/minion/minion_schedule_add_complete'
2017-08-09 21:01:48,328 [salt.minion ][DEBUG ][3643] Minion of "master1" is handling event tag '/salt/minion/minion_schedule_add_complete'
2017-08-09 21:01:48,328 [salt.minion ][DEBUG ][3643] Minion of "master2" is handling event tag '/salt/minion/minion_schedule_add_complete'
2017-08-09 21:01:48,328 [salt.minion ][DEBUG ][3643] Minion of "master1" is handling event tag '/salt/minion/minion_schedule_delete_complete'
2017-08-09 21:01:48,328 [salt.minion ][DEBUG ][3643] Minion of "master2" is handling event tag '/salt/minion/minion_schedule_delete_complete'
2017-08-09 21:01:49,313 [salt.utils.lazy ][DEBUG ][3643] LazyLoaded status.master
2017-08-09 21:01:49,313 [salt.utils.schedule ][INFO ][3643] Running scheduled job: __master_alive_master2
2017-08-09 21:01:49,313 [salt.utils.schedule ][DEBUG ][3643] schedule: This job was scheduled with jid_include, adding to cache (jid_include defaults to True)
2017-08-09 21:01:49,314 [salt.utils.schedule ][DEBUG ][3643] schedule: This job was scheduled with a max number of 1
2017-08-09 21:01:49,339 [salt.utils.schedule ][INFO ][3643] Running scheduled job: __master_alive_master1
2017-08-09 21:01:49,339 [salt.utils.schedule ][DEBUG ][3643] schedule: This job was scheduled with jid_include, adding to cache (jid_include defaults to True)
2017-08-09 21:01:49,340 [salt.utils.schedule ][DEBUG ][3643] schedule: This job was scheduled with a max number of 1
2017-08-09 21:01:49,385 [salt.utils.schedule ][INFO ][3643] Running scheduled job: __mine_interval
2017-08-09 21:01:49,386 [salt.utils.schedule ][DEBUG ][3643] schedule: This job was scheduled with jid_include, adding to cache (jid_include defaults to True)
2017-08-09 21:01:49,386 [salt.utils.schedule ][DEBUG ][3643] schedule: This job was scheduled with a max number of 2
2017-08-09 21:01:49,432 [salt.utils.lazy ][DEBUG ][3643] LazyLoaded event.fire
2017-08-09 21:01:49,433 [salt.utils.schedule ][INFO ][3643] Running scheduled job: __update_grains
2017-08-09 21:01:49,433 [salt.utils.schedule ][DEBUG ][3643] schedule: This job was scheduled with jid_include, adding to cache (jid_include defaults to True)
2017-08-09 21:01:49,433 [salt.utils.schedule ][INFO ][3643] schedule: maxrunning parameter was not specified for job __update_grains, defaulting to 1.
2017-08-09 21:01:49,469 [salt.utils.lazy ][DEBUG ][3643] LazyLoaded config.merge
2017-08-09 21:01:49,480 [salt.minion ][DEBUG ][3643] Minion of "master1" is handling event tag 'grains_refresh'
2017-08-09 21:01:49,480 [salt.minion ][DEBUG ][3643] Minion of "master2" is handling event tag 'grains_refresh'
2017-08-09 21:01:49,484 [salt.minion ][DEBUG ][3643] Minion of "master1" is handling event tag '__schedule_return'
2017-08-09 21:01:49,484 [salt.minion ][INFO ][3643] Returning information for job: req
2017-08-09 21:01:49,484 [salt.transport.zeromq ][DEBUG ][3643] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.3:4506', 'aes')
2017-08-09 21:01:49,484 [salt.crypt ][DEBUG ][3643] Re-using AsyncAuth for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.3:4506')
2017-08-09 21:01:49,485 [salt.minion ][DEBUG ][3643] Minion of "master2" is handling event tag '__schedule_return'
2017-08-09 21:01:49,486 [salt.minion ][INFO ][3643] Returning information for job: req
2017-08-09 21:01:49,488 [salt.utils.lazy ][DEBUG ][3643] LazyLoaded event.fire
2017-08-09 21:01:49,488 [salt.transport.zeromq ][DEBUG ][3643] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.6:4506', 'aes')
2017-08-09 21:01:49,489 [salt.crypt ][DEBUG ][3643] Re-using AsyncAuth for ('/etc/salt/pki/minion', 'minion.c.gtmanfred-1263.internal', 'tcp://10.128.0.6:4506')
2017-08-09 21:01:50,011 [salt.minion ][INFO ][3643] User root Executing command test.ping with jid 20170809210149947783
2017-08-09 21:01:50,011 [salt.minion ][DEBUG ][3643] Command details {'tgt_type': 'glob', 'jid': '20170809210149947783', 'tgt': '*', 'ret': '', 'user': 'root', 'arg': [], 'fun': 'test.ping'}
2017-08-09 21:01:52,849 [salt.minion ][INFO ][3643] User root Executing command test.ping with jid 20170809210152784039
2017-08-09 21:01:52,850 [salt.minion ][DEBUG ][3643] Command details {'tgt_type': 'glob', 'jid': '20170809210152784039', 'tgt': '*', 'ret': '', 'user': 'root', 'arg': [], 'fun': 'test.ping'}
2017-08-09 21:02:49,312 [salt.utils.schedule ][INFO ][3643] Running scheduled job: __master_alive_master2
2017-08-09 21:02:49,312 [salt.utils.schedule ][DEBUG ][3643] schedule: This job was scheduled with jid_include, adding to cache (jid_include defaults to True)
2017-08-09 21:02:49,313 [salt.utils.schedule ][DEBUG ][3643] schedule: This job was scheduled with a max number of 1
2017-08-09 21:02:49,337 [salt.utils.schedule ][INFO ][3643] Running scheduled job: __master_alive_master1
2017-08-09 21:02:49,338 [salt.utils.schedule ][DEBUG ][3643] schedule: This job was scheduled with jid_include, adding to cache (jid_include defaults to True)
2017-08-09 21:02:49,338 [salt.utils.schedule ][DEBUG ][3643] schedule: This job was scheduled with a max number of 1
2017-08-09 21:03:34,882 [salt.minion ][INFO ][3643] User root Executing command test.ping with jid 20170809210334813940
2017-08-09 21:03:34,882 [salt.minion ][DEBUG ][3643] Command details {'tgt_type': 'glob', 'jid': '20170809210334813940', 'tgt': '*', 'ret': '', 'user': 'root', 'arg': [], 'fun': 'test.ping'}
2017-08-09 21:03:36,876 [salt.minion ][INFO ][3643] User root Executing command test.ping with jid 20170809210336810787
2017-08-09 21:03:36,876 [salt.minion ][DEBUG ][3643] Command details {'tgt_type': 'glob', 'jid': '20170809210336810787', 'tgt': '*', 'ret': '', 'user': 'root', 'arg': [], 'fun': 'test.ping'}
2017-08-09 21:03:49,312 [salt.utils.schedule ][INFO ][3643] Running scheduled job: __master_alive_master2
2017-08-09 21:03:49,312 [salt.utils.schedule ][DEBUG ][3643] schedule: This job was scheduled with jid_include, adding to cache (jid_include defaults to True)
2017-08-09 21:03:49,313 [salt.utils.schedule ][DEBUG ][3643] schedule: This job was scheduled with a max number of 1
2017-08-09 21:03:49,338 [salt.utils.schedule ][INFO ][3643] Running scheduled job: __master_alive_master1
2017-08-09 21:03:49,338 [salt.utils.schedule ][DEBUG ][3643] schedule: This job was scheduled with jid_include, adding to cache (jid_include defaults to True)
2017-08-09 21:03:49,339 [salt.utils.schedule ][DEBUG ][3643] schedule: This job was scheduled with a max number of 1
2017-08-09 21:04:49,311 [salt.utils.schedule ][INFO ][3643] Running scheduled job: __master_alive_master2
2017-08-09 21:04:49,311 [salt.utils.schedule ][DEBUG ][3643] schedule: This job was scheduled with jid_include, adding to cache (jid_include defaults to True)
2017-08-09 21:04:49,311 [salt.utils.schedule ][DEBUG ][3643] schedule: This job was scheduled with a max number of 1
2017-08-09 21:04:49,335 [salt.utils.schedule ][INFO ][3643] Running scheduled job: __master_alive_master1
2017-08-09 21:04:49,336 [salt.utils.schedule ][DEBUG ][3643] schedule: This job was scheduled with jid_include, adding to cache (jid_include defaults to True)
2017-08-09 21:04:49,336 [salt.utils.schedule ][DEBUG ][3643] schedule: This job was scheduled with a max number of 1
[root@minion ~]# pgrep -fl salt-minion
3643 /usr/bin/python2.6 /usr/bin/salt-minion -c /etc/salt -d
3644 /usr/bin/python2.6 /usr/bin/salt-minion -c /etc/salt -d
The one thing i'm not seeing your minion log is the SaltReqTimeoutError message.
Hrm, that is odd, i did see them in the logs, but it was not failing after the check. Do you have anything else enabled on the minions like beacons or something in the schedule?
Thanks, Daniel
On Wed, Aug 9, 2017 at 3:25 PM, John Zaitz [email protected] wrote:
The one thing i'm not seeing your minion log is the SaltReqTimeoutError message.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/saltstack/salt/issues/42803#issuecomment-321385918, or mute the thread https://github.com/notifications/unsubscribe-auth/AAssoaE8hqKDpV5HVr5wMyTAw1qNiYphks5sWiPWgaJpZM4OxGWk .
No beacons. But yes, we have mine and several scheduled SLSs.
I disabled all of our schedules.
2017-08-09 14:58:53PDT [ root@nacl-minion:~ ]
# salt-call schedule.list show_all=True
local:
----------
schedule:
----------
2017-08-09 14:59:00PDT [ root@nacl-minion:~ ]
#
2017-08-09 14:59:00PDT [ root@nacl-minion:~ ]
# cat /etc/salt/minion.d/_schedule.conf
schedule:
__master_alive_10.1.55.230:
enabled: true
function: status.master
jid_include: true
kwargs: {connected: true, master: 10.1.55.230}
maxrunning: 1
return_job: false
seconds: 60
__master_alive_10.1.57.152:
enabled: true
function: status.master
jid_include: true
kwargs: {connected: true, master: 10.1.57.152}
maxrunning: 1
return_job: false
seconds: 60
__master_alive_10.1.57.154:
enabled: true
function: status.master
jid_include: true
kwargs: {connected: true, master: 10.1.57.154}
maxrunning: 1
name: __master_alive_10.1.57.154
return_job: false
seconds: 60
__master_alive_10.1.57.155:
enabled: true
function: status.master
jid_include: true
kwargs: {connected: true, master: 10.1.57.155}
maxrunning: 1
name: __master_alive_10.1.57.155
return_job: false
seconds: 60
__mine_interval: {enabled: true, function: mine.update, jid_include: true, maxrunning: 2,
minutes: 60, return_job: false}
__update_grains:
args:
- {}
- grains_refresh
function: event.fire
jid_include: true
maxrunning: 1
minutes: 10
name: __update_grains
2017-08-09 14:59:17PDT [ root@nacl-minion:~ ]
#
will try again.
no luck with that.
2017-08-09 15:01:31PDT [ root@nacl-minion:~ ]
# /sbin/iptables -nL OUTPUT
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
2017-08-09 15:01:31PDT [ root@nacl-minion:~ ]
# pgrep -fl salt-minion
2017-08-09 15:01:36PDT [ root@nacl-minion:~ ]
# /etc/init.d/salt-minion start
Starting salt-minion:root:nacl-l001.svale.netledger.com daemon: OK
2017-08-09 15:01:51PDT [ root@nacl-minion:~ ]
# ### wait about 5 minutes for everything to settle
2017-08-09 15:06:28PDT [ root@nacl-minion:~ ]
# /sbin/iptables -A OUTPUT -d 10.1.57.152 -j DROP
2017-08-09 15:06:31PDT [ root@nacl-minion:~ ]
# /sbin/iptables -nL OUTPUT
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
DROP all -- 0.0.0.0/0 10.1.57.152
2017-08-09 15:06:39PDT [ root@nacl-minion:~ ]
# ##watch /var/log/salt/minion until you see the SaltReqTimeout from salt.tornado.zmq...
2017-08-09 15:07:11PDT [ root@nacl-minion:~ ]
# pgrep -fl salt-minion
41001 /usr/bin/python2.6 /usr/bin/salt-minion -c /etc/salt -d
41003 /usr/bin/python2.6 /usr/bin/salt-minion -c /etc/salt -d
2017-08-09 15:07:22PDT [ root@nacl-minion:~ ]
# cat /var/run/salt-minion.pid ; echo
41001
2017-08-09 15:07:29PDT [ root@nacl-minion:~ ]
# cat /var/log/salt/minion | grep 41001 | tail -n 10
2017-08-09 15:06:59,591 [salt.transport.zeromq ][DEBUG ][41001] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'nacl-minion', 'tcp://10.1.55.230:4506', 'aes')
2017-08-09 15:06:59,591 [salt.crypt ][DEBUG ][41001] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'nacl-minion', 'tcp://10.1.55.230:4506')
2017-08-09 15:07:00,713 [salt.transport.zeromq ][DEBUG ][41001] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'nacl-minion', 'tcp://10.1.57.152:4506', 'aes')
2017-08-09 15:07:00,713 [salt.crypt ][DEBUG ][41001] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'nacl-minion', 'tcp://10.1.57.152:4506')
2017-08-09 15:08:00,771 [salt.transport.zeromq ][DEBUG ][41001] SaltReqTimeoutError, retrying. (1/3)
2017-08-09 15:09:00,817 [salt.transport.zeromq ][DEBUG ][41001] SaltReqTimeoutError, retrying. (2/3)
2017-08-09 15:10:00,877 [salt.transport.zeromq ][DEBUG ][41001] SaltReqTimeoutError, retrying. (3/3)
2017-08-09 15:11:00,929 [salt.minion ][INFO ][41001] fire_master failed: master could not be contacted. Request timed out.
2017-08-09 15:11:00,929 [salt.minion ][ERROR ][41001] ** Master Ping failed. Attempting to restart minion**
2017-08-09 15:11:00,929 [salt.minion ][INFO ][41001] delaying random_reauth_delay 10s
2017-08-09 15:14:18PDT [ root@nacl-minion:~ ]
# pgrep -fl salt-minion
41003 /usr/bin/python2.6 /usr/bin/salt-minion -c /etc/salt -d
2017-08-09 15:14:45PDT [ root@nacl-minion:~ ]
# /sbin/iptables -D OUTPUT -d 10.1.57.152 -j DROP
2017-08-09 15:15:17PDT [ root@nacl-minion:~ ]
# /sbin/iptables -nL OUTPUT
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
2017-08-09 15:15:23PDT [ root@nacl-minion:~ ]
#
Same happens on my minion with single master setup (master_type: str). In case of fire_master failed, restart does not happen properly, only parent process dies and exits. I am using latest 2017.7.0 version. Logs:
2017-08-10 06:45:53,084 [salt.utils.lazy ][DEBUG ][8201] LazyLoaded mine.update 2017-08-10 06:45:53,086 [salt.utils.lazy ][DEBUG ][8201] LazyLoaded config.merge 2017-08-10 06:45:53,086 [salt.utils.schedule ][DEBUG ][8201] schedule.handle_func: Removing /var/cache/salt/minion/proc/20170810064553071988 2017-08-10 06:46:53,737 [salt.transport.zeromq ][DEBUG ][5469] SaltReqTimeoutError, retrying. (1/3) 2017-08-10 06:47:53,796 [salt.transport.zeromq ][DEBUG ][5469] SaltReqTimeoutError, retrying. (2/3) 2017-08-10 06:48:53,820 [salt.transport.zeromq ][DEBUG ][5469] SaltReqTimeoutError, retrying. (3/3) 2017-08-10 06:49:53,878 [salt.minion ][INFO ][5469] fire_master failed: master could not be contacted. Request timed out. 2017-08-10 06:49:53,878 [salt.minion ][ERROR ][5469] ** Master Ping failed. Attempting to restart minion** 2017-08-10 06:49:53,878 [salt.minion ][INFO ][5469] delaying random_reauth_delay 10s
@alankrita are you also use rhel 6? or are you on a different os?
@gtmanfred No I am using ubuntu 14.04
Salt Version:
Salt: 2017.7.0
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 1.5
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.7.2
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: 0.9.1
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: 1.2.3
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.6 (default, Oct 26 2016, 20:30:19)
python-gnupg: Not Installed
PyYAML: 3.10
PyZMQ: 14.0.1
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.0.5
System Versions:
dist: Ubuntu 14.04 trusty
locale: ANSI_X3.4-1968
machine: x86_64
release: 4.4.0-31-generic
system: Linux
version: Ubuntu 14.04 trusty
If yall disable ping_interval, does this go away?
https://github.com/saltstack/salt/pull/42848
This might fix this error?
Thanks, Daniel
Seems like it may be a similar issue as https://github.com/saltstack/salt/issues/42753
Initial testing and its working. I've added DROP rules for 3 out of 4 of my masters. The minion, both parent and child processes, has been running for 20 minutes solid so far. I'll keep testing for a few days but this seems to have fixed the problem.
Awesome, thanks!
On Thu, Aug 10, 2017 at 5:05 PM, John Zaitz [email protected] wrote:
Initial testing and its working. I've added DROP rules for 3 out of 4 of my masters. The minion, both parent and child processes, has been running for 20 minutes solid so far. I'll keep testing for a few days but this seems to have fixed the problem.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/saltstack/salt/issues/42803#issuecomment-321696725, or mute the thread https://github.com/notifications/unsubscribe-auth/AAssobf1-h8kBt_p136iKpvUPZfuElC4ks5sW4ywgaJpZM4OxGWk .