Bug 2102313

Summary: [RFE] support enabling debug logging for NetworkManager via kernel command line
Product: Red Hat Enterprise Linux 9 Reporter: Thomas Haller <thaller>
Component: NetworkManagerAssignee: Thomas Haller <thaller>
Status: CLOSED ERRATA QA Contact: Filip Pokryvka <fpokryvk>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.1CC: acabral, arawal, bgalvani, fpokryvk, jkreger, lrintel, rkhan, sukulkar, till, vbenes, vbubela
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: NetworkManager-1.39.11-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 10:50:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Thomas Haller 2022-06-29 16:14:45 UTC
btw, when I say "debug logging", I mean "level=TRACE". No need to omit certain levels when we are debugging. Just turn on all we have.


Usually we can enable debug logging via NetworkManager.conf or at runtime with `nmcli general logging`.

When running in initrd via dracut, we also honor "rd.debug".


I think that still can be limiting. For example, you might build your own ramdisk without dracut, so rd.debug is not going to work. And a this point, it might be cumbersome to rebuild the ramdisk to enable debug logging.

Support a new kernel command line "nm.debug" which is interpreted by NetworkManager and which would set level=TRACE && domains=ALL (note that this "ALL" would exclude "VPN_PLUGIN" domain at higher level, as intended -- see `man NetworkManager.conf`).

Comment 9 errata-xmlrpc 2022-11-15 10:50:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (NetworkManager bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8265