[Bug 1970761] Re: Upgrades to 22.04 can cause netplan failures on Raspi
William Wilson
1970761 at bugs.launchpad.net
Mon Jun 6 18:03:29 UTC 2022
The verification passed for jammy:
ubuntu at ubuntu:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 21.10"
NAME="Ubuntu"
VERSION_ID="21.10"
VERSION="21.10 (Impish Indri)"
VERSION_CODENAME=impish
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=impish
ubuntu at ubuntu:~$ cat /etc/netplan/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/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
ethernets:
eth0:
dhcp4: true
optional: true
match:
driver: bcmgenet smsc95xx lan78xx
set-name: eth0
version: 2
---------- DID THE UPGRADE WITH PROPOSED ----------
ubuntu at ubuntu:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
ubuntu at ubuntu:~$ cat /etc/netplan/50-cloud-init.yaml
network:
ethernets:
eth0:
dhcp4: true
optional: true
version: 2
ubuntu at ubuntu:~$ ping -c3 -I eth0 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 192.168.4.137 eth0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=116 time=5.72 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=116 time=6.98 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=116 time=5.08 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 5.078/5.926/6.980/0.789 ms
** Tags removed: verification-needed verification-needed-jammy
** Tags added: verification-done verification-done-jammy
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1970761
Title:
Upgrades to 22.04 can cause netplan failures on Raspi
Status in ubuntu-release-upgrader package in Ubuntu:
Confirmed
Status in ubuntu-release-upgrader source package in Jammy:
Fix Committed
Bug description:
[Impact]
* In Jammy, Netplan commands fail if the following
lines are present in the netplan config file:
```
match:
driver: bcmgenet smsc95xx lan78xx
```
* Those lines are present in the default netplan config
for Raspberry Pis in focal, hirsute, and impish
* As a result, upgrades to jammy from older releases
lead to netplan failures and broken networking
[Test Plan]
* Install impish on a Raspberry Pi
* Upgrade to jammy using `do-release-upgrade -d`
* Run `sudo netplan apply` and observe the command
fails and the networking does not work
* Reinstall impish on the Raspberry Pi
* Upgrade to jammy using `do-release upgrade -d` with
the proposed pocket enabled
* Run `sudo netplan apply` and observe that the
command succeeds and networking is functional
[Regression Potential]
* Since ubuntu-release-upgrader is modifying
netplan's config, it is possible that custom
configs could be impacted where not intended.
[Original Description]
The default netplan yaml configuration file on Raspi for older releases is
```
network:
ethernets:
eth0:
dhcp4: true
match:
driver: bcmgenet smsc95xx lan78xx
optional: true
set-name: eth0
version: 2
```
In the version of netplan in jammy, the match section is no longer
needed and causes netplan failures due to incompatible formatting. A
quirk should be made to remove the match section.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1970761/+subscriptions
More information about the foundations-bugs
mailing list