-
-
Save garthk/7a684d53c57d2b546d12 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@host1:~# apt-get install salt-minion | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following packages were automatically installed and are no longer required: | |
dnsmasq-base debootstrap linux-headers-3.2.0-29 linux-headers-3.2.0-51 | |
linux-headers-3.2.0-54 linux-headers-3.2.0-29-generic libcap2-bin python-paramiko | |
libnetfilter-conntrack3 lxc libpam-cap python-boto libapparmor1 openjdk-7-jre-lib | |
linux-headers-3.2.0-51-generic cloud-utils euca2ools bridge-utils | |
linux-headers-3.2.0-54-generic | |
Use 'apt-get autoremove' to remove them. | |
The following extra packages will be installed: | |
python-zmq salt-common | |
The following NEW packages will be installed: | |
python-zmq salt-common salt-minion | |
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. | |
Need to get 1,911 kB of archives. | |
After this operation, 7,218 kB of additional disk space will be used. | |
Do you want to continue [Y/n]? y | |
Get:1 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu/ precise/main python-zmq amd64 14.1.1-1chl1~precise1 [262 kB] | |
Get:2 http://ppa.launchpad.net/saltstack/salt/ubuntu/ precise/main salt-common all 2014.1.0-1precise1 [1,630 kB] | |
Get:3 http://ppa.launchpad.net/saltstack/salt/ubuntu/ precise/main salt-minion all 2014.1.0-1precise1 [18.4 kB] | |
Fetched 1,911 kB in 12s (148 kB/s) | |
Selecting previously unselected package python-zmq. | |
(Reading database ... 210076 files and directories currently installed.) | |
Unpacking python-zmq (from .../python-zmq_14.1.1-1chl1~precise1_amd64.deb) ... | |
Selecting previously unselected package salt-common. | |
Unpacking salt-common (from .../salt-common_2014.1.0-1precise1_all.deb) ... | |
Processing triggers for ufw ... | |
Processing triggers for man-db ... | |
Setting up python-zmq (14.1.1-1chl1~precise1) ... | |
Setting up salt-common (2014.1.0-1precise1) ... | |
Processing triggers for python-support ... | |
Selecting previously unselected package salt-minion. | |
(Reading database ... 210947 files and directories currently installed.) | |
Unpacking salt-minion (from .../salt-minion_2014.1.0-1precise1_all.deb) ... | |
Processing triggers for ureadahead ... | |
Processing triggers for man-db ... | |
Setting up salt-minion (2014.1.0-1precise1) ... | |
salt-minion start/running, process 3618 | |
root@host1:~# ls | |
npm-debug.log tmp | |
root@host1:~# cd /var/log/salt/ | |
root@host1:/var/log/salt# tail minion | |
self.minion = salt.minion.Minion(self.config) | |
File "/usr/lib/pymodules/python2.7/salt/minion.py", line 528, in __init__ | |
self.authenticate(timeout, safe) | |
File "/usr/lib/pymodules/python2.7/salt/minion.py", line 1029, in authenticate | |
creds = auth.sign_in(timeout, safe) | |
File "/usr/lib/pymodules/python2.7/salt/crypt.py", line 351, in sign_in | |
self.opts['master_uri'], | |
File "/usr/lib/pymodules/python2.7/salt/payload.py", line 159, in __init__ | |
self.context = zmq.Context() | |
NameError: global name 'zmq' is not defined | |
root@host1:/var/log/salt# service salt-minion stop | |
stop: Unknown instance: | |
root@host1:/var/log/salt# salt-minion --log-level=debug | |
[DEBUG ] Reading configuration from /etc/salt/minion | |
[INFO ] Using cached minion ID from /etc/salt/minion_id: host1.example.com | |
[DEBUG ] Failed to import log_handlers logstash_mod, this is most likely NOT a problem: | |
Traceback (most recent call last): | |
File "/usr/lib/pymodules/python2.7/salt/loader.py", line 700, in gen_functions | |
), fn_, path, desc | |
File "/usr/lib/pymodules/python2.7/salt/log/handlers/logstash_mod.py", line 114, in <module> | |
import zmq | |
File "/usr/lib/python2.7/dist-packages/zmq/__init__.py", line 70, in <module> | |
from zmq.backend import * | |
File "/usr/lib/python2.7/dist-packages/zmq/backend/__init__.py", line 29, in <module> | |
_ns = select_backend('zmq.backend.cffi') | |
File "/usr/lib/python2.7/dist-packages/zmq/backend/select.py", line 31, in select_backend | |
mod = __import__(name, fromlist=public_api) | |
File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/__init__.py", line 12, in <module> | |
from zmq.backend.cffi import (constants, error, message, context, socket, | |
File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/constants.py", line 4, in <module> | |
from ._cffi import C, c_constant_names | |
File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/_cffi.py", line 20, in <module> | |
from cffi import FFI | |
ImportError: No module named cffi | |
[DEBUG ] Configuration file path: /etc/salt/minion | |
[INFO ] Setting up the Salt Minion "host1.example.com" | |
[DEBUG ] Created pidfile: /var/run/salt-minion.pid | |
[DEBUG ] Reading configuration from /etc/salt/minion | |
[DEBUG ] Attempting to authenticate with the Salt Master at 10.10.10.10 | |
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem | |
[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-minion", line 14, in <module> | |
salt_minion() | |
File "/usr/lib/pymodules/python2.7/salt/scripts.py", line 35, in salt_minion | |
minion.start() | |
File "/usr/lib/pymodules/python2.7/salt/__init__.py", line 221, in start | |
self.prepare() | |
File "/usr/lib/pymodules/python2.7/salt/__init__.py", line 209, in prepare | |
self.minion = salt.minion.Minion(self.config) | |
File "/usr/lib/pymodules/python2.7/salt/minion.py", line 528, in __init__ | |
self.authenticate(timeout, safe) | |
File "/usr/lib/pymodules/python2.7/salt/minion.py", line 1029, in authenticate | |
creds = auth.sign_in(timeout, safe) | |
File "/usr/lib/pymodules/python2.7/salt/crypt.py", line 351, in sign_in | |
self.opts['master_uri'], | |
File "/usr/lib/pymodules/python2.7/salt/payload.py", line 159, in __init__ | |
self.context = zmq.Context() | |
NameError: global name 'zmq' is not defined | |
Traceback (most recent call last): | |
File "/usr/bin/salt-minion", line 14, in <module> | |
salt_minion() | |
File "/usr/lib/pymodules/python2.7/salt/scripts.py", line 35, in salt_minion | |
minion.start() | |
File "/usr/lib/pymodules/python2.7/salt/__init__.py", line 221, in start | |
self.prepare() | |
File "/usr/lib/pymodules/python2.7/salt/__init__.py", line 209, in prepare | |
self.minion = salt.minion.Minion(self.config) | |
File "/usr/lib/pymodules/python2.7/salt/minion.py", line 528, in __init__ | |
self.authenticate(timeout, safe) | |
File "/usr/lib/pymodules/python2.7/salt/minion.py", line 1029, in authenticate | |
creds = auth.sign_in(timeout, safe) | |
File "/usr/lib/pymodules/python2.7/salt/crypt.py", line 351, in sign_in | |
self.opts['master_uri'], | |
File "/usr/lib/pymodules/python2.7/salt/payload.py", line 159, in __init__ | |
self.context = zmq.Context() | |
NameError: global name 'zmq' is not defined | |
Exception AttributeError: "'SREQ' object has no attribute 'poller'" in <bound method SREQ.__del__ of <salt.payload.SREQ object at 0x255d210>> ignored | |
root@host1:/var/log/salt# which python | |
/usr/bin/python | |
root@host1:/var/log/salt# python -V | |
Python 2.7.3 | |
root@host1:/var/log/salt# dpkg -l | grep zmq | |
ii libzmq3 4.0.4-1chl1~precise1 lightweight messaging kernel (shared library) | |
ii libzmq3-dev 4.0.4-1chl1~precise1 lightweight messaging kernel (development files) | |
ii python-zmq 14.1.1-1chl1~precise1 Python bindings for 0MQ library |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As requested: