Project

General

Profile

Scénario #33800

Pas de route au reconfigure. (constaté sur AMON 2.8)

Added by Ludwig Seys about 1 year ago. Updated about 1 year ago.

Status:
Terminé (Sprint)
Priority:
Normal
Assigned To:
Category:
-
Start date:
02/11/2022
Due date:
03/04/2022
% Done:

100%

Story points:
1.0
Remaining (hours):
0.00 hour
Velocity based estimate:
Release:
Release relationship:
Auto

Description

A la fin du reconfigure les routes sont absentes.
Reproduit sur 3 reconfigure.
dans les logs ont remarques que 01-extras-routes.yaml est ajouté 2 secondes après le redémarrage de netplan-apply, ce qui pourrait expliquer sa non prise en compte.

@2022-02-09 14:55:46,439: creole.template - Instanciation du fichier '/etc/netplan/00-eole.yaml' depuis '/var/lib/creole/00-eole.yaml'
2022-02-09 14:55:46,440: creole.template - Copie du template '/usr/share/eole/creole/distrib/00-eole.yaml' vers '/var/lib/creole'
2022-02-09 14:55:46,440: creole.template - Traitement Cheetah : '/var/lib/creole/00-eole.yaml' vers '/etc/netplan/00-eole.yaml'
2022-02-09 14:55:46,463: creole.template - Changement des propriétés : chown root:root /etc/netplan/00-eole.yaml
2022-02-09 14:55:46,466: creole.template - Changement des propriétés : chmod 0644 /etc/netplan/00-eole.yaml
2022-02-09 14:55:48,525: pyeole.service.launcher - Restart Systemd service netplan-apply
2022-02-09 14:55:49,328: pyeole.service.launcher - OK
2022-02-09 14:55:49,348: pyeole.service.launcher - Service netplan-apply is running


2022-02-09 14:55:49,809: creole.template - Instanciation du fichier '/etc/netplan/00-eole.yaml' depuis '/var/lib/creole/00-eole.yaml'
2022-02-09 14:55:49,810: creole.template - Copie du template '/usr/share/eole/creole/distrib/00-eole.yaml' vers '/var/lib/creole'
2022-02-09 14:55:49,810: creole.template - Traitement Cheetah : '/var/lib/creole/00-eole.yaml' vers '/etc/netplan/00-eole.yaml'
2022-02-09 14:55:49,830: creole.template - Changement des propriétés : chown root:root /etc/netplan/00-eole.yaml
2022-02-09 14:55:49,833: creole.template - Changement des propriétés : chmod 0644 /etc/netplan/00-eole.yaml


2022-02-09 14:55:50,525: creole.template - Instanciation du fichier '/etc/netplan/01-extras-routes.yaml' depuis '/var/lib/creole/01-extras-routes.yaml'
2022-02-09 14:55:50,526: creole.template - Copie du template '/usr/share/eole/creole/distrib/01-extras-routes.yaml' vers '/var/lib/creole'
2022-02-09 14:55:50,526: creole.template - Traitement Cheetah : '/var/lib/creole/01-extras-routes.yaml' vers '/etc/netplan/01-extras-routes.yaml'
2022-02-09 14:55:50,540: creole.template - Changement des propriétés : chown root:root /etc/netplan/01-extras-routes.yaml
2022-02-09 14:55:50,543: creole.template - Changement des propriétés : chmod 0644 /etc/netplan/01-extras-routes.yaml@

Note le problèmes est apparu sur un serveur en production depuis sa mise à jours du jeudi 27 janvier 2022.


Subtasks

Tâche #33807: Templatiser tous les fichiers utiliser par netplanFerméEmmanuel GARETTE

Tâche #33809: Tester et diffuser la correctionFerméJoël Cuissinat

History

#1 Updated by Emmanuel GARETTE about 1 year ago

Le netplan-apply doit être fait avant la génération des templates (pour connaitre l'IP en cas de DHCP).
Le fichier route n'est pas généré avant de lancer netplan-apply.

#2 Updated by Joël Cuissinat about 1 year ago

  • etb1.amon-2.8.1-instance-default

Après re-démarrage (14 lignes) :

root@amon:~# ip route
default via 192.168.0.1 dev ens4 proto static 
10.1.1.0/24 dev ens5 proto kernel scope link src 10.1.1.1 
10.1.2.0/24 dev ens6 proto kernel scope link src 10.1.2.1 
10.1.3.0/24 dev ens7 proto kernel scope link src 10.1.3.1 
10.1.15.0/24 dev ens5 proto kernel scope link src 10.1.15.1 
10.1.16.0/24 dev ens5 proto kernel scope link src 10.1.16.1 
10.1.17.0/24 via 10.1.1.254 dev ens5 proto static metric 100 
10.1.21.0/24 dev vlan21 proto kernel scope link src 10.1.21.1 
10.1.22.0/24 dev vlan22 proto kernel scope link src 10.1.22.1 
10.1.26.0/24 via 10.1.2.254 dev ens6 proto static metric 100 
10.1.36.0/24 via 10.1.3.254 dev ens7 proto static metric 100 
192.168.0.0/24 dev ens4 proto kernel scope link src 192.168.0.31 
192.168.11.0/24 via 192.168.0.254 dev ens4 proto static metric 100 
192.168.12.0/24 via 192.168.0.254 dev ens4 proto static metric 100

Après reconfigure (9 lignes) :

root@amon:~# ip route 
default via 192.168.0.1 dev ens4 proto static 
10.1.1.0/24 dev ens5 proto kernel scope link src 10.1.1.1 
10.1.2.0/24 dev ens6 proto kernel scope link src 10.1.2.1 
10.1.3.0/24 dev ens7 proto kernel scope link src 10.1.3.1 
10.1.15.0/24 dev ens5 proto kernel scope link src 10.1.15.1 
10.1.16.0/24 dev ens5 proto kernel scope link src 10.1.16.1 
10.1.21.0/24 dev vlan21 proto kernel scope link src 10.1.21.1 
10.1.22.0/24 dev vlan22 proto kernel scope link src 10.1.22.1 
192.168.0.0/24 dev ens4 proto kernel scope link src 192.168.0.31

#3 Updated by Joël Cuissinat about 1 year ago

  • Tracker changed from Demande to Scénario
  • Due date set to 03/04/2022
  • Target version set to Prestation Cadoles MEN 2022 06-09
  • Release set to EOLE 2.8.1
  • Story points set to 1.0

#4 Updated by Emmanuel GARETTE about 1 year ago

  • Status changed from Nouveau to Résolu
  • Assigned To set to Emmanuel GARETTE

#5 Updated by Joël Cuissinat about 1 year ago

  • Status changed from Résolu to Terminé (Sprint)

#6 Updated by Joël Cuissinat about 1 year ago

  • Related to Tâche #33941: Pas de route au reconfigure. (constaté sur AMON 2.7.2) added

#7 Updated by Joël Cuissinat about 1 year ago

  • Related to deleted (Tâche #33941: Pas de route au reconfigure. (constaté sur AMON 2.7.2))

#8 Updated by Toni MANUEL about 1 year ago

  • File zephir_config_397.eol added

#9 Updated by Joël Cuissinat about 1 year ago

  • File deleted (zephir_config_397.eol)

Also available in: Atom PDF