Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Salt minion dies when its key is accepted #18567

Closed
spo0nman opened this issue Nov 28, 2014 · 3 comments
Closed

Salt minion dies when its key is accepted #18567

spo0nman opened this issue Nov 28, 2014 · 3 comments
Labels
cannot-reproduce cannot be replicated with info/context provided info-needed waiting for more info
Milestone

Comments

@spo0nman
Copy link

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
@pitatus
Copy link

pitatus commented Dec 2, 2014

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' ?

@pitatus pitatus added cannot-reproduce cannot be replicated with info/context provided info-needed waiting for more info labels Dec 2, 2014
@pitatus pitatus added this to the Blocked milestone Dec 2, 2014
@spo0nman
Copy link
Author

spo0nman commented Dec 3, 2014

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.

@spo0nman spo0nman closed this as completed Dec 3, 2014
@pitatus
Copy link

pitatus commented Dec 3, 2014

good to know, thanks for the update

@pitatus pitatus removed their assignment Dec 3, 2014
@spo0nman spo0nman changed the title Salt minion dies when it's key is accepted Salt minion dies when its key is accepted Jul 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cannot-reproduce cannot be replicated with info/context provided info-needed waiting for more info
Projects
None yet
Development

No branches or pull requests

2 participants