[Pkg-salt-team] Bug#777665: salt-common: salt-call needs python-msgpack to run

Benjamin Drung benjamin.drung at profitbricks.com
Wed Feb 11 10:01:13 UTC 2015


Package: salt-common
Version: 2014.1.13+ds-2
Severity: grave
Justification: renders package unusable

salt-common contains the salt-call binary which is useful in itself, but it
needs to depend on python-msgpack or otherwise salt-call will fail to run. You
can reproduce it in a minimal chroot by running:

# apt-get install --no-install-recommends salt-common
# salt-call --local state.highstate
[CRITICAL] Unable to import msgpack or msgpack_pure python modules
WARNING: '/etc/salt' directory does not exist.
[ERROR   ] Could not cache minion ID: [Errno 2] No such file or directory: '/etc/salt/minion_id'
[WARNING ] Console logging already configured
[CRITICAL] Failed to load grains defined in grain file core.zmqversion in function <function zmqversion at 0x7f3c2d8c70c8>, error:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1034, in gen_grains
    ret = fun()
  File "/usr/lib/python2.7/dist-packages/salt/grains/core.py", line 1205, in zmqversion
    import zmq
ImportError: No module named zmq
[CRITICAL] Failed to load grains defined in grain file core.zmqversion in function <function zmqversion at 0x7f3c3038ce60>, error:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1034, in gen_grains
    ret = fun()
  File "/usr/lib/python2.7/dist-packages/salt/grains/core.py", line 1205, in zmqversion
    import zmq
ImportError: No module named zmq
[ERROR   ] An un-handled exception was caught by salt's global exception handler:
NameError: global name 'msgpack' is not defined
Traceback (most recent call last):
  File "/usr/bin/salt-call", line 11, in <module>
    salt_call()
  File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 82, in salt_call
    client.run()
  File "/usr/lib/python2.7/dist-packages/salt/cli/__init__.py", line 319, in run
    caller.run()
  File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 144, in run
    ret = self.call()
  File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 81, in call
    ret['return'] = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/modules/state.py", line 294, in highstate
    serial.dump(ret, fp_)
  File "/usr/lib/python2.7/dist-packages/salt/payload.py", line 155, in dump
    fn_.write(self.dumps(msg))
  File "/usr/lib/python2.7/dist-packages/salt/payload.py", line 125, in dumps
    return msgpack.dumps(msg)
NameError: global name 'msgpack' is not defined
Traceback (most recent call last):
  File "/usr/bin/salt-call", line 11, in <module>
    salt_call()
  File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 82, in salt_call
    client.run()
  File "/usr/lib/python2.7/dist-packages/salt/cli/__init__.py", line 319, in run
    caller.run()
  File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 144, in run
    ret = self.call()
  File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 81, in call
    ret['return'] = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/modules/state.py", line 294, in highstate
    serial.dump(ret, fp_)
  File "/usr/lib/python2.7/dist-packages/salt/payload.py", line 155, in dump
    fn_.write(self.dumps(msg))
  File "/usr/lib/python2.7/dist-packages/salt/payload.py", line 125, in dumps
    return msgpack.dumps(msg)
NameError: global name 'msgpack' is not defined
# apt-get install --no-install-recommends python-msgpack                                                                                                                                                               
# salt-call --local state.highstate                                                                                                                                                                                    
[CRITICAL] Failed to load grains defined in grain file core.zmqversion in function <function zmqversion at 0x7f01746b86e0>, error:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1034, in gen_grains
    ret = fun()
  File "/usr/lib/python2.7/dist-packages/salt/grains/core.py", line 1205, in zmqversion
    import zmq
ImportError: No module named zmq
[CRITICAL] Failed to load grains defined in grain file core.zmqversion in function <function zmqversion at 0x7f01727f0320>, error:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1034, in gen_grains
    ret = fun()
  File "/usr/lib/python2.7/dist-packages/salt/grains/core.py", line 1205, in zmqversion
    import zmq
ImportError: No module named zmq
[INFO    ] Loading fresh modules for state activity
local:
----------
          ID: states
    Function: no.None
      Result: False
     Comment: No Top file or external nodes data matches found
     Changes:   

Summary
------------
Succeeded: 0
Failed:    1
------------
Total:     1

-- 
Benjamin Drung
System Developer

ProfitBricks GmbH - The IaaS-Company
Greifswalder Str. 207
D - 10405 Berlin

Mail: benjamin.drung at profitbricks.com
Fax:  +49 30 577 008 598
URL:  http://www.profitbricks.com

Sitz der Gesellschaft: Berlin.
Registergericht: Amtsgericht Charlottenburg, HRB 125506 B.
Geschäftsführer: Andreas Gauger, Achim Weiss.



More information about the pkg-salt-team mailing list