Scénario #34250
salt-minion 3004.1 : RSA key format is not supported (bug upstream)
0%
Description
Il semble y avoir un problème entre Scribe 2.7.2 et le minion des postes.
Vu dans https://dev-eole.ac-dijon.fr/jenkins/job/2.7.2/job/test-etb1-scribe-joindomain-win10-prev-2.7.2-amd64/455/console
Dans URL : https://dev-eole.ac-dijon.fr/jenkins/job/2.7.2/job/test-etb1-scribe-joindomain-win10-prev-2.7.2-amd64/ws/ws/etb1.pceleve-851799/salt_minion.log
ATTENTION : le fichier fait 230 MO !!!
2022-06-03 07:03:58,699 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt Traceback (most recent call last): File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\minion.py", line 1140, in _connect_minion yield minion.connect_master(failed=failed) File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\gen.py", line 1056, in run value = future.result() File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\concurrent.py", line 249, in result raise_exc_info(self._exc_info) File "<string>", line 4, in raise_exc_info File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\gen.py", line 1064, in run yielded = self.gen.throw(*exc_info) File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\minion.py", line 1366, in connect_master master, self.pub_channel = yield self.eval_master( File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\gen.py", line 1056, in run value = future.result() File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\concurrent.py", line 249, in result raise_exc_info(self._exc_info) File "<string>", line 4, in raise_exc_info File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\gen.py", line 309, in wrapper yielded = next(result) File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\minion.py", line 821, in eval_master pub_channel = salt.transport.client.AsyncPubChannel.factory( File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\transport\client.py", line 205, in factory return salt.transport.zeromq.AsyncZeroMQPubChannel(opts, **kwargs) File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\transport\zeromq.py", line 384, in __init__ self.auth = salt.crypt.AsyncAuth(self.opts, io_loop=self.io_loop) File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\crypt.py", line 515, in __new__ auth.__singleton_init__(opts, io_loop=io_loop) File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\crypt.py", line 551, in __singleton_init__ self.get_keys() File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\crypt.py", line 903, in get_keys key = get_rsa_key(self.rsa_path, None) File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\crypt.py", line 213, in get_rsa_key return _get_key_with_evict(path, str(os.path.getmtime(path)), passphrase) File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\utils\decorators\__init__.py", line 298, in _memoize cache[args_] = func(*args, **kwargs) File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\crypt.py", line 197, in _get_key_with_evict key = RSA.importKey(f.read(), passphrase) File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\Cryptodome\PublicKey\RSA.py", line 788, in import_key raise ValueError("RSA key format is not supported") ValueError: *RSA key format is not supported*
- ls salt_minion.log -l
243911419 juin 3 11:28 salt_minion.log
- gilles@gilles-thinkpad ~/Téléchargements $ grep "2022-06-03 07:03:58" salt_minion.log
2022-06-03 07:03:58,699 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,715 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,715 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,731 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,731 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,746 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,746 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,746 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,762 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,762 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,778 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,778 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,778 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,793 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,793 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,809 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,809 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,809 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,825 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,825 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,840 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,856 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,871 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,871 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,887 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,902 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,918 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,934 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,949 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,949 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,965 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,981 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,981 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
2022-06-03 07:03:58,996 [salt.minion :1166][CRITICAL][4704] Unexpected error while connecting to salt
soit 34 à la seconde. Le poste doit être quasi arrêté...
History
#1 Updated by Daniel Dehennin over 1 year ago
Ha mais normalement nous utilisons python3-m2crypto, qui est la bibliothèque utilisée en premier, pour éviter cette erreur.
Peux-tu vérifier ce que donne la commande suivante sur le serveur Scribe :
apt policy python3-m2crypto
#2 Updated by Daniel Dehennin over 1 year ago
Arf, je viens de comprendre que cela se passe sur le minion et non le scribe.
Est-ce une clef générée sur le minion ou une clef sauvegardé/restaurée ?
Normalement m2crypto est la bibliothèque préférée.
#3 Updated by Daniel Dehennin over 1 year ago
Faire sur le client :
salt-call --local --versions-report
#4 Updated by Gilles Grandgérard over 1 year ago
- Target version set to sprint 2022 23-25 Equipe MENSR
- Parent task set to #34243
#5 Updated by Daniel Dehennin over 1 year ago
J’ai ouvert https://github.com/saltstack/salt/issues/62141.
#6 Updated by Joël Cuissinat about 1 year ago
- Parent task changed from #34243 to #34369
#7 Updated by Joël Cuissinat about 1 year ago
- Parent task deleted (
#34369)
#8 Updated by Joël Cuissinat about 1 year ago
- Tracker changed from Tâche to Scénario
- Subject changed from salt-minion 3004.1 : RSA key format is not supported to salt-minion 3004.1 : RSA key format is not supported (bug upstream)
- Target version deleted (
sprint 2022 26-35 Equipe MENSR (été+)) - Start date deleted (
06/03/2022) - Release set to EOLE 2.8.1
#9 Updated by Gilles Grandgérard about 1 year ago
- Due date set to 09/30/2022
- Target version set to sprint 2022 36-39 Equipe MENSR
- Start date set to 09/05/2022
#10 Updated by Joël Cuissinat 12 months ago
- Due date deleted (
09/30/2022) - Target version deleted (
sprint 2022 36-39 Equipe MENSR) - Start date deleted (
09/05/2022)