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
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.
Associated revisions
fix network configuration without gateway
Fix #26675
History
#1 Updated by Daniel Dehennin over 4 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 over 4 years ago
- Status changed from Nouveau to En cours
- Remaining (hours) set to 2.0
#3 Updated by Joël Cuissinat over 4 years ago
- Assigned To set to Joël Cuissinat
#4 Updated by Joël Cuissinat over 4 years ago
- Status changed from En cours to Résolu
- % Done changed from 0 to 100
Appliqué par commit eole-common:69d3e5a8d4c2ae2433fcb38067ab5ba46bc786d6.
#5 Updated by Fabrice Barconnière over 4 years ago
- File network_without_gw.png View added
- Remaining (hours) changed from 2.0 to 0.0
#6 Updated by Joël Cuissinat over 4 years ago
- Status changed from Résolu to Fermé