Project

General

Profile

Tâche #32588

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

L’action dhcp de l’ead3 devrait fonctionner 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

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/dhcp/__init__.py", line 41, in wrapper return func(*args, **kwargs) File "/var/lib/ead3/var/cache/salt/minion/extmods/modules/ead/dhcp/__init__.py", line 372, in get_subnets return {"subnets": _get_subnets(cfg)} File "/var/lib/ead3/var/cache/salt/minion/extmods/modules/ead/dhcp/__init__.py", line 306, in _get_subnets leases = [int(_ipaddress.ip_address(lease['address'])) for lease in get_leases()['leases']] File "/var/lib/ead3/var/cache/salt/minion/extmods/modules/ead/dhcp/__init__.py", line 41, in wrapper return func(*args, **kwargs) File "/var/lib/ead3/var/cache/salt/minion/extmods/modules/ead/dhcp/__init__.py", line 259, in get_leases with open(_LEASES_DATABASE, 'r') as leases_db: FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/dhcp/dhcpd.leases' 

Associated revisions

Revision ef4896f2 (diff)
Added by Laurent Flori 8 months ago

Correct path to dhcp leases file for amonecole

fix: #32588

History

#1 Updated by Laurent Flori 8 months ago

l'action ne se lance pas sur amonecole parce qu'il y a un chemin de fichier en dur dans le code

dans le fichier /var/lib/ead3/var/cache/salt/minion/extmods/modules/ead/dhcp/__init__.py ligne 207

il faudrait pouvoir lui configurer le chemin _LEASES_DATABASE dans le conteneur

#2 Updated by Laurent Flori 8 months ago

  • Status changed from Nouveau to En cours

#3 Updated by Laurent Flori 8 months ago

  • Assigned To set to Laurent Flori

#4 Updated by Laurent Flori 8 months ago

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

#5 Updated by Joël Cuissinat 8 months ago

  • Status changed from Résolu to En cours

La gestion des baux dynamiques est OK maintenant : https://dev-eole.ac-dijon.fr/squash/executions/12607

Par contre, j'ai un nouveau traceback dans les réservations : https://dev-eole.ac-dijon.fr/squash/executions/12609

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/dhcp/__init__.py", line 41, in wrapper return func(*args, **kwargs) File "/var/lib/ead3/var/cache/salt/minion/extmods/modules/ead/dhcp/__init__.py", line 783, in upsert_reserved save_values(cfg, messages) File "/var/lib/ead3/var/cache/salt/minion/extmods/modules/ead/dhcp/_init__.py", line 836, in _save_values err_object = result['name'] KeyError: 'name'

=> nouveau scénario #32608

#6 Updated by Joël Cuissinat 8 months ago

  • Status changed from En cours to Fermé
  • Remaining (hours) set to 0.0

Also available in: Atom PDF