eth0 interface name change fails on Pi 3/3+

Bug #1922266 reported by Dave Jones
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-meta (Ubuntu)
Fix Released
Undecided
Unassigned
Hirsute
Fix Released
Undecided
Unassigned
Impish
Fix Released
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned
ubuntu-settings (Ubuntu)
Fix Released
Undecided
Unassigned
Hirsute
Fix Released
Undecided
Unassigned
Impish
Won't Fix
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned

Bug Description

The netplan configuration in ubuntu-raspi-settings (and more widely, the network-config in the gadget used on the server images) fails to rename the internal ethernet interface on Pi 3B and 3B+ models from "en<mac-address>" to "eth0". In the netplan case this is because the driver matching logic doesn't handle space-separate driver matches (although the underlying networkd system does); in the cloud-init case it simply refuses to rename interfaces that aren't matched by full MAC address.

The intended fix is to stop attempting to do this via netplan or cloud-init, and simply handle this via a networkd .link file in ubuntu-raspi-settings. This will require an update to the relevant seeds as this package is currently only pulled into ubuntu-desktop-raspi, not ubuntu-server-raspi.

Tags: patch
Changed in ubuntu-meta (Ubuntu):
milestone: none → ubuntu-21.04
Revision history for this message
Dave Jones (waveform) wrote :
Changed in ubuntu-meta (Ubuntu):
status: New → Fix Released
Changed in ubuntu-settings (Ubuntu):
milestone: none → ubuntu-21.04
Revision history for this message
Brian Murray (brian-murray) wrote :

Is this ubuntu-settings task still necessary or should it be closed?

Revision history for this message
Dave Jones (waveform) wrote :

It's still necessary; I've got the changes ready but was holding off as there's possibly another fix that may need to go into this package too (LP: #1900904). But it's getting close to release so I'll push it anyway and deal with the other ticket separately.

Revision history for this message
Dave Jones (waveform) wrote :

Attaching debdiff; test builds are available from the following PPA:

https://launchpad.net/~waveform/+archive/ubuntu/ubuntu-settings/+packages

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-settings - 21.04.3

---------------
ubuntu-settings (21.04.3) hirsute; urgency=medium

  [ William 'jawn-smith' Wilson ]
  * Adding 99-gpio.rules udev rules for Raspberry Pi GPIO functionality
    (LP: #1923672)

  [ Dave Jones ]
  * Replace netplan eth0 renaming rules for raspi with networkd link unit
    (LP: #1922266)

 -- Dave Jones <email address hidden> Tue, 13 Apr 2021 23:02:42 +0100

Changed in ubuntu-settings (Ubuntu Hirsute):
status: New → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

We have also pushed out a new livecd-rootfs that manually adds ubuntu-raspi-settings as a dependency of the server images (temporary before we switch to using seeds).

Revision history for this message
Dave Jones (waveform) wrote :

Targetting to Impish and Jammy as apparently ubuntu-settings lost the 21.04.3 changes in 21.10.1 (which was based on 21.04.2).

Changed in ubuntu-settings (Ubuntu Jammy):
status: Fix Released → New
Changed in ubuntu-meta (Ubuntu Impish):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-settings - 22.04.1

---------------
ubuntu-settings (22.04.1) jammy; urgency=medium

  * Reinstate changes from 21.04.3:
    - Adding 99-gpio.rules udev rules for Raspberry Pi GPIO functionality
      (LP: #1923672)
    - Replace netplan eth0 renaming rules for raspi with networkd link unit
      (LP: #1922266)
  * Override initramfs compression to lz4 to prevent OOM on 512MB platforms,
    and add a dependency on lz4 to d/control (LP: #1950214)
  * d/control: Correct spelling of raspberry

 -- Dave Jones <email address hidden> Wed, 15 Dec 2021 15:29:10 +0100

Changed in ubuntu-settings (Ubuntu Jammy):
status: New → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote :

Ubuntu 21.10 (Impish Indri) has reached end of life, so this bug will not be fixed for that specific release.

Changed in ubuntu-settings (Ubuntu Impish):
status: New → Won't Fix
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.