salt icon indicating copy to clipboard operation
salt copied to clipboard

Timeouts (Minion did not return) since 2014.1.7

Open Whissi opened this issue 12 years ago • 56 comments

Hi,

when there was no Salt activity for ~30-60 minutes, the next Salt command (for example salt '*' --show-timeout cmd.run 'uname -a' will timeout for most minions.

I need to run this command 2-3x times... after 1-2 minutes all minions are back and now I can run my desired command without any timeouts.

This didn't happen with 2014.1.5.

# salt --versions-report
           Salt: 2014.1.7
         Python: 2.7.7 (default, Jul  6 2014, 23:14:10)
         Jinja2: 2.7.3
       M2Crypto: 0.22
 msgpack-python: 0.4.2
   msgpack-pure: Not Installed
       pycrypto: 2.6.1
         PyYAML: 3.11
          PyZMQ: 14.3.1
            ZMQ: 4.0.4

Whissi avatar Jul 18 '14 21:07 Whissi

Very strange! Thanks for the report, we'll investigate this.

basepi avatar Jul 18 '14 22:07 basepi

When you run the commands, does the job show up in the minion log? Wondering if it's a loss of connection, or just a problem with the return data, or what...

basepi avatar Jul 18 '14 22:07 basepi

Experiencing the same issue. CentOS 7.

# salt --versions-report
           Salt: 2014.1.7
         Python: 2.7.5 (default, Jun 17 2014, 18:11:42)
         Jinja2: 2.7.2
       M2Crypto: 0.21.1
 msgpack-python: 0.1.13
   msgpack-pure: Not Installed
       pycrypto: 2.6.1
         PyYAML: 3.10
          PyZMQ: 14.3.1
            ZMQ: 3.2.4

No indications in minion logs apart from:

SaltReqTimeoutError: Waited 60 seconds

sigwinch28 avatar Jul 19 '14 12:07 sigwinch28

@JoeHazzers Did you also just start seeing it on 2014.1.7, or have you seen it previously?

basepi avatar Jul 21 '14 16:07 basepi

It is not easy to reproduce the problem. Currently it is gone:

After posting this issue I enabled debug mode for master and 2 minions.

Also, we rebooted every server in our network over the weekend (kernel upgrade).

Since we rebooted every system we haven't seen this problem anymore. So it looks like a missing reboot or something like that. Or maybe running in debug mode doesn't trigger the bug?

Whissi avatar Jul 21 '14 17:07 Whissi

I doubt debug log level affects this bug, but who knows? Keep us posted if you find a way to reproduce this issue, or if you get those logs that I mentioned.

basepi avatar Jul 21 '14 19:07 basepi

@basepi I have only seen this issue on 2014.1.7 However, like @Whissi after leaving it for a day or two and a system reboot, it now works fine. I can no longer reproduce the issue.

sigwinch28 avatar Jul 21 '14 21:07 sigwinch28

Very strange. I'll keep this open for now, keep us posted!

basepi avatar Jul 21 '14 21:07 basepi

Now it happened again. No software was updated so I am 100% sure that there was no pending reboot.

But as said, debug log level was turned off. So nothing I can show you. I'll turn on logging again, maybe this will only happen when the master was running for some hours...

Whissi avatar Jul 21 '14 23:07 Whissi

Curses. =) It happens. If you don't mind keeping debug logging on for a time, that would be helpful.

basepi avatar Jul 21 '14 23:07 basepi

OK, here we go.I was able to reproduce the issue in a reduced test network:

Seems to be an authentication problem (Failed to authenticate message) which will happen sometimes.

# salt '*' --show-timeout cmd.run 'date'
srv5.example.intern:
    Tue Jul 22 16:39:17 CEST 2014
srv4.example.intern:
    Tue Jul 22 16:39:17 CEST 2014
srv2.example.intern:
    Tue Jul 22 16:39:17 CEST 2014
srv7.example.intern:
    Tue Jul 22 16:39:17 CEST 2014
srv6.example.intern:
    Tue Jul 22 16:39:17 CEST 2014
srv3.example.intern:
    Minion did not return
srv8.example.intern:
    Minion did not return

master debug log:

2014-07-22 16:15:52,608 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:15:52,611 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:15:52,611 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:16:52,677 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:16:52,680 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:16:52,680 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:17:52,746 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:17:52,749 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:17:52,749 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:18:52,815 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:18:52,817 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:18:52,818 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:19:52,883 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:19:52,885 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:19:52,886 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:20:05,690 [salt.master                                 ][INFO    ] Clear payload received with command _auth
2014-07-22 16:20:05,690 [salt.master                                 ][INFO    ] Authentication request from srv4.example.intern
2014-07-22 16:20:05,690 [salt.master                                 ][INFO    ] Authentication accepted from srv4.example.intern
2014-07-22 16:20:05,907 [salt.master                                 ][INFO    ] Clear payload received with command _auth
2014-07-22 16:20:05,907 [salt.master                                 ][INFO    ] Authentication request from srv4.example.intern
2014-07-22 16:20:05,907 [salt.master                                 ][INFO    ] Authentication accepted from srv4.example.intern
2014-07-22 16:20:06,096 [salt.master                                 ][INFO    ] AES payload received with command _mine
2014-07-22 16:20:08,293 [salt.master                                 ][INFO    ] Clear payload received with command _auth
2014-07-22 16:20:08,293 [salt.master                                 ][INFO    ] Authentication request from srv7.example.intern
2014-07-22 16:20:08,293 [salt.master                                 ][INFO    ] Authentication accepted from srv7.example.intern
2014-07-22 16:20:08,617 [salt.master                                 ][INFO    ] Clear payload received with command _auth
2014-07-22 16:20:08,617 [salt.master                                 ][INFO    ] Authentication request from srv7.example.intern
2014-07-22 16:20:08,618 [salt.master                                 ][INFO    ] Authentication accepted from srv7.example.intern
2014-07-22 16:20:08,877 [salt.master                                 ][INFO    ] AES payload received with command _mine
2014-07-22 16:20:52,944 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:20:52,947 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:20:52,947 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:21:53,004 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:21:53,007 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:21:53,007 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:22:53,073 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:22:53,075 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:22:53,076 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:23:53,141 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:23:53,144 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:23:53,144 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:24:53,209 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:24:53,212 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:24:53,213 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:25:53,278 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:25:53,281 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:25:53,281 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:26:53,347 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:26:53,350 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:26:53,350 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:27:53,415 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:27:53,418 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:27:53,418 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:28:53,484 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:28:53,487 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:28:53,487 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:29:53,553 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:29:53,556 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:29:53,556 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:30:08,595 [salt.master                                 ][INFO    ] Clear payload received with command _auth
2014-07-22 16:30:08,595 [salt.master                                 ][INFO    ] Authentication request from srv6.example.intern
2014-07-22 16:30:08,596 [salt.master                                 ][INFO    ] Authentication accepted from srv6.example.intern
2014-07-22 16:30:08,812 [salt.master                                 ][INFO    ] Clear payload received with command _auth
2014-07-22 16:30:08,812 [salt.master                                 ][INFO    ] Authentication request from srv6.example.intern
2014-07-22 16:30:08,813 [salt.master                                 ][INFO    ] Authentication accepted from srv6.example.intern
2014-07-22 16:30:09,001 [salt.master                                 ][INFO    ] AES payload received with command _mine
2014-07-22 16:30:44,313 [salt.master                                 ][INFO    ] Clear payload received with command _auth
2014-07-22 16:30:44,313 [salt.master                                 ][INFO    ] Authentication request from srv5.example.intern
2014-07-22 16:30:44,313 [salt.master                                 ][INFO    ] Authentication accepted from srv5.example.intern
2014-07-22 16:30:44,529 [salt.master                                 ][INFO    ] Clear payload received with command _auth
2014-07-22 16:30:44,529 [salt.master                                 ][INFO    ] Authentication request from srv5.example.intern
2014-07-22 16:30:44,529 [salt.master                                 ][INFO    ] Authentication accepted from srv5.example.intern
2014-07-22 16:30:44,718 [salt.master                                 ][INFO    ] AES payload received with command _mine
2014-07-22 16:30:53,622 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:30:53,625 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:30:53,625 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:31:48,021 [salt.master                                 ][INFO    ] Clear payload received with command _auth
2014-07-22 16:31:48,021 [salt.master                                 ][INFO    ] Authentication request from srv3.example.intern
2014-07-22 16:31:48,022 [salt.master                                 ][INFO    ] Authentication accepted from srv3.example.intern
2014-07-22 16:31:48,333 [salt.master                                 ][INFO    ] Clear payload received with command _auth
2014-07-22 16:31:48,333 [salt.master                                 ][INFO    ] Authentication request from srv3.example.intern
2014-07-22 16:31:48,334 [salt.master                                 ][INFO    ] Authentication accepted from srv3.example.intern
2014-07-22 16:31:48,586 [salt.master                                 ][INFO    ] AES payload received with command _mine
2014-07-22 16:31:53,690 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:31:53,693 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:31:53,694 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:32:53,759 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:32:53,762 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:32:53,762 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:33:53,828 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:33:53,830 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:33:53,831 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:34:53,866 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:34:53,869 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:34:53,869 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:34:57,158 [salt.master                                 ][INFO    ] Clear payload received with command _auth
2014-07-22 16:34:57,158 [salt.master                                 ][INFO    ] Authentication request from srv2.example.intern
2014-07-22 16:34:57,159 [salt.master                                 ][INFO    ] Authentication accepted from srv2.example.intern
2014-07-22 16:34:57,374 [salt.master                                 ][INFO    ] Clear payload received with command _auth
2014-07-22 16:34:57,375 [salt.master                                 ][INFO    ] Authentication request from srv2.example.intern
2014-07-22 16:34:57,375 [salt.master                                 ][INFO    ] Authentication accepted from srv2.example.intern
2014-07-22 16:34:57,564 [salt.master                                 ][INFO    ] AES payload received with command _mine
2014-07-22 16:35:53,934 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:35:53,937 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:35:53,938 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:36:54,003 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:36:54,006 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:36:54,006 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:37:54,072 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:37:54,074 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:37:54,075 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:38:54,138 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:38:54,141 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:38:54,142 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:39:17,125 [salt.master                                 ][INFO    ] Clear payload received with command publish
2014-07-22 16:39:17,126 [salt.master                                 ][INFO    ] User root Published command cmd.run with jid 20140722163917125243
2014-07-22 16:39:17,126 [salt.master                                 ][DEBUG   ] Published command details {'tgt_type': 'glob', 'jid': '20140722163917125243', 'tgt': '*', 'ret': '', 'user': 'root', 'arg': ['date'], 'fun': 'cmd.run'}
2014-07-22 16:39:17,143 [salt.master                                 ][INFO    ] AES payload received with command _return
2014-07-22 16:39:17,144 [salt.master                                 ][INFO    ] Got return from srv5.example.intern for job 20140722163917125243
2014-07-22 16:39:17,145 [salt.master                                 ][INFO    ] AES payload received with command _return
2014-07-22 16:39:17,145 [salt.master                                 ][INFO    ] Got return from srv4.example.intern for job 20140722163917125243
2014-07-22 16:39:17,146 [salt.master                                 ][INFO    ] AES payload received with command _return
2014-07-22 16:39:17,146 [salt.master                                 ][INFO    ] Got return from srv2.example.intern for job 20140722163917125243
2014-07-22 16:39:17,169 [salt.master                                 ][INFO    ] AES payload received with command _return
2014-07-22 16:39:17,169 [salt.master                                 ][INFO    ] Got return from srv7.example.intern for job 20140722163917125243
2014-07-22 16:39:17,170 [salt.master                                 ][INFO    ] AES payload received with command _return
2014-07-22 16:39:17,170 [salt.master                                 ][INFO    ] Got return from srv6.example.intern for job 20140722163917125243
2014-07-22 16:39:22,135 [salt.master                                 ][INFO    ] Clear payload received with command publish
2014-07-22 16:39:22,136 [salt.master                                 ][INFO    ] User root Published command saltutil.find_job with jid 20140722163922135841
2014-07-22 16:39:22,137 [salt.master                                 ][DEBUG   ] Published command details {'tgt_type': 'glob', 'jid': '20140722163922135841', 'tgt': '*', 'ret': '', 'user': 'root', 'arg': ['20140722163917125243'], 'fun': 'saltutil.find_job'}
2014-07-22 16:39:22,144 [salt.master                                 ][INFO    ] AES payload received with command _return
2014-07-22 16:39:22,144 [salt.master                                 ][INFO    ] AES payload received with command _return
2014-07-22 16:39:22,145 [salt.master                                 ][INFO    ] Got return from srv2.example.intern for job 20140722163922135841
2014-07-22 16:39:22,145 [salt.master                                 ][INFO    ] Got return from srv5.example.intern for job 20140722163922135841
2014-07-22 16:39:22,145 [salt.master                                 ][INFO    ] AES payload received with command _return
2014-07-22 16:39:22,145 [salt.master                                 ][INFO    ] Got return from srv4.example.intern for job 20140722163922135841
2014-07-22 16:39:22,145 [salt.master                                 ][INFO    ] AES payload received with command _return
2014-07-22 16:39:22,146 [salt.master                                 ][INFO    ] Got return from srv6.example.intern for job 20140722163922135841
2014-07-22 16:39:22,162 [salt.master                                 ][INFO    ] AES payload received with command _return
2014-07-22 16:39:22,162 [salt.master                                 ][INFO    ] Got return from srv7.example.intern for job 20140722163922135841
2014-07-22 16:39:27,200 [salt.master                                 ][INFO    ] Clear payload received with command _auth
2014-07-22 16:39:27,200 [salt.master                                 ][INFO    ] Authentication request from srv3.example.intern
2014-07-22 16:39:27,201 [salt.master                                 ][INFO    ] Authentication accepted from srv3.example.intern
2014-07-22 16:39:27,481 [salt.master                                 ][INFO    ] AES payload received with command _return
2014-07-22 16:39:27,481 [salt.master                                 ][INFO    ] Got return from srv3.example.intern for job 20140722163917125243
2014-07-22 16:39:27,483 [salt.master                                 ][INFO    ] AES payload received with command _return
2014-07-22 16:39:27,483 [salt.master                                 ][INFO    ] Got return from srv3.example.intern for job 20140722163922135841
2014-07-22 16:39:54,179 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:39:54,182 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:39:54,182 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:40:02,253 [salt.master                                 ][INFO    ] Clear payload received with command _auth
2014-07-22 16:40:02,253 [salt.master                                 ][INFO    ] Authentication request from srv8.example.intern
2014-07-22 16:40:02,254 [salt.master                                 ][INFO    ] Authentication accepted from srv8.example.intern
2014-07-22 16:40:02,580 [salt.master                                 ][INFO    ] AES payload received with command _return
2014-07-22 16:40:02,580 [salt.master                                 ][INFO    ] Got return from srv8.example.intern for job 20140722163917125243
2014-07-22 16:40:02,584 [salt.master                                 ][INFO    ] AES payload received with command _return
2014-07-22 16:40:02,585 [salt.master                                 ][INFO    ] Got return from srv8.example.intern for job 20140722163922135841
2014-07-22 16:40:54,248 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:40:54,251 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:40:54,251 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:41:54,317 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:41:54,320 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:41:54,320 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:42:54,386 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:42:54,389 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:42:54,389 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.
2014-07-22 16:43:54,454 [salt.fileserver                             ][DEBUG   ] Updating fileserver cache
2014-07-22 16:43:54,457 [salt.fileserver                             ][DEBUG   ] diff_mtime_map: the maps are the same
2014-07-22 16:43:54,458 [salt.utils.verify                           ][DEBUG   ] This salt-master instance has accepted 7 minion keys.

srv3 minion debug log:

2014-07-22 14:31:42,426 [salt             ][INFO    ] Setting up the Salt Minion "srv3.example.intern"
2014-07-22 14:31:42,431 [salt.utils.process][DEBUG   ] Created pidfile: /run/salt-minion.pid
2014-07-22 14:31:42,432 [salt.config      ][DEBUG   ] Reading configuration from /etc/salt/minion
2014-07-22 14:31:42,509 [salt.config      ][DEBUG   ] Including configuration from '/etc/salt/minion.d/myMinion.conf'
2014-07-22 14:31:42,509 [salt.config      ][DEBUG   ] Reading configuration from /etc/salt/minion.d/myMinion.conf
2014-07-22 14:31:42,783 [salt.minion                              ][DEBUG   ] Attempting to authenticate with the Salt Master at 10.82.0.1
2014-07-22 14:31:42,792 [salt.crypt                               ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:31:42,851 [salt.crypt                               ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:31:42,994 [salt.crypt                               ][DEBUG   ] Decrypting the current master AES key
2014-07-22 14:31:42,994 [salt.crypt                               ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:31:43,109 [salt.minion                              ][INFO    ] Authentication with master successful!
2014-07-22 14:31:43,110 [salt.crypt                               ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:31:43,249 [salt.crypt                               ][DEBUG   ] Decrypting the current master AES key
2014-07-22 14:31:43,249 [salt.crypt                               ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:31:43,384 [salt.crypt                               ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:31:43,443 [salt.config                              ][DEBUG   ] Reading configuration from /etc/salt/minion
2014-07-22 14:31:43,521 [salt.config                              ][DEBUG   ] Including configuration from '/etc/salt/minion.d/myMinion.conf'
2014-07-22 14:31:43,521 [salt.config                              ][DEBUG   ] Reading configuration from /etc/salt/minion.d/myMinion.conf
2014-07-22 14:31:47,494 [salt.loader                              ][DEBUG   ] Loaded localemod as virtual locale
2014-07-22 14:31:47,495 [salt.loader                              ][DEBUG   ] Loaded groupadd as virtual group
2014-07-22 14:31:47,497 [salt.loader                              ][DEBUG   ] Loaded ebuild as virtual pkg
2014-07-22 14:31:47,501 [salt.loader                              ][DEBUG   ] Loaded parted as virtual partition
2014-07-22 14:31:47,503 [salt.loader                              ][DEBUG   ] Loaded linux_sysctl as virtual sysctl
2014-07-22 14:31:47,523 [salt.loader                              ][DEBUG   ] Loaded sysmod as virtual sys
2014-07-22 14:31:47,530 [salt.loader                              ][DEBUG   ] Loaded zcbuildout as virtual buildout
2014-07-22 14:31:47,532 [salt.loader                              ][DEBUG   ] Loaded djangomod as virtual django
2014-07-22 14:31:47,533 [salt.loader                              ][DEBUG   ] Loaded useradd as virtual user
2014-07-22 14:31:47,535 [salt.loader                              ][DEBUG   ] Loaded gentoo_service as virtual service
2014-07-22 14:31:47,548 [salt.loader                              ][DEBUG   ] Loaded virtualenv_mod as virtual virtualenv
2014-07-22 14:31:47,550 [salt.loader                              ][DEBUG   ] Loaded linux_acl as virtual acl
2014-07-22 14:31:47,551 [salt.loader                              ][DEBUG   ] Loaded cmdmod as virtual cmd
2014-07-22 14:31:47,562 [salt.loader                              ][DEBUG   ] Loaded gentoolkitmod as virtual gentoolkit
2014-07-22 14:31:47,645 [salt.loader                                 ][DEBUG   ] Loaded syslog_return as virtual syslog
2014-07-22 14:31:47,646 [salt.loader                                 ][DEBUG   ] Loaded couchdb_return as virtual couchdb
2014-07-22 14:31:47,646 [salt.loader                                 ][DEBUG   ] Loaded carbon_return as virtual carbon
2014-07-22 14:31:47,647 [salt.minion                                 ][DEBUG   ] I am srv3.example.intern and I am not supposed to start any proxies.
2014-07-22 14:31:47,647 [salt.minion                                 ][INFO    ] Minion is starting as user 'root'
2014-07-22 14:31:47,647 [salt.minion                                 ][DEBUG   ] Minion 'srv3.example.intern' trying to tune in
2014-07-22 14:31:47,648 [salt.minion                                 ][DEBUG   ] Minion PUB socket URI: ipc:///var/run/salt/minion/minion_event_a9a4e31ca4566be0615108ef7b1891be_pub.ipc
2014-07-22 14:31:47,648 [salt.minion                                 ][DEBUG   ] Minion PULL socket URI: ipc:///var/run/salt/minion/minion_event_a9a4e31ca4566be0615108ef7b1891be_pull.ipc
2014-07-22 14:31:47,649 [salt.minion                                 ][DEBUG   ] Generated random reconnect delay between '1000ms' and '11000ms' (7372)
2014-07-22 14:31:47,649 [salt.minion                                 ][DEBUG   ] Setting zmq_reconnect_ivl to '7372ms'
2014-07-22 14:31:47,649 [salt.minion                                 ][DEBUG   ] Setting zmq_reconnect_ivl_max to '11000ms'
2014-07-22 14:31:48,157 [salt.utils.schedule                         ][DEBUG   ] Running scheduled job: __mine_interval
2014-07-22 14:31:48,157 [salt.utils.schedule                         ][DEBUG   ] schedule: This job was scheduled with jid_include, adding to cache (jid_include defaults to True)
2014-07-22 14:31:48,158 [salt.utils.schedule                         ][DEBUG   ] schedule: This job was scheduled with a max number of 2
2014-07-22 14:31:48,175 [salt.utils.schedule                         ][DEBUG   ] schedule.handle_func: adding this job to the jobcache with data {'fun': 'mine.update', 'jid': '20140722143148168090', 'pid': 4603, 'id': 'srv3.example.intern'}
2014-07-22 14:31:48,178 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:31:48,318 [salt.crypt                                  ][DEBUG   ] Decrypting the current master AES key
2014-07-22 14:31:48,319 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:31:48,435 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:31:48,493 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:31:48,634 [salt.crypt                                  ][DEBUG   ] Decrypting the current master AES key
2014-07-22 14:31:48,634 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:33:36,976 [salt.minion                                 ][INFO    ] User root Executing command cmd.run with jid 20140722143336972835
2014-07-22 14:33:36,976 [salt.minion                                 ][DEBUG   ] Command details {'tgt_type': 'glob', 'jid': '20140722143336972835', 'tgt': '*', 'ret': '', 'user': 'root', 'arg': ['grep mgadrmfb /var/log/dmesg'], 'fun': 'cmd.run'}
2014-07-22 14:33:36,996 [salt.loaded.int.module.cmdmod               ][INFO    ] Executing command 'grep mgadrmfb /var/log/dmesg' in directory '/'
2014-07-22 14:33:37,007 [salt.loaded.int.module.cmdmod               ][INFO    ] output: [    4.376982] fbcon: mgadrmfb (fb0) is primary device
[    4.695993] mgag200 0000:03:00.0: fb0: mgadrmfb frame buffer device
2014-07-22 14:33:37,007 [salt.minion                                 ][INFO    ] Returning information for job: 20140722143336972835
2014-07-22 15:31:48,932 [salt.utils.schedule                         ][DEBUG   ] Running scheduled job: __mine_interval
2014-07-22 15:31:48,932 [salt.utils.schedule                         ][DEBUG   ] schedule: This job was scheduled with jid_include, adding to cache (jid_include defaults to True)
2014-07-22 15:31:48,933 [salt.utils.schedule                         ][DEBUG   ] schedule: This job was scheduled with a max number of 2
2014-07-22 15:31:48,945 [salt.utils.schedule                         ][DEBUG   ] schedule.handle_func: adding this job to the jobcache with data {'fun': 'mine.update', 'jid': '20140722153148937826', 'pid': 5110, 'id': 'srv3.example.intern'}
2014-07-22 15:31:48,948 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 15:31:49,107 [salt.crypt                                  ][DEBUG   ] Decrypting the current master AES key
2014-07-22 15:31:49,107 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 15:31:49,223 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 15:31:49,282 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 15:31:49,420 [salt.crypt                                  ][DEBUG   ] Decrypting the current master AES key
2014-07-22 15:31:49,420 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 16:31:48,002 [salt.utils.schedule                         ][DEBUG   ] Running scheduled job: __mine_interval
2014-07-22 16:31:48,003 [salt.utils.schedule                         ][DEBUG   ] schedule: This job was scheduled with jid_include, adding to cache (jid_include defaults to True)
2014-07-22 16:31:48,003 [salt.utils.schedule                         ][DEBUG   ] schedule: This job was scheduled with a max number of 2
2014-07-22 16:31:48,015 [salt.utils.schedule                         ][DEBUG   ] schedule.handle_func: adding this job to the jobcache with data {'fun': 'mine.update', 'jid': '20140722163148008141', 'pid': 5382, 'id': 'srv3.example.intern'}
2014-07-22 16:31:48,018 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 16:31:48,157 [salt.crypt                                  ][DEBUG   ] Decrypting the current master AES key
2014-07-22 16:31:48,158 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 16:31:48,273 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 16:31:48,332 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 16:31:48,469 [salt.crypt                                  ][DEBUG   ] Decrypting the current master AES key
2014-07-22 16:31:48,470 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 16:39:17,128 [salt.crypt                                  ][DEBUG   ] Failed to authenticate message
2014-07-22 16:39:17,129 [salt.minion                                 ][DEBUG   ] Waiting 10 seconds to re-authenticate
2014-07-22 16:39:27,139 [salt.minion                                 ][DEBUG   ] Attempting to authenticate with the Salt Master at 10.82.0.1
2014-07-22 16:39:27,140 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 16:39:27,199 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 16:39:27,337 [salt.crypt                                  ][DEBUG   ] Decrypting the current master AES key
2014-07-22 16:39:27,337 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 16:39:27,453 [salt.minion                                 ][INFO    ] Authentication with master successful!
2014-07-22 16:39:27,453 [salt.minion                                 ][INFO    ] User root Executing command cmd.run with jid 20140722163917125243
2014-07-22 16:39:27,453 [salt.minion                                 ][DEBUG   ] Command details {'tgt_type': 'glob', 'jid': '20140722163917125243', 'tgt': '*', 'ret': '', 'user': 'root', 'arg': ['date'], 'fun': 'cmd.run'}
2014-07-22 16:39:27,465 [salt.minion                                 ][INFO    ] User root Executing command saltutil.find_job with jid 20140722163922135841
2014-07-22 16:39:27,465 [salt.minion                                 ][DEBUG   ] Command details {'tgt_type': 'glob', 'jid': '20140722163922135841', 'tgt': '*', 'ret': '', 'user': 'root', 'arg': ['20140722163917125243'], 'fun': 'saltutil.find_job'}
2014-07-22 16:39:27,468 [salt.loaded.int.module.cmdmod               ][INFO    ] Executing command 'date' in directory '/'
2014-07-22 16:39:27,478 [salt.loaded.int.module.cmdmod               ][INFO    ] output: Tue Jul 22 16:39:27 CEST 2014
2014-07-22 16:39:27,479 [salt.minion                                 ][INFO    ] Returning information for job: 20140722163917125243
2014-07-22 16:39:27,481 [salt.minion                                 ][INFO    ] Returning information for job: 20140722163922135841

srv8 minion debug log:

2014-07-22 14:45:45,407 [salt             ][INFO    ] Setting up the Salt Minion "srv8.example.intern"
2014-07-22 14:45:45,420 [salt.utils.process][DEBUG   ] Created pidfile: /run/salt-minion.pid
2014-07-22 14:45:45,421 [salt.config      ][DEBUG   ] Reading configuration from /etc/salt/minion
2014-07-22 14:45:45,484 [salt.config      ][DEBUG   ] Including configuration from '/etc/salt/minion.d/myMinion.conf'
2014-07-22 14:45:45,484 [salt.config      ][DEBUG   ] Reading configuration from /etc/salt/minion.d/myMinion.conf
2014-07-22 14:45:45,702 [salt.minion                              ][DEBUG   ] Attempting to authenticate with the Salt Master at 10.82.0.1
2014-07-22 14:45:45,716 [salt.crypt                               ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:45:45,790 [salt.crypt                               ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:45:45,944 [salt.crypt                               ][DEBUG   ] Decrypting the current master AES key
2014-07-22 14:45:45,944 [salt.crypt                               ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:45:46,082 [salt.minion                              ][INFO    ] Authentication with master successful!
2014-07-22 14:45:46,083 [salt.crypt                               ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:45:46,224 [salt.crypt                               ][DEBUG   ] Decrypting the current master AES key
2014-07-22 14:45:46,224 [salt.crypt                               ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:45:46,384 [salt.crypt                               ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:45:46,454 [salt.config                              ][DEBUG   ] Reading configuration from /etc/salt/minion
2014-07-22 14:45:46,516 [salt.config                              ][DEBUG   ] Including configuration from '/etc/salt/minion.d/myMinion.conf'
2014-07-22 14:45:46,517 [salt.config                              ][DEBUG   ] Reading configuration from /etc/salt/minion.d/myMinion.conf
2014-07-22 14:45:49,874 [salt.loader                              ][DEBUG   ] Loaded localemod as virtual locale
2014-07-22 14:45:49,875 [salt.loader                              ][DEBUG   ] Loaded groupadd as virtual group
2014-07-22 14:45:49,877 [salt.loader                              ][DEBUG   ] Loaded ebuild as virtual pkg
2014-07-22 14:45:49,881 [salt.loader                              ][DEBUG   ] Loaded linux_sysctl as virtual sysctl
2014-07-22 14:45:49,887 [salt.loader                              ][DEBUG   ] Loaded parted as virtual partition
2014-07-22 14:45:49,894 [salt.loader                              ][DEBUG   ] Loaded linux_acl as virtual acl
2014-07-22 14:45:49,903 [salt.loader                              ][DEBUG   ] Loaded sysmod as virtual sys
2014-07-22 14:45:49,910 [salt.loader                              ][DEBUG   ] Loaded zcbuildout as virtual buildout
2014-07-22 14:45:49,912 [salt.loader                              ][DEBUG   ] Loaded useradd as virtual user
2014-07-22 14:45:49,913 [salt.loader                              ][DEBUG   ] Loaded gentoo_service as virtual service
2014-07-22 14:45:49,925 [salt.loader                              ][DEBUG   ] Loaded virtualenv_mod as virtual virtualenv
2014-07-22 14:45:49,925 [salt.loader                              ][DEBUG   ] Loaded djangomod as virtual django
2014-07-22 14:45:49,930 [salt.loader                              ][DEBUG   ] Loaded cmdmod as virtual cmd
2014-07-22 14:45:49,935 [salt.loader                              ][DEBUG   ] Loaded gentoolkitmod as virtual gentoolkit
2014-07-22 14:45:49,936 [salt.loader                              ][DEBUG   ] Loaded linux_lvm as virtual lvm
2014-07-22 14:45:49,992 [salt.loader                                 ][DEBUG   ] Loaded syslog_return as virtual syslog
2014-07-22 14:45:49,992 [salt.loader                                 ][DEBUG   ] Loaded couchdb_return as virtual couchdb
2014-07-22 14:45:49,993 [salt.loader                                 ][DEBUG   ] Loaded carbon_return as virtual carbon
2014-07-22 14:45:49,993 [salt.minion                                 ][DEBUG   ] I am srv8.example.intern and I am not supposed to start any proxies.
2014-07-22 14:45:49,993 [salt.minion                                 ][INFO    ] Minion is starting as user 'root'
2014-07-22 14:45:49,993 [salt.minion                                 ][DEBUG   ] Minion 'srv8.example.intern' trying to tune in
2014-07-22 14:45:49,994 [salt.minion                                 ][DEBUG   ] Minion PUB socket URI: ipc:///var/run/salt/minion/minion_event_a71ed27d3670f6381b102a69f27141a8_pub.ipc
2014-07-22 14:45:49,994 [salt.minion                                 ][DEBUG   ] Minion PULL socket URI: ipc:///var/run/salt/minion/minion_event_a71ed27d3670f6381b102a69f27141a8_pull.ipc
2014-07-22 14:45:49,994 [salt.minion                                 ][DEBUG   ] Generated random reconnect delay between '1000ms' and '11000ms' (8725)
2014-07-22 14:45:49,994 [salt.minion                                 ][DEBUG   ] Setting zmq_reconnect_ivl to '8725ms'
2014-07-22 14:45:49,995 [salt.minion                                 ][DEBUG   ] Setting zmq_reconnect_ivl_max to '11000ms'
2014-07-22 14:45:50,507 [salt.utils.schedule                         ][DEBUG   ] Running scheduled job: __mine_interval
2014-07-22 14:45:50,508 [salt.utils.schedule                         ][DEBUG   ] schedule: This job was scheduled with jid_include, adding to cache (jid_include defaults to True)
2014-07-22 14:45:50,517 [salt.utils.schedule                         ][DEBUG   ] schedule: This job was scheduled with a max number of 2
2014-07-22 14:45:50,545 [salt.utils.schedule                         ][DEBUG   ] schedule.handle_func: adding this job to the jobcache with data {'fun': 'mine.update', 'jid': '20140722144550533394', 'pid': 4272, 'id': 'srv8.example.intern'}
2014-07-22 14:45:50,548 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:45:50,693 [salt.crypt                                  ][DEBUG   ] Decrypting the current master AES key
2014-07-22 14:45:50,694 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:45:50,832 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:45:50,903 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 14:45:51,047 [salt.crypt                                  ][DEBUG   ] Decrypting the current master AES key
2014-07-22 14:45:51,048 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 15:45:50,443 [salt.utils.schedule                         ][DEBUG   ] Running scheduled job: __mine_interval
2014-07-22 15:45:50,443 [salt.utils.schedule                         ][DEBUG   ] schedule: This job was scheduled with jid_include, adding to cache (jid_include defaults to True)
2014-07-22 15:45:50,443 [salt.utils.schedule                         ][DEBUG   ] schedule: This job was scheduled with a max number of 2
2014-07-22 15:45:50,461 [salt.utils.schedule                         ][DEBUG   ] schedule.handle_func: adding this job to the jobcache with data {'fun': 'mine.update', 'jid': '20140722154550449998', 'pid': 4503, 'id': 'srv8.example.intern'}
2014-07-22 15:45:50,464 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 15:45:50,614 [salt.crypt                                  ][DEBUG   ] Decrypting the current master AES key
2014-07-22 15:45:50,614 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 15:45:50,753 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 15:45:50,824 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 15:45:50,965 [salt.crypt                                  ][DEBUG   ] Decrypting the current master AES key
2014-07-22 15:45:50,965 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 16:39:17,126 [salt.crypt                                  ][DEBUG   ] Failed to authenticate message
2014-07-22 16:39:17,126 [salt.minion                                 ][DEBUG   ] Waiting 45 seconds to re-authenticate
2014-07-22 16:40:02,172 [salt.minion                                 ][DEBUG   ] Attempting to authenticate with the Salt Master at 10.82.0.1
2014-07-22 16:40:02,172 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 16:40:02,243 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 16:40:02,387 [salt.crypt                                  ][DEBUG   ] Decrypting the current master AES key
2014-07-22 16:40:02,388 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-22 16:40:02,526 [salt.minion                                 ][INFO    ] Authentication with master successful!
2014-07-22 16:40:02,527 [salt.minion                                 ][INFO    ] User root Executing command cmd.run with jid 20140722163917125243
2014-07-22 16:40:02,527 [salt.minion                                 ][DEBUG   ] Command details {'tgt_type': 'glob', 'jid': '20140722163917125243', 'tgt': '*', 'ret': '', 'user': 'root', 'arg': ['date'], 'fun': 'cmd.run'}
2014-07-22 16:40:02,545 [salt.minion                                 ][INFO    ] User root Executing command saltutil.find_job with jid 20140722163922135841
2014-07-22 16:40:02,546 [salt.minion                                 ][DEBUG   ] Command details {'tgt_type': 'glob', 'jid': '20140722163922135841', 'tgt': '*', 'ret': '', 'user': 'root', 'arg': ['20140722163917125243'], 'fun': 'saltutil.find_job'}
2014-07-22 16:40:02,553 [salt.loaded.int.module.cmdmod               ][INFO    ] Executing command 'date' in directory '/'
2014-07-22 16:40:02,570 [salt.loaded.int.module.cmdmod               ][INFO    ] output: Tue Jul 22 16:40:02 CEST 2014
2014-07-22 16:40:02,575 [salt.minion                                 ][INFO    ] Returning information for job: 20140722163917125243
2014-07-22 16:40:02,580 [salt.minion                                 ][INFO    ] Returning information for job: 20140722163922135841

Because the re-authentication time is different per client I think that's why it feels like it takes 1-2 minutes until all minions are back like stated in https://github.com/saltstack/salt/issues/14343#issue-38215626

Now the question is why authentication will fail sometimes. I am wondering that the master doesn't log any details regarding the failed authentication.

Whissi avatar Jul 22 '14 15:07 Whissi

Well, interestingly enough, in both cases the failed authentication was before the actual command was received by master, so it doesn't seem like that's actually the issue. The command is received and returned quickly.

basepi avatar Jul 23 '14 21:07 basepi

Here's another minion log:

2014-07-23 20:27:44,410 [salt.minion                                 ][INFO    ] Returning information for job: 20140723202605636921
2014-07-23 20:44:48,515 [salt.crypt                                  ][DEBUG   ] Failed to authenticate message
2014-07-23 20:44:48,515 [salt.minion                                 ][DEBUG   ] Waiting 12 seconds to re-authenticate
2014-07-23 20:45:00,527 [salt.minion                                 ][DEBUG   ] Attempting to authenticate with the Salt Master at 10.82.0.1
2014-07-23 20:45:00,528 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-23 20:45:00,598 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-23 20:45:00,747 [salt.crypt                                  ][DEBUG   ] Decrypting the current master AES key
2014-07-23 20:45:00,747 [salt.crypt                                  ][DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2014-07-23 20:45:00,886 [salt.minion                                 ][INFO    ] Authentication with master successful!
2014-07-23 20:45:00,886 [salt.minion                                 ][INFO    ] User root Executing command cmd.run with jid 20140723204448511760
2014-07-23 20:45:00,886 [salt.minion                                 ][DEBUG   ] Command details {'tgt_type': 'glob', 'jid': '20140723204448511760', 'tgt': '*', 'ret': '', 'user': 'root', 'arg': ['date'], 'fun': 'cmd.run'}
2014-07-23 20:45:00,903 [salt.minion                                 ][INFO    ] User root Executing command saltutil.find_job with jid 20140723204453520459
2014-07-23 20:45:00,903 [salt.minion                                 ][DEBUG   ] Command details {'tgt_type': 'glob', 'jid': '20140723204453520459', 'tgt': '*', 'ret': '', 'user': 'root', 'arg': ['20140723204448511760'], 'fun': 'saltutil.find_job'}
2014-07-23 20:45:00,914 [salt.loaded.int.module.cmdmod               ][INFO    ] Executing command 'date' in directory '/'
2014-07-23 20:45:00,933 [salt.loaded.int.module.cmdmod               ][INFO    ] output: Wed Jul 23 20:45:00 CEST 2014
2014-07-23 20:45:00,933 [salt.minion                                 ][INFO    ] Returning information for job: 20140723204448511760
2014-07-23 20:45:00,934 [salt.minion                                 ][INFO    ] Returning information for job: 20140723204453520459

Whissi avatar Jul 23 '14 21:07 Whissi

Weird! For now I would recommend setting up a cron job with just a basic test.ping call every few minutes to keep it from timing out. This one's definitely strange, but we haven't been able to reproduce it yet!

basepi avatar Jul 23 '14 23:07 basepi

FYI the current develop version has a keepalive patch that might help keep the minion online.

the minion will ping the master every 10min... if the master don't respond the minion will restart. ping_interval: 10

The above might get you by for now but the root issue should still be investigated.

steverweber avatar Jul 26 '14 05:07 steverweber

I tend to wonder if this might be related to the ZeroMQ connection caching that was added in that time frame.

(cc: @jacksontj for his thoughts.)

cachedout avatar Aug 05 '14 17:08 cachedout

+1 I'm also getting this since 2014.7.1. It makes salt almost impossible to use.

pwaller avatar Aug 06 '14 14:08 pwaller

Actually looking at the logs it doesn't seem to be related to my zmq caching since it happens so close to when the event happens (and before the command is run)-- and the channel re-use stuff is on rep/recv (the return side of things). The failure that you are seeing looks like the master AES key has rotated in that time. If you look at srv8 minion's log you can see the authentication failure message in the log at the exact time that the job was published. The only 2 places that print that exact message are in crypt.py (https://github.com/saltstack/salt/blob/develop/salt/crypt.py#L671) which both mean that either the AES key was bad or the pub job was malformed-- i'd bet on the AES key rotating. With that you are kicking in the acceptance_wait_time back-off (https://github.com/saltstack/salt/blob/develop/salt/minion.py#L874) which makes the re-auth much less aggressive. This was changed back to higher numbers (50s+) in this release, although I know for a fact that it has been set significantly lower in previous releases. This would cause your returns to take significantly longer to come back because the minion is taking significantly longer to get them (time of pub + time to re-auth + job time).

Now, the reason that this effects some minions and not all is that the re-auth delay is randomized, so it makes sense that "some" minions "don't" return, becuase they got a longer re-auth timer.

If your environment is relatively small you can tune down the acceptance_wait_time to have the minions re-auth faster, an maybe disable AES key rotation if you have it enabled. The ping every N seconds will help because it will force the minion to re-auth sooner (instead of waiting for a job) but it doesn't solve the problem. Basically its a tradeoff of minion availability and master load (for the re-auth).

If you want to play around with it more you can probably re-produce this by doing a salt-key -d on some specific minion key as this forces an AES key rotation, or otherwise forcing an AES key rotation

jacksontj avatar Aug 06 '14 16:08 jacksontj

@jacksontj, is what you just suggested consistent with running test.ping on all minions repeatedly and having it fail after ~12 seconds on the same set of minions in succession many times? > 5?

pwaller avatar Aug 06 '14 17:08 pwaller

please ckeck your system logs on the minon to be sure nothing strange correlates with the minion down time.

/var/log/kern.log
/var/log/syslog

this might sound a little silly, but could you log pings to the master...

crontab -e
@reboot ping masterhostname | perl -nle 'BEGIN {$|++} print scalar(localtime), " ", $_' > /var/log/pingtest

im not sure if the above command will work... if not dont worry about it :)

steverweber avatar Aug 07 '14 03:08 steverweber