netplan crash on ubuntu 20.04 disabling network
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Invalid
|
Undecided
|
Unassigned | ||
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Invalid
|
Medium
|
Unassigned |
Bug Description
On ubuntu 20.04 with netplan 0.102-0ubuntu1~
Trying to restart the server networking using "systemctl restart systemd-networkd" or "netplan apply" fails.
Note: systemctl and netplay apply fails also with a netplan with static IP address
The server runs on OVS in cloud.ramnode.com
I'm pasting config, logs, netplan and restart output (IP and mac address are masked)
I don't see a workaound yet, only to restart server to change the network configuration.
File: 50-cloud-init.yaml
=======
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/
# network: {config: disabled}
network:
version: 2
ethernets:
ens3:
dhcp4: true
dhcp6: true
match:
mtu: 1500
=======
Syslog
=======
2021-06-
2021-06-
2021-06-
2021-06-
2021-06-
2021-06-
2021-06-
2021-06-
2021-06-
2021-06-
2021-06-
2021-06-
2021-06-
=======
output of: netapply --debug try
=======
DEBUG:ens3 not found in {}
DEBUG:loop3456 not found in {}
DEBUG:Merged config:
network:
bridges:
loop3456:
accept-ra: false
addresses:
- 10.65.0.3/32
dhcp4: false
dhcp6: false
interfaces: []
ethernets:
ens3:
accept-ra: true
addresses:
- XXX.XXX.XXX.XXX/24
dhcp4: false
dhcp6: true
gateway4: XXX.XXX.XXX.XXX
match:
macaddress: **:**:*
mtu: 1500
nameservers:
addresses:
- 8.8.8.8
- 8.8.4.4
search:
- uc.edu.ve
set-name: ens3
version: 2
DEBUG:New interfaces: set()
** (generate:1484): DEBUG: 20:14:22.895: Processing input file /etc/netplan/
** (generate:1484): DEBUG: 20:14:22.895: starting new processing pass
** (generate:1484): DEBUG: 20:14:22.895: Processing input file /etc/netplan/
** (generate:1484): DEBUG: 20:14:22.895: starting new processing pass
** (generate:1484): DEBUG: 20:14:22.895: We have some netdefs, pass them through a final round of validation
** (generate:1484): DEBUG: 20:14:22.895: ens3: setting default backend to 1
** (generate:1484): DEBUG: 20:14:22.895: Configuration is valid
** (generate:1484): DEBUG: 20:14:22.895: loop3456: setting default backend to 1
** (generate:1484): DEBUG: 20:14:22.895: Configuration is valid
** (generate:1484): DEBUG: 20:14:22.896: Generating output files..
** (generate:1484): DEBUG: 20:14:22.896: openvswitch: definition ens3 is not for us (backend 1)
** (generate:1484): DEBUG: 20:14:22.896: NetworkManager: definition ens3 is not for us (backend 1)
** (generate:1484): DEBUG: 20:14:22.896: openvswitch: definition loop3456 is not for us (backend 1)
** (generate:1484): DEBUG: 20:14:22.896: NetworkManager: definition loop3456 is not for us (backend 1)
(generate:1484): GLib-DEBUG: 20:14:22.896: posix_spawn avoided (fd close requested)
(generate:1484): GLib-DEBUG: 20:14:22.897: posix_spawn avoided (fd close requested)
DEBUG:netplan generated networkd configuration changed, restarting networkd
Job for systemd-
See "systemctl status systemd-
An error occurred: Command '['systemctl', 'start', 'systemd-
Reverting.
DEBUG:netplan generated networkd configuration changed, restarting networkd
DEBUG:ens3 not found in {}
DEBUG:loop3456 not found in {}
DEBUG:Merged config:
network:
bridges:
loop3456:
accept-ra: false
addresses:
- 10.65.0.3/32
dhcp4: false
dhcp6: false
interfaces: []
ethernets:
ens3:
accept-ra: true
addresses:
- XXX.XXX.XXX.XXX/24
dhcp4: false
dhcp6: true
gateway4: XXX.XXX.XXX.XXX
match:
macaddress: **:**:*
mtu: 1500
nameservers:
addresses:
- 8.8.8.8
- 8.8.4.4
search:
- uc.edu.ve
set-name: ens3
version: 2
Job for systemd-
See "systemctl status systemd-
Traceback (most recent call last):
File "/usr/share/
NetplanAppl
File "/usr/share/
utils.
File "/usr/share/
subprocess.
File "/usr/lib/
raise CalledProcessEr
subprocess.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/sbin/
netplan.main()
File "/usr/share/
self.
File "/usr/share/
self.func()
File "/usr/share/
self.
File "/usr/share/
self.func()
File "/usr/share/
self.revert()
File "/usr/share/
NetplanAppl
File "/usr/share/
utils.
File "/usr/share/
subprocess.
File "/usr/lib/
raise CalledProcessEr
subprocess.
=======
output of: journalctl -xe
=======
-- An ExecStart= process belonging to unit systemd-
--
-- The process' exit code is 'dumped' and its exit status is 6.
Jun 01 20:14:25 snotra systemd[1]: systemd-
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://
--
-- The unit systemd-
Jun 01 20:14:25 snotra systemd[1]: Failed to start Network Service.
-- Subject: A start job for unit systemd-
-- Defined-By: systemd
-- Support: http://
--
-- A start job for unit systemd-
--
-- The job identifier is 784 and the job result is failed.
Jun 01 20:14:25 snotra systemd[1]: systemd-
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: http://
--
-- Automatic restarting of the unit systemd-
-- the configured Restart= setting for the unit.
Jun 01 20:14:25 snotra systemd[1]: Condition check resulted in OpenVSwitch configuration for cleanup being skipped.
-- Subject: A start job for unit netplan-
-- Defined-By: systemd
-- Support: http://
--
-- A start job for unit netplan-
--
-- The job identifier is 791.
Jun 01 20:14:25 snotra systemd[1]: Stopped Network Service.
-- Subject: A stop job for unit systemd-
-- Defined-By: systemd
-- Support: http://
--
-- A stop job for unit systemd-
--
-- The job identifier is 796 and the job result is done.
Jun 01 20:14:25 snotra systemd[1]: systemd-
Jun 01 20:14:25 snotra systemd[1]: systemd-
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://
--
-- The unit systemd-
Jun 01 20:14:25 snotra systemd[1]: Failed to start Network Service.
-- Subject: A start job for unit systemd-
-- Defined-By: systemd
-- Support: http://
=======
tags: | added: rls-ff-incoming |
Changed in netplan: | |
status: | New → Invalid |
Changed in systemd (Ubuntu Focal): | |
status: | Incomplete → Invalid |
since last apt update server lost network completely. Trying to restart give this line which I suspect most:
Assertion 'ifindex' failed at src/network/ networkd- link.c: 757, function link_get(). Aborting.
Server configuration uses bonding and bridging.
Which could mean, that problems appeared to create bond (was working fine starting 22.04 install).
netplan --debug generate netplan/ generate' ]
DEBUG:command generate: running ['/lib/
** (generate:12272): DEBUG: 15:03:42.857: starting new processing pass
** (generate:12272): DEBUG: 15:03:42.858: starting new processing pass
** (generate:12272): DEBUG: 15:03:42.858: We have some netdefs, pass them through a final round of validation
** (generate:12272): DEBUG: 15:03:42.858: br0: setting default backend to 1
** (generate:12272): DEBUG: 15:03:42.858: Configuration is valid
** (generate:12272): DEBUG: 15:03:42.858: enp6s0: setting default backend to 1
** (generate:12272): DEBUG: 15:03:42.858: Configuration is valid
** (generate:12272): DEBUG: 15:03:42.858: enp3s0: setting default backend to 1
** (generate:12272): DEBUG: 15:03:42.858: Configuration is valid
** (generate:12272): DEBUG: 15:03:42.858: enp66s0f1: setting default backend to 1
** (generate:12272): DEBUG: 15:03:42.858: Configuration is valid
** (generate:12272): DEBUG: 15:03:42.858: enp4s0: setting default backend to 1
** (generate:12272): DEBUG: 15:03:42.858: Configuration is valid
** (generate:12272): DEBUG: 15:03:42.858: enp66s0f0: setting default backend to 1
** (generate:12272): DEBUG: 15:03:42.858: Configuration is valid
** (generate:12272): DEBUG: 15:03:42.858: bond0: setting default backend to 1
** (generate:12272): DEBUG: 15:03:42.858: Configuration is valid
** (generate:12272): DEBUG: 15:03:42.858: Generating output files..
** (generate:12272): DEBUG: 15:03:42.858: openvswitch: definition enp3s0 is not for us (backend 1)
** (generate:12272): DEBUG: 15:03:42.858: NetworkManager: definition enp3s0 is not for us (backend 1)
** (generate:12272): DEBUG: 15:03:42.858: openvswitch: definition enp4s0 is not for us (backend 1)
** (generate:12272): DEBUG: 15:03:42.858: NetworkManager: definition enp4s0 is not for us (backend 1)
** (generate:12272): DEBUG: 15:03:42.858: openvswitch: definition enp6s0 is not for us (backend 1)
** (generate:12272): DEBUG: 15:03:42.858: NetworkManager: definition enp6s0 is not for us (backend 1)
** (generate:12272): DEBUG: 15:03:42.858: openvswitch: definition enp66s0f0 is not for us (backend 1)
** (generate:12272): DEBUG: 15:03:42.858: NetworkManager: definition enp66s0f0 is not for us (backend 1)
** (generate:12272): DEBUG: 15:03:42.858: openvswitch: definition enp66s0f1 is not for us (backend 1)
** (generate:12272): DEBUG: 15:03:42.858: NetworkManager: definition enp66s0f1 is not for us (backend 1)
** (generate:12272): DEBUG: 15:03:42.858: openvswitch: definition bond0 is not for us (backend 1)
** (generate:12272): DEBUG: 15:03:42.858: NetworkManager: definition bond0 is not for us (backend 1)
** (generate:12272): DEBUG: 15:03:42.858: openvswitch: definition br0 is not for us (backend 1)
** (generate:12272): DEBUG: 15:03:42.858: NetworkManager: definition br0 is not for us (backend 1)
(generate:12272): GLib-...