salt
salt copied to clipboard
Salt minion dies when its key is accepted
The salt minion dies with the following error as soon as its key is accepted on the master:
TypeError: string indices must be integers, not str
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 56, in salt_minion
minion.start()
File "/usr/lib/python2.6/site-packages/salt/__init__.py", line 262, in start
self.prepare()
File "/usr/lib/python2.6/site-packages/salt/__init__.py", line 241, in prepare
self.minion = salt.minion.Minion(self.config)
File "/usr/lib/python2.6/site-packages/salt/minion.py", line 603, in __init__
opts['environment'],
File "/usr/lib/python2.6/site-packages/salt/pillar/__init__.py", line 91, in compile_pillar
ret_pillar = self.sreq.crypted_transfer_decode_dictentry(load, dictkey='pillar', tries=3, timeout=7200)
File "/usr/lib/python2.6/site-packages/salt/transport/__init__.py", line 236, in crypted_transfer_decode_dictentry
aes = key.private_decrypt(ret['key'], 4)
TypeError: string indices must be integers, not str
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 56, in salt_minion
minion.start()
File "/usr/lib/python2.6/site-packages/salt/__init__.py", line 262, in start
self.prepare()
File "/usr/lib/python2.6/site-packages/salt/__init__.py", line 241, in prepare
self.minion = salt.minion.Minion(self.config)
File "/usr/lib/python2.6/site-packages/salt/minion.py", line 603, in __init__
opts['environment'],
File "/usr/lib/python2.6/site-packages/salt/pillar/__init__.py", line 91, in compile_pillar
ret_pillar = self.sreq.crypted_transfer_decode_dictentry(load, dictkey='pillar', tries=3, timeout=7200)
File "/usr/lib/python2.6/site-packages/salt/transport/__init__.py", line 236, in crypted_transfer_decode_dictentry
aes = key.private_decrypt(ret['key'], 4)
TypeError: string indices must be integers, not str
versions on minion
$ salt-call --versions-report
Salt: 2014.7.0
Python: 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
Jinja2: 2.2.1
M2Crypto: 0.20.2
msgpack-python: 0.1.13
msgpack-pure: Not Installed
pycrypto: 2.0.1
libnacl: Not Installed
PyYAML: 3.10
ioflo: Not Installed
PyZMQ: 14.4.1
RAET: Not Installed
ZMQ: 3.2.4
Mako: Not Installed
versions on master
$ salt-call --versions
Salt: 2014.7.0
Python: 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
Jinja2: 2.2.1
M2Crypto: 0.20.2
msgpack-python: 0.1.13
msgpack-pure: Not Installed
pycrypto: Not Installed
libnacl: Not Installed
PyYAML: 3.10
ioflo: Not Installed
PyZMQ: 14.4.1
RAET: Not Installed
ZMQ: 3.2.4
Mako: Not Installed
I've tried this a few times with 2014.7.0 and I can't reproduce, my versions are a little different:
Salt: 2014.7.0
Python: 2.7.8 (default, Oct 20 2014, 15:05:19)
Jinja2: 2.7.3
M2Crypto: 0.21.1
msgpack-python: 0.4.2
msgpack-pure: Not Installed
pycrypto: 2.6.1
libnacl: Not Installed
PyYAML: 3.11
ioflo: Not Installed
PyZMQ: 14.3.1
RAET: Not Installed
ZMQ: 4.0.4
Mako: Not Installed
..but should be similar enough.. Have you tried the newer version to see if it does the same 'v2014.7.0rc7' ?
Hi,
I figured out the problem. Pycrypto was a different version on the master. Upgrading pycrypto to 2.6.1 on both master and minion and restarting master/minion fixed the issue.
good to know, thanks for the update