Project

General

Profile

Tâche #32049

Scénario #31989: Traceback zephir agent sur Amon 2.7.x

AmonEcole : erreur de l'agent DHCP

Added by Emmanuel GARETTE 5 months ago. Updated 5 months ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
04/07/2021
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

Il semble que l'agent Zéphir cherche le fichier /var/lib/dhcp/dhcpd.leases :

2021-04-07T10:49:47.302986+02:00 amonecole.etb3.lan zephiragents[11996]: 2021-04-07T10:49:47+0200 [-] Erreur remontée par /usr/share/eole/sbin/dhcp-tool
2021-04-07T10:49:47.303226+02:00 amonecole.etb3.lan zephiragents: [-] Erreur remontée par /usr/share/eole/sbin/dhcp-tool
2021-04-07T10:49:47.303516+02:00 amonecole.etb3.lan zephiragents[11996]: 2021-04-07T10:49:47+0200 [-] got stderr: b'Traceback (most recent call last):\n  File "/usr/share/eole/sbin/dhcp-tool", line 96, in <module>\n    with open(LEASES_DATABASE, \'r\') as leases_db:\nFileNotFoundError: [Errno 2] No such file or directory: \'/var/lib/dhcp/dhcpd.leases\'\nError in sys.excepthook:\nTraceback (most recent call last):\n  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook\n    with os.fdopen(os.open(pr_filename,\nFileNotFoundError: [Errno 2] No such file or directory: \'/var/crash/_usr_share_eole_sbin_dhcp-tool.0.crash\'\n\nOriginal exception was:\nTraceback (most recent call last):\n  File "/usr/share/eole/sbin/dhcp-tool", line 96, in <module>\n    with open(LEASES_DATABASE, \'r\') as leases_db:\nFileNotFoundError: [Errno 2] No such file or directory: \'/var/lib/dhcp/dhcpd.leases\'\n'
2021-04-07T10:49:47.303710+02:00 amonecole.etb3.lan zephiragents: [-] got stderr: b'Traceback (most recent call last):\n  File "/usr/share/eole/sbin/dhcp-tool", line 96, in <module>\n    with open(LEASES_DATABASE, \'r\') as leases_db:\nFileNotFoundError: [Errno 2] No such file or directory: \'/var/lib/dhcp/dhcpd.leases\'\nError in sys.excepthook:\nTraceback (most recent call last):\n  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook\n    with os.fdopen(os.open(pr_filename,\nFileNotFoundError: [Errno 2] No such file or directory: \'/var/crash/_usr_share_eole_sbin_dhcp-tool.0.crash\'\n\nOriginal exception was:\nTraceback (most recent call last):\n  File "/usr/share/eole/sbin/dhcp-tool", line 96, in <module>\n    with open(LEASES_DATABASE, \'r\') as leases_db:\nFileNotFoundError: [Errno 2] No such file or directory: \'/var/lib/dhcp/dhcpd.leases\'\n'
2021-04-07T10:49:47.524850+02:00 amonecole.etb3.lan zephiragents[11996]: 2021-04-07T10:49:47+0200 [stderr#error] Traceback (most recent call last):

Ce fichier doit être dans le ce conteneur

Associated revisions

Revision 62e79e34 (diff)
Added by Emmanuel GARETTE 5 months ago

agent dhcp.py : ne pas planter si aucune mesure ne sont prise + affichage sans b'' (ref #32049)

Revision 7d43af0d (diff)
Added by Emmanuel GARETTE 5 months ago

dhcp.leases est dans le conteneur sur AmonEcole + création d'un fichier de configuration pour récupérer la configuration (ref #32049)

History

#1 Updated by Emmanuel GARETTE 5 months ago

  • Tracker changed from Demande to Tâche
  • Assigned To set to Emmanuel GARETTE
  • % Done changed from 0 to 100
  • Parent task set to #31989

#2 Updated by Emmanuel GARETTE 5 months ago

  • Status changed from Nouveau to Résolu

#3 Updated by Joël Cuissinat 5 months ago

zephir-client$ git branch -r --contains 62e79e34 
  origin/2.8.0/master
  origin/HEAD -> origin/master
  origin/dist/eole/2.8.0/master
  origin/dist/eole/2.8.1/master
  origin/master

#4 Updated by Joël Cuissinat 5 months ago

eole-dhcp$ git branch -r --contains 7d43af0d  
  origin/HEAD -> origin/master
  origin/dist/eole/2.8.1/master
  origin/master

#5 Updated by Joël Cuissinat 5 months ago

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

En tout cas, l'agent paraît OK sur AmonEcole :

État     Plage     IP disponibles
On     pedago     51/51

Also available in: Atom PDF