Projet

Général

Profil

Tâche #36419

Scénario #36181: EOLE 2.9 : Erreur netplan-wait-online au reconfigure

eolebase 2.8 - temps d'attente du réseau lors du reconfigure trop court

Ajouté par Thierry ARBEZ-CARME il y a environ un an. Mis à jour il y a 12 mois.

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

100%

Restant à faire (heures):
0.0

Description

Bonjour,

sur un de nos serveurs fog en Eole 2.8, le temps d'attente de l'activation du réseau lors du reconfigure est trop court.

fichier concerné:
/usr/lib/python3/dist-packages/creole/reconfigure.py

lignes concernées:

        # waiting for the netplan-wait-online service to be started
        max_loop = 20

ex de log ou le temps d'attente est dépassé:

2025-02-04 14:46:53,151: pyeole.service.launcher - Restart Systemd service netplan-apply
2025-02-04 14:46:54,425: pyeole.service.launcher - OK
2025-02-04 14:46:54,440: pyeole.service.launcher - Service netplan-apply is running
2025-02-04 14:46:54,456: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:46:55,480: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:46:56,505: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:46:57,544: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:46:58,568: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:46:59,591: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:47:00,615: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:47:01,640: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:47:02,665: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:47:03,690: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:47:04,713: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:47:05,737: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:47:06,760: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:47:07,785: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:47:08,809: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:47:09,833: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:47:10,857: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:47:11,880: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:47:12,905: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:47:13,929: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:47:14,953: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:47:15,976: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 14:47:15,976: reconfigure - Service netplan-wait-online is not running

ex de log avec un temps d'attente changé à 60 secondes:
on voit que le service met 22 secondes à démarrer.
mais j'ai d'autres tests ou le temps reste en dessous des 20 secondes.

2025-02-04 15:38:26,111: pyeole.service.launcher - Restart Systemd service netplan-apply
2025-02-04 15:38:27,339: pyeole.service.launcher - OK
2025-02-04 15:38:27,355: pyeole.service.launcher - Service netplan-apply is running
2025-02-04 15:38:27,372: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:28,395: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:29,418: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:30,441: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:31,465: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:32,489: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:33,513: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:34,536: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:35,562: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:36,586: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:37,612: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:38,638: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:39,662: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:40,688: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:41,711: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:42,736: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:43,762: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:44,787: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:45,813: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:46,837: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:47,860: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:48,885: pyeole.service.launcher - Service netplan-wait-online is not running
2025-02-04 15:38:49,912: pyeole.service.launcher - Service netplan-wait-online is running

Sur d'autres machines, le temps d'attente et généralement plus court (moins de 10 secondes),
mais ce n'est pas le 1ère fois que je vois cette erreur.

Merci

Révisions associées

Révision ba3e1327 (diff)
Ajouté par Benjamin Bohard il y a environ un an

Afficher l’état des interfaces réseau pour un meilleur diagnostic.

Ref #36358
Ref #36419

Révision 8b792561 (diff)
Ajouté par Benjamin Bohard il y a environ un an

Augmenter le temps d’attente de configuration du réseau.

Ref #36419

Historique

#1 Mis à jour par Thierry ARBEZ-CARME il y a environ un an

même problème que dans le Scénario #36181

#2 Mis à jour par Joël Cuissinat il y a environ un an

  • Tâche parente mis à #36181

#3 Mis à jour par Benjamin Bohard il y a environ un an

La stratégie mise en place est la suivante :
- surveiller l’évolution de la configuration des interfaces avec la commande networkctl
- remettre le compteur de boucle à zéro si il y des changements

En définitive, il y a timeout si les interfaces ne sont pas configurées et qu’il n’y a pas d’évolution depuis à peu près 20 secondes (même valeur que précédemment). En définitive, le délai est rallongé puisqu’il est remis à zéro quand il y a un changement d’état.
Ajout d’une variable en mode expert pour l’éventualité où le délai devrait tout de même être modifié.

#4 Mis à jour par Benjamin Bohard il y a environ un an

  • Statut changé de Nouveau à À valider

#5 Mis à jour par Emmanuel GARETTE il y a 12 mois

  • Statut changé de À valider à Résolu

#6 Mis à jour par Joël Cuissinat il y a 12 mois

eole-common$ git branch -r --contains 8b792561  
  origin/2.9.0/master
  origin/HEAD -> origin/master
  origin/dist/eole/2.10.0/master
  origin/dist/eole/2.9.0/master
  origin/master

#7 Mis à jour par Joël Cuissinat il y a 12 mois

  • Statut changé de Résolu à Fermé
  • Assigné à mis à Benjamin Bohard
  • % réalisé changé de 0 à 100
  • Restant à faire (heures) mis à 0.0

Formats disponibles : Atom PDF