Projet

Général

Profil

Tâche #26675

Scénario #26447: Traitement express MEN (5-7)

2.7.0 : Si on n'a pas de gateway, le réseau n'est pas fonctionnel

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

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

100%

Temps estimé:
2.00 h
Temps passé:
Restant à faire (heures):
0.0

Description

root@eolebase:~# CreoleGet adresse_ip_gw 

root@eolebase:~# CreoleGet interface_gw
enp0s3
root@eolebase:~# cat /etc/netplan/00-eole.yaml

network:
   version: 2
   renderer: networkd
   ethernets:
        enp0s3:
            addresses:
                - 192.168.56.101/24
            gateway4: 

root@eolebase:~# systemctl restart netplan-apply
Job for netplan-apply.service failed because the control process exited with error code.
See "systemctl status netplan-apply.service" and "journalctl -xe" for details.
root@eolebase:~# systemctl status netplan-apply
● netplan-apply.service - Apply netplan config
   Loaded: loaded (/lib/systemd/system/netplan-apply.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2019-02-07 16:52:59 CET; 40s ago
  Process: 6088 ExecStart=/usr/sbin/netplan apply (code=exited, status=78)
  Process: 6084 ExecStart=/usr/sbin/eole-purge-interfaces (code=exited, status=0/SUCCESS)
 Main PID: 6088 (code=exited, status=78)

févr. 07 16:52:59 eolebase systemd[1]: Starting Apply netplan config...
févr. 07 16:52:59 eolebase eole-purge-interfaces[6084]: Purge all interfaces...
févr. 07 16:52:59 eolebase eole-purge-interfaces[6084]: Disable the interface 'enp0s3'... OK
févr. 07 16:52:59 eolebase eole-purge-interfaces[6084]: Flush IP addresses of the interface 'enp0s3'... OK
févr. 07 16:52:59 eolebase netplan[6088]: Error in network definition /etc/netplan/00-eole.yaml line 8 column 21: invalid IPv4 address ''
févr. 07 16:52:59 eolebase systemd[1]: netplan-apply.service: Main process exited, code=exited, status=78/n/a
févr. 07 16:52:59 eolebase systemd[1]: netplan-apply.service: Failed with result 'exit-code'.
févr. 07 16:52:59 eolebase systemd[1]: Failed to start Apply netplan config.

network_without_gw.png Voir (3,29 ko) Fabrice Barconnière, 13/02/2019 15:36

Révisions associées

Révision 69d3e5a8 (diff)
Ajouté par Joël Cuissinat il y a environ 5 ans

fix network configuration without gateway

Fix #26675

Historique

#1 Mis à jour par Daniel Dehennin il y a environ 5 ans

  • Temps estimé mis à 2.00 h
  • Tâche parente mis à #26447

Il manque effectivement un test dans le code eole-common:source:tmpl/00-eole.yaml@22059c0#L13

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

  • Statut changé de Nouveau à En cours
  • Restant à faire (heures) mis à 2.0

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

  • Assigné à mis à Joël Cuissinat

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

  • Statut changé de En cours à Résolu
  • % réalisé changé de 0 à 100

#5 Mis à jour par Fabrice Barconnière il y a environ 5 ans

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

  • Statut changé de Résolu à Fermé

Formats disponibles : Atom PDF