From ea5d8d532d2dd932b820da4abb582091125eb122 Mon Sep 17 00:00:00 2001 From: Colton Myers Date: Thu, 26 Sep 2013 14:35:10 -0600 Subject: [PATCH] Add warning for ZMQ < 3 to the master --- salt/master.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/salt/master.py b/salt/master.py index f59e91259e..c331827a94 100644 --- a/salt/master.py +++ b/salt/master.py @@ -167,6 +167,12 @@ class Master(SMaster): ''' Create a salt master server instance ''' + # Warn if ZMQ < 3 + if int(zmq.zmq_version()[0]) < 3: + log.warning('You have a version of ZMQ less than ZMQ 3! There are ' + 'known connection keep-alive issues with ZMQ < 3 ' + 'which may result in loss of contact with minions. ' + 'Please upgrade your ZMQ!') SMaster.__init__(self, opts) def _clear_old_jobs(self):