Skip to content

Instantly share code, notes, and snippets.

@justlooks
Created October 23, 2014 01:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justlooks/7b0353ec86cbc6980e6a to your computer and use it in GitHub Desktop.
Save justlooks/7b0353ec86cbc6980e6a to your computer and use it in GitHub Desktop.
# salt-minion -l debug
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Configuration file path: /etc/salt/minion
[INFO ] Setting up the Salt Minion "ch13"
[DEBUG ] Created pidfile: /var/run/salt-minion.pid
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Attempting to authenticate with the Salt Master at 192.168.26.251
[ERROR ] An un-handled exception was caught by salt's global exception handler:
NameError: global name 'RSA' is not defined
Traceback (most recent call last):
File "/usr/bin/salt-minion", line 14, in <module>
salt_minion()
File "/usr/lib/python2.6/site-packages/salt/scripts.py", line 35, in salt_minion
minion.start()
File "/usr/lib/python2.6/site-packages/salt/__init__.py", line 221, in start
self.prepare()
File "/usr/lib/python2.6/site-packages/salt/__init__.py", line 209, in prepare
self.minion = salt.minion.Minion(self.config)
File "/usr/lib/python2.6/site-packages/salt/minion.py", line 547, in __init__
self.authenticate(timeout, safe)
File "/usr/lib/python2.6/site-packages/salt/minion.py", line 1066, in authenticate
self.tok = auth.gen_token('salt')
File "/usr/lib/python2.6/site-packages/salt/crypt.py", line 232, in gen_token
return self.get_keys().private_encrypt(clear_tok, 5)
File "/usr/lib/python2.6/site-packages/salt/crypt.py", line 216, in get_keys
key = RSA.load_key(self.rsa_path)
NameError: global name 'RSA' is not defined
Traceback (most recent call last):
File "/usr/bin/salt-minion", line 14, in <module>
salt_minion()
File "/usr/lib/python2.6/site-packages/salt/scripts.py", line 35, in salt_minion
minion.start()
File "/usr/lib/python2.6/site-packages/salt/__init__.py", line 221, in start
self.prepare()
File "/usr/lib/python2.6/site-packages/salt/__init__.py", line 209, in prepare
self.minion = salt.minion.Minion(self.config)
File "/usr/lib/python2.6/site-packages/salt/minion.py", line 547, in __init__
self.authenticate(timeout, safe)
File "/usr/lib/python2.6/site-packages/salt/minion.py", line 1066, in authenticate
self.tok = auth.gen_token('salt')
File "/usr/lib/python2.6/site-packages/salt/crypt.py", line 232, in gen_token
return self.get_keys().private_encrypt(clear_tok, 5)
File "/usr/lib/python2.6/site-packages/salt/crypt.py", line 216, in get_keys
key = RSA.load_key(self.rsa_path)
NameError: global name 'RSA' is not defined
# salt-minion --versions-report
Salt: 2014.1.5
Python: 2.6.6 (r266:84292, Sep 12 2011, 14:03:14)
Jinja2: 2.2.1
M2Crypto: Not Installed
msgpack-python: 0.1.13
msgpack-pure: Not Installed
pycrypto: 2.0.1
PyYAML: 3.10
PyZMQ: 2.2.0.1
ZMQ: 3.2.4
# rpm -qa|grep -i M2Crypto
m2crypto-0.20.2-9.el6.x86_64
# python
Python 2.6.6 (r266:84292, Sep 12 2011, 14:03:14)
[GCC 4.4.5 20110214 (Red Hat 4.4.5-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import M2Crypto
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.6/site-packages/M2Crypto/__init__.py", line 22, in <module>
import __m2crypto
ImportError: /usr/lib64/python2.6/site-packages/M2Crypto/__m2crypto.so: undefined symbol: PEM_write_bio_SSL_SESSION
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment