wpasupplicant: unknown keys in no-mac-addr-change.conf

Bug #1826639 reported by Laurent Bonnaud on 2019-04-27
42
This bug affects 8 people
Affects Status Importance Assigned to Milestone
wpa (Debian)
New
Unknown
wpa (Ubuntu)
Low
Unassigned
Focal
Undecided
Unassigned

Bug Description

* Impact
wpa ships an invalid network-manager configuration that triggers warnings

* Test case
$ journalctl | grep no-mac-addr-change
should not have errors listed

* Regression potential
the change removes configurations which are not needed (since they set the value to the same one as the default) and in the wrong section, it shouldn't have any visible impact

--------------------

Hi,

NetworkManager warns that no-mac-addr-change.conf contains unknown configuration directives:

# journalctl | grep no-mac-addr-change
Apr 25 09:24:50 vougeot NetworkManager[573]: <info> [1556177090.0596] Read config: /etc/NetworkManager/NetworkManager.conf (lib: 10-dns-resolved.conf, 20-connectivity-ubuntu.conf, no-mac-addr-change.conf) (etc: 10-globally-managed-devices.conf, default-wifi-powersave-on.conf)
Apr 25 09:24:50 vougeot NetworkManager[573]: <warn> [1556177090.0596] config: unknown key 'wifi.cloned-mac-address' in section [device-mac-addr-change-wifi] of file '/usr/lib/NetworkManager/conf.d/no-mac-addr-change.conf'
Apr 25 09:24:50 vougeot NetworkManager[573]: <warn> [1556177090.0596] config: unknown key 'ethernet.cloned-mac-address' in section [device-mac-addr-change-wifi] of file '/usr/lib/NetworkManager/conf.d/no-mac-addr-change.conf'

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: wpasupplicant 2:2.6-21ubuntu3
Uname: Linux 5.0.9-050009-generic x86_64
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
CurrentDesktop: KDE
Date: Sat Apr 27 13:15:27 2019
SourcePackage: wpa
UpgradeStatus: No upgrade log present (probably fresh install)

Launchpad Janitor (janitor) wrote :

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

Changed in wpa (Ubuntu):
status: New → Confirmed
tags: added: eoan
Josh Freeno (freefreeno) wrote :

Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.5
Kernel Version: 5.4.0-21-generic
OS Type: 64-bit
Processors: 12 × Intel® Core™ i7-9750H CPU @ 2.60GHz
Memory: 15.4 GiB of RAM

Apr 02 17:53:55 buntu NetworkManager[737]: <info> [1585868035.8797] NetworkManager (version 1.22.10) is starting... (for the first time)
Apr 02 17:53:55 buntu NetworkManager[737]: <info> [1585868035.8798] Read config: /etc/NetworkManager/NetworkManager.conf (lib: 10-dns-resolved.conf, no-mac-addr-change.conf) (run: 10-globally-managed-devices.conf) (etc: default-wifi-po>
Apr 02 17:53:55 buntu NetworkManager[737]: <warn> [1585868035.8798] config: unknown key 'wifi.cloned-mac-address' in section [device-mac-addr-change-wifi] of file '/usr/lib/NetworkManager/conf.d/no-mac-addr-change.conf'
Apr 02 17:53:55 buntu NetworkManager[737]: <warn> [1585868035.8798] config: unknown key 'ethernet.cloned-mac-address' in section [device-mac-addr-change-wifi] of file '/usr/lib/NetworkManager/conf.d/no-mac-addr-change.conf'

tags: added: focal
Klaus Bielke (k-bielke) wrote :
Klaus Bielke (k-bielke) wrote :

Suggested workaround:

1. Copy file /lib/NetworkManager/conf.d/no-mac-addr-change.conf to dir /etc/NetworkManager/conf.d/

2. Edit file /etc/NetworkManager/conf.d/no-mac-addr-change.conf: Move 2 lines with cloned-mac-address to new chapter [connection-mac-addr-change-wifi], cf. attachment.

Klaus Bielke (k-bielke) wrote :

Sorry for bad handling. #4 is attachment belonging to #5

NetworkManager[681]: <warn> [1587639528.0703] config: unknown key 'wifi.cloned-mac-address' in section [device-mac-addr-change-wifi] of file '/usr/lib/NetworkM>
NetworkManager[681]: <warn> [1587639528.0703] config: unknown key 'ethernet.cloned-mac-address' in section [device-mac-addr-change-wifi] of file '/usr/lib/Netw>

Sebastien Bacher (seb128) wrote :
Changed in wpa (Ubuntu):
importance: Undecided → Low
status: Confirmed → Fix Committed
description: updated
Changed in wpa (Debian):
status: Unknown → New
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package wpa - 2:2.9-1ubuntu7

---------------
wpa (2:2.9-1ubuntu7) groovy; urgency=medium

  * debian/patches/git_roaming_interface.patch:
    - backport upstream fix 'dbus: Move roam metrics to the correct
      interface', should reduces the number of events (lp: #1879087)

 -- Sebastien Bacher <email address hidden> Wed, 20 May 2020 19:03:27 +0200

Changed in wpa (Ubuntu):
status: Fix Committed → Fix Released

Hello Laurent, or anyone else affected,

Accepted wpa into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/wpa/2:2.9-1ubuntu4.1 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-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. 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 wpa (Ubuntu Focal):
status: New → Fix Committed
tags: added: verification-needed verification-needed-focal

I installed this package:

  Package: wpasupplicant
  Version: 2:2.9-1ubuntu4.1

from focal-proposed and now this command:

  journalctl | grep cloned-mac-address

gives no output. Therefore, the error message is gone.

And of course Wi-Fi still works on my WPA2-protected home network.

Thanks a lot!

Sebastien Bacher (seb128) wrote :

Thanks for testing!

tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
Tom H (tomh0665) wrote :

Working for me too. Many thanks.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package wpa - 2:2.9-1ubuntu4.1

---------------
wpa (2:2.9-1ubuntu4.1) focal; urgency=medium

  * debian/patches/git_roaming_interface.patch:
    - backport upstream fix 'dbus: Move roam metrics to the correct
      interface', should reduces the number of events (lp: #1879087)
  * debian/NetworkManager/no-mac-addr-change.conf:
    - remove configuration options that aren't needed and were copied to
      the wrong section, fixes warnings in the log (lp: #1826639)
  * debian/patches/Check-for-FT-support-when-selecting-FT-suites.patch:
    - Backport upstream fix "Check for FT support when selecting FT suites"
      to fix drivers without FT support, thanks Kai-Heng Feng (lp: #1881549)

 -- Sebastien Bacher <email address hidden> Wed, 20 May 2020 13:01:53 +0200

Changed in wpa (Ubuntu Focal):
status: Fix Committed → Fix Released

The verification of the Stable Release Update for wpa 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.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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