Ansible or python got messed up

Hi,

I’m running Ansible to manage our nodes from a shared server, for some reason every time I run Ansible it shows the bellow output on every task execution. As far as I know there were no updates in the system regarding the python version and that doesn’t seem to be related with a specific version of Ansible but it’s happening on the current devel and other stable versions that were working fine.

“”"

Traceback (most recent call last):
File “/home/nicolasg/ansible/lib/ansible/runner/connection_plugins/paramiko_ssh.py”, line 319, in close
self.ssh.load_system_host_keys()
File “/usr/lib/python2.6/site-packages/paramiko/client.py”, line 152, in load_system_host_keys
self._system_host_keys.load(filename)
File “/usr/lib/python2.6/site-packages/paramiko/hostkeys.py”, line 155, in load
e = HostKeyEntry.from_line(line)
File “/usr/lib/python2.6/site-packages/paramiko/hostkeys.py”, line 67, in from_line
key = RSAKey(data=base64.decodestring(key))
File “/usr/lib64/python2.6/base64.py”, line 321, in decodestring
return binascii.a2b_base64(s)
Error: Incorrect padding
“”"

I have also tried reverting the code back to an old state but that didn’t work either… any clue what’s going wrong ?

So this is attempting to read your host keys and is finding them confused.

Can you SSH normally using those keys/etc?

yes I can ssh using the keys like this :

ssh-agent bash

ssh-add ~/.ssh/login-key

Hi

Did you find a solution to this issue?