Networking does not work after upgrading libnetplan0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netplan.io (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I upgraded libnetplan0 on our AWS EC2 from 0.99-0ubuntu3~
I believe the issue is that libnetplan 0.101-0ubuntu3~
I suspected that the issue was with netplan by inspecting /var/log/syslog, which had these entries after upgrading libnetplan0 - some errors from systemd-networkd and then interface ens5 not coming up:
Feb 18 17:20:44 xxxx systemd-
Feb 18 17:20:44 xxxx systemd-
Feb 18 17:20:44 [omitted] cloud-init[460]: Cloud-init v. 20.4.1-
Feb 18 17:20:44 [omitted] cloud-init[460]: ci-info: +++++++
Feb 18 17:20:44 [omitted] cloud-init[460]: ci-info: +------
Feb 18 17:20:44 [omitted] cloud-init[460]: ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
Feb 18 17:20:44 [omitted] cloud-init[460]: ci-info: +------
Feb 18 17:20:44 [omitted] cloud-init[460]: ci-info: | ens5 | False | . | . | . | [omitted] |
Feb 18 17:20:44 [omitted] cloud-init[460]: ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . |
Feb 18 17:20:44 [omitted] cloud-init[460]: ci-info: | lo | True | ::1/128 | . | host | . |
Feb 18 17:20:44 [omitted] cloud-init[460]: ci-info: +------
Feb 18 17:20:44 [omitted] cloud-init[460]: ci-info: +++++++
Feb 18 17:20:44 [omitted] cloud-init[460]: ci-info: +------
Feb 18 17:20:44 [omitted] cloud-init[460]: ci-info: | Route | Destination | Gateway | Interface | Flags |
Feb 18 17:20:44 [omitted] cloud-init[460]: ci-info: +------
Feb 18 17:20:44 [omitted] cloud-init[460]: ci-info: +------
I was able to recover the EC2 instance by attaching the root EBS volume to another working EC2 instance and manually installing netplan.
To reproduce, upgrade libnetplan0 from 0.99-0ubuntu3~
I'm using apt repositories:
http://
http://
Description: Ubuntu 20.04.2 LTS
Release: 20.04
It appears there has been some ABI breakage, similar to LP: #1922898
Newer versions of netplan (starting with 0.104) use a strict version dependency to upgrade libnetplan and netplan.io at the same time, to avoid such issues. In addition to being much more careful wrt. ABI breaking changes!