[Pkg-salt-team] Bug#748092: salt-ssh: Missing dependency to python-zmq

Remi Duraffort ivoire at videolan.org
Wed May 14 08:24:03 UTC 2014


Package: salt-ssh
Version: 2014.1.4+ds-1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

salt-ssh should depends on python-zmq to be usable standalone (without installing salt-master)

   * What led up to the situation?

[root] # apt-get install salt-ssh

[root] # salt-ssh '*' test.ping
[ERROR   ] An un-handled exception was caught by salt's global exception handler:
NameError: global name 'zmq' is not defined
Traceback (most recent call last):
  File "/usr/bin/salt-ssh", line 10, in <module>
    salt_ssh()
  File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 108, in salt_ssh
    client.run()
  File "/usr/lib/python2.7/dist-packages/salt/cli/__init__.py", line 374, in run
    ssh = salt.client.ssh.SSH(self.config)
  File "/usr/lib/python2.7/dist-packages/salt/client/ssh/__init__.py", line 179, in __init__
    self.event = salt.utils.event.MasterEvent(opts['sock_dir'])
  File "/usr/lib/python2.7/dist-packages/salt/utils/event.py", line 411, in __init__
    super(MasterEvent, self).__init__('master', sock_dir)
  File "/usr/lib/python2.7/dist-packages/salt/utils/event.py", line 129, in __init__
    self.context = zmq.Context()
NameError: global name 'zmq' is not defined
Traceback (most recent call last):
  File "/usr/bin/salt-ssh", line 10, in <module>
    salt_ssh()
  File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 108, in salt_ssh
    client.run()
  File "/usr/lib/python2.7/dist-packages/salt/cli/__init__.py", line 374, in run
    ssh = salt.client.ssh.SSH(self.config)
  File "/usr/lib/python2.7/dist-packages/salt/client/ssh/__init__.py", line 179, in __init__
    self.event = salt.utils.event.MasterEvent(opts['sock_dir'])
  File "/usr/lib/python2.7/dist-packages/salt/utils/event.py", line 411, in __init__
    super(MasterEvent, self).__init__('master', sock_dir)
  File "/usr/lib/python2.7/dist-packages/salt/utils/event.py", line 129, in __init__
    self.context = zmq.Context()
NameError: global name 'zmq' is not defined
Exception AttributeError: "'MasterEvent' object has no attribute 'cpub'" in <bound method MasterEvent.__del__ of <salt.utils.event.MasterEvent object at 0x7f63a7bf85d0>> ignored
zsh: exit 1     salt-ssh '*' test.ping


   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Installing python-zmq make salt-ssh works.



More information about the pkg-salt-team mailing list