Projet

Général

Profil

Tâche #32049

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

AmonEcole : erreur de l'agent DHCP

Ajouté par Emmanuel GARETTE il y a environ 3 ans. Mis à jour il y a environ 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
07/04/2021
Echéance:
% réalisé:

100%

Restant à faire (heures):
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

Révisions associées

Révision 62e79e34 (diff)
Ajouté par Emmanuel GARETTE il y a environ 3 ans

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

Révision 7d43af0d (diff)
Ajouté par Emmanuel GARETTE il y a environ 3 ans

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

Historique

#1 Mis à jour par Emmanuel GARETTE il y a environ 3 ans

  • Tracker changé de Demande à Tâche
  • Assigné à mis à Emmanuel GARETTE
  • % réalisé changé de 0 à 100
  • Tâche parente mis à #31989

#2 Mis à jour par Emmanuel GARETTE il y a environ 3 ans

  • Statut changé de Nouveau à Résolu

#3 Mis à jour par Joël Cuissinat il y a environ 3 ans

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 Mis à jour par Joël Cuissinat il y a environ 3 ans

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

#5 Mis à jour par Joël Cuissinat il y a environ 3 ans

  • Statut changé de Résolu à Fermé
  • Restant à faire (heures) mis à 0.0

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

État     Plage     IP disponibles
On     pedago     51/51

Formats disponibles : Atom PDF