valentin2105
11/24/2015 - 3:20 AM

error_master_key

/var/log/salt/master error after salt-master restart

ValueError: invalid RSA private key
2015-11-24 14:09:30,557 [tornado.application][ERROR   ][5382] Future exception was never retrieved: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/tornado/gen.py", line 230, in wrapper
    yielded = next(result)
  File "/usr/lib/python2.7/dist-packages/salt/transport/zeromq.py", line 505, in handle_message
    stream.send(self.serial.dumps(self._auth(payload['load'])))
  File "/usr/lib/python2.7/dist-packages/salt/transport/mixins/auth.py", line 451, in _auth
    ret['sig'] = salt.crypt.private_encrypt(self.master_key.key, digest)
  File "/usr/lib/python2.7/dist-packages/salt/crypt.py", line 174, in private_encrypt
    signer = salt.utils.rsax931.RSAX931Signer(key.exportKey('PEM'))
  File "/usr/lib/python2.7/dist-packages/salt/utils/rsax931.py", line 89, in __init__
    raise ValueError('invalid RSA private key')
ValueError: invalid RSA private key