Project

General

Profile

Tâche #32587

Scénario #32576: L'EAD3 devait fonctionner sur tous les modules 2.8.1

L’ead3 devrait permettre d’accepter les clefs salt dans l’etb3

Added by Laurent Flori 8 months ago. Updated 8 months ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
05/28/2021
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

le message d’erreur:

The minion function caused an exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/salt/minion.py", line 1904, in _thread_return return_data = minion_instance._execute_job_function( File "/usr/lib/python3/dist-packages/salt/minion.py", line 1861, in _execute_job_function return_data = self.executors[fname](opts, data, func, args, kwargs) File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__ return self.loader.run(run_func, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as return _func_or_method(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/executors/direct_call.py", line 12, in execute return func(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__ return self.loader.run(run_func, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as return _func_or_method(*args, **kwargs) File "/var/lib/ead3/var/cache/salt/minion/extmods/modules/ead/__init__.py", line 55, in func return getattr(module, function)(*args, **kwargs) File "/var/lib/ead3/var/cache/salt/minion/extmods/modules/ead/saltkey/__init__.py", line 10, in get_keys data = loads(stdout) File "/usr/lib/python3.8/json/__init__.py", line 357, in loads return _default_decoder.decode(s) File "/usr/lib/python3.8/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 

Voir si l’on peut utiliser le wrapper enregistrement_client

Associated revisions

Revision a49ef374 (diff)
Added by Joël Cuissinat 8 months ago

Execute salt commands in `addc` container

Ref: #32587

Revision 9e2547da (diff)
Added by Joël Cuissinat 8 months ago

pylint cleaning

Ref: #32587

Revision adca1e9e (diff)
Added by Joël Cuissinat 8 months ago

Execute salt commands in `addc` container

Ref: #32587
Ref: #32231

Revision 3ba302f2 (diff)
Added by Joël Cuissinat 8 months ago

Execute journalctl command in `fichier` container

Ref: #32587
Ref: #32161

History

#1 Updated by Joël Cuissinat 8 months ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Joël Cuissinat

#2 Updated by Joël Cuissinat 8 months ago

eole-workstation-ead3$ rgrep salt-key
extra/saltkey/salt/custom.py: code, stdout, stderr = system_out(['/usr/bin/salt-key', '--out=json'])
extra/saltkey/salt/custom.py: code, stdout, stderr = system_out(['/usr/bin/salt-key', '-a', minion['minion'], '-y'])
extra/saltkey/salt/custom.py: code, stdout, stderr = system_out(['/usr/bin/salt-key', '-d', minion['minion'], '-y'])
extra/saltkey/salt/custom.py: code, stdout, stderr = system_out(['/usr/bin/salt-key', '-r', minion['minion'], '-y'])

=> à faire exécuter dans le conteneur addc ;)

#3 Updated by Joël Cuissinat 8 months ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

#4 Updated by Joël Cuissinat 8 months ago

=> eole-workstation-ead3 2.8.1-4

#5 Updated by Daniel Dehennin 8 months ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

Cela fonctionne maintenant.

Also available in: Atom PDF