Upgrades to 22.04 can cause netplan failures on Raspi

Bug #1970761 reported by William Wilson
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Fix Released
High
Unassigned
Jammy
Fix Released
High
Unassigned

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.

Related branches

tags: added: rls-jj-incoming
Changed in ubuntu-release-upgrader (Ubuntu Jammy):
importance: Undecided → High
Changed in ubuntu-release-upgrader (Ubuntu):
importance: Undecided → High
Changed in ubuntu-release-upgrader (Ubuntu):
importance: High → Medium
importance: Medium → High
tags: added: fr-2318
tags: removed: rls-jj-incoming
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-release-upgrader (Ubuntu Jammy):
status: New → Confirmed
Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Confirmed
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello William, or anyone else affected,

Accepted ubuntu-release-upgrader into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ubuntu-release-upgrader/1:22.04.11 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in ubuntu-release-upgrader (Ubuntu Jammy):
status: Confirmed → Fix Committed
tags: added: verification-needed verification-needed-jammy
Revision history for this message
William Wilson (jawn-smith) wrote :

The verification passed for jammy:

ubuntu@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@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@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@ubuntu:~$ cat /etc/netplan/50-cloud-init.yaml
network:
  ethernets:
    eth0:
      dhcp4: true
      optional: true
  version: 2
ubuntu@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: added: verification-done verification-done-jammy
removed: verification-needed verification-needed-jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-release-upgrader - 1:22.04.11

---------------
ubuntu-release-upgrader (1:22.04.11) jammy; urgency=medium

  [ William 'jawn-smith' Wilson ]
  * DistUpgrade/DistUpgradeQuirks.py: Remove section of netplan
    config that is installed by default on Raspberry Pi and
    causes netplan failures after upgrade to jammy (LP: #1970761)

  [ Nick Rosbrook ]
  * DistUpgrade: Gracefully handle missing dbus module (LP: #1965568).
  * DistUpgrade: Do not show lock screen error if XDG_SESSION_TYPE is
    tty (LP: #1973785).
  * DistUpgrade: Add deb2snap entry for snapd-desktop-integration (LP: #1975747).
  * Run pre-build.sh: updating mirrors, demotions, and translations.

 -- Nick Rosbrook <email address hidden> Thu, 26 May 2022 10:49:26 -0400

Changed in ubuntu-release-upgrader (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for ubuntu-release-upgrader has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Changed in ubuntu-release-upgrader (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.