Project

General

Profile

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

Added by Emmanuel GARETTE about 2 years ago. Updated about 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
02/07/2019
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Remaining (hours):
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 View (3.29 KB) Fabrice Barconnière, 02/13/2019 03:36 PM

Associated revisions

Revision 69d3e5a8 (diff)
Added by Joël Cuissinat about 2 years ago

fix network configuration without gateway

Fix #26675

History

#1 Updated by Daniel Dehennin about 2 years ago

  • Estimated time set to 2.00 h
  • Parent task set to #26447

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

#2 Updated by Joël Cuissinat about 2 years ago

  • Status changed from Nouveau to En cours
  • Remaining (hours) set to 2.0

#3 Updated by Joël Cuissinat about 2 years ago

  • Assigned To set to Joël Cuissinat

#4 Updated by Joël Cuissinat about 2 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

#5 Updated by Fabrice Barconnière about 2 years ago

#6 Updated by Joël Cuissinat about 2 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF