-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
gracefully handle when salt-minion cannot decrypt key #22578
gracefully handle when salt-minion cannot decrypt key #22578
Conversation
Actually I got this problem on 2014.1.10, but as the version Stacktrace: 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/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 553, in __init__
opts['environment'],
File "/usr/lib/pymodules/python2.7/salt/pillar/__init__.py", line 73, in compile_pillar
ret_pillar = self.sreq.crypted_transfer_decode_dictentry(load, dictkey='pillar', tries=3, timeout=7200)
File "/usr/lib/pymodules/python2.7/salt/transport/__init__.py", line 61, in crypted_transfer_decode_dictentry
aes = key.private_decrypt(ret['key'], 4)
TypeError: string indices must be integers, not str
|
Go Go Jenkins! |
Hmm, I thought we fixed this further up the pipe in 2014.7.4 or 2015.2, I am re-running the tests as they seem to have died |
@hvnsweeting, is it possible for you to rebase your branch? If not it's fine, we'll figure it out. Doing this might resolve the testing issues. Something like:
|
023daed
to
776f166
Compare
I rebased but test seems failed/dead, is there a way to know the reason? I found nothing useful in https://jenkins.saltstack.com/job/salt-pr-dsl/4345/ |
@rallytime may know better how to interpret what's going on here than I. |
There is a stack trace in the test logs when the test daemons are trying to start. Because of this stacktrace, the tests don't run and the build times out.
|
@rallytime, do you know how to fix this? This seems to be happening consistently for this pull request. |
Actually, it seems to be related to the code changes. @hvnsweeting, @thatch45, do you have any ideas? |
I will try to fix it in weekends as I'm not available for now
|
or salt-minion will die. Returns None to deligate this job to compile_pillar function handle it, as it is the only caller of this function for now
776f166
to
f75b24a
Compare
I reverted this commit hvnsweeting@776f166#diff-394afce37984c8269c65e4a59c91c581R252 Test should be pass now, anw, I'm concerning about RAET corresponding method as it looks not return the same what ZQM returns hvnsweeting@776f166#diff-394afce37984c8269c65e4a59c91c581R137 but you may handled that in another place/way, so I leave it as it is. |
@thatch45, this change will apply successfully to 2015.2, whereas on develop the whole file is completely different. It might be worth it to have this in 2015.2.0 even if the code was overhauled in develop. |
gracefully handle when salt-minion cannot decrypt key
Thanks @hvnsweeting ! |
@basepi, this will likely lead to a merge forward conflict. |
Story of my life. ;) |
or salt-minion will die. Returns None to deligate
this job to compile_pillar function handle it,
as it is the only caller of this function for now.