Activity log for bug #1574483

Date Who What changed Old value New value Message
2016-04-25 07:35:31 Martin Pitt bug added bug
2016-04-25 07:35:36 Martin Pitt systemd (Ubuntu): assignee Martin Pitt (pitti)
2016-04-25 07:35:40 Martin Pitt systemd (Ubuntu): status New Triaged
2016-04-25 07:35:42 Martin Pitt systemd (Ubuntu): importance Undecided High
2016-04-25 07:35:48 Martin Pitt nominated for series Ubuntu Yakkety
2016-04-25 07:35:48 Martin Pitt bug task added systemd (Ubuntu Yakkety)
2016-04-25 07:35:48 Martin Pitt nominated for series Ubuntu Xenial
2016-04-25 07:35:48 Martin Pitt bug task added systemd (Ubuntu Xenial)
2016-04-25 07:35:53 Martin Pitt systemd (Ubuntu Xenial): status New Triaged
2016-04-25 07:35:55 Martin Pitt systemd (Ubuntu Xenial): importance Undecided High
2016-04-25 07:35:57 Martin Pitt systemd (Ubuntu Xenial): assignee Martin Pitt (pitti)
2016-04-25 07:36:10 Martin Pitt bug watch added http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812575
2016-04-25 07:36:10 Martin Pitt bug task added systemd (Debian)
2016-04-25 08:43:24 Martin Pitt systemd (Ubuntu Yakkety): status Triaged Fix Committed
2016-04-25 08:49:58 Martin Pitt description Originally from https://bugs.debian.org/812575: Our current /lib/systemd/network/90-mac-for-usb.link assigns MAC-based names to all USB devices. However, this is wrong and pointless for locally administered MAC addresses (with the second bit set to '1', see https://en.wikipedia.org/wiki/MAC_address#Address_details). The old 75-persistent-net generator had this rule: ENV{MATCHADDR}=="?[2367abef]:*", ENV{MATCHADDR}="" which ignored these devices. We need to adjust 90-mac-for-usb.link to do the same, and only apply to universally administered MAC addresses (at least until https://lists.ubuntu.com/archives/ubuntu-devel/2016-April/039302.html gets concluded). We should simply fall through the default policy of assigning location based names. The kernel assigned ones have no meaning whatsoever, so this at least provides name stability for use cases where you can rely on plugging the device into the same port. Originally from https://bugs.debian.org/812575: Our current /lib/systemd/network/90-mac-for-usb.link assigns MAC-based names to all USB devices. However, this is wrong and pointless for locally administered MAC addresses (with the second bit set to '1', see https://en.wikipedia.org/wiki/MAC_address#Address_details). The old 75-persistent-net generator had this rule:    ENV{MATCHADDR}=="?[2367abef]:*", ENV{MATCHADDR}="" which ignored these devices. We need to adjust 90-mac-for-usb.link to do the same, and only apply to universally administered MAC addresses (at least until https://lists.ubuntu.com/archives/ubuntu-devel/2016-April/039302.html gets concluded). We should simply fall through the default policy of assigning location based names. The kernel assigned ones have no meaning whatsoever, so this at least provides name stability for use cases where you can rely on plugging the device into the same port. SRU INFORMATION: ================ Fix: https://anonscm.debian.org/cgit/pkg-systemd/systemd.git/commit/?id=ec7e332 Test case: - Plug in an Android phone and enable USB tethering, or a different USB device which uses locally administered MAC addresses, i. e. they change after every reboot of the device. The first byte of the MAC address must have the second bit set, i. e. the hex number matches ?[2367abef]. - Check "ip a". With current xenial version the interface name is MAC based, like "enx12345678", and it changes after rebooting the device. - With this fix, the name is location based, like "enp0s1u2", and it remains stable as long as you use the same USB port. Regression potential: This only affects naming USB network devices. It should be tested that devices with universally administered MACs (i. e. stable, second bit is zero) keep MAC based names to avoid changing existing stable names. For devices with locally administered MACs (i. e. random ones) the name currently changes all the time anyway, so any /etc/network/interfaces or firewall script that refers to them is already broken and there cannot be further regressions there. Also, the updated policy is only applied after a computer reboot or replugging the device, the name does not change while the device is already plugged in.
2016-04-25 08:54:10 Martin Pitt systemd (Ubuntu Xenial): status Triaged In Progress
2016-04-25 09:17:36 Bug Watch Updater systemd (Debian): status Unknown Fix Committed
2016-04-26 10:08:17 Bug Watch Updater systemd (Debian): status Fix Committed Fix Released
2016-04-29 23:43:30 Launchpad Janitor systemd (Ubuntu Yakkety): status Fix Committed Fix Released
2016-05-05 17:31:48 Brian Murray systemd (Ubuntu Xenial): status In Progress Fix Committed
2016-05-05 17:31:51 Brian Murray bug added subscriber Ubuntu Stable Release Updates Team
2016-05-05 17:31:56 Brian Murray bug added subscriber SRU Verification
2016-05-05 17:32:02 Brian Murray tags verification-needed
2016-05-09 08:43:01 Martin Pitt tags verification-needed verification-done
2016-05-12 01:23:41 Launchpad Janitor systemd (Ubuntu Xenial): status Fix Committed Fix Released
2016-05-12 01:24:00 Chris J Arges removed subscriber Ubuntu Stable Release Updates Team