On Thu, 4 Jul 2019 at 07:03, Daniel Arena daniel.arena@smartplay.com wrote:
Hello,
I have a loadbalance runner for 2 interfaces setup through NetworkManager on fedora 30. I noticed in the system journal the teamd messages have been quite spammy with stats updates/rebalance information from teamd. See example log lines below. I tried looking at `man teamd.conf` but only found the debug_level setting, which is defaulted to 0. Is there some other way to turn these messages off? I tried adjusting NetworkManager's log levels also, but even after shutting off all logging, the messages from teamd still get through. Is this actually an issue for NetworkManager, maybe it should be capturing these log messages and filtering them with NetworkManager's log levels?
My teamd config looks like this:
{"runner": { "name": "loadbalance", "tx_hash": ["eth","ipv4", "ipv6"], "tx_balancer": {"name": "basic"} }, "ports":{"eno1": {}, "eno2": {}} }
Jul 03 15:41:57 server1 teamd_nm-team[32311]: stats update for port eno2: "3257841132330". Jul 03 15:41:57 server1 teamd_nm-team[32311]: stats update for port eno1: "6585330648". Jul 03 15:41:57 server1 teamd_nm-team[32311]: stats update for hash "21": "1242456011". Jul 03 15:41:57 server1 teamd_nm-team[32311]: stats update for hash "16": "1270449453". Jul 03 15:41:57 server1 teamd_nm-team[32311]: stats update for hash "9": "3761543798". Jul 03 15:41:57 server1 teamd_nm-team[32311]: stats update for hash "1": "626647946". Jul 03 15:41:57 server1 teamd_nm-team[32311]: Remapped hash "21" (delta 447647) to port eno2. Jul 03 15:41:57 server1 teamd_nm-team[32311]: Remapped hash "16" (delta 5301) to port eno1. Jul 03 15:41:57 server1 teamd_nm-team[32311]: Port eno2 rebalanced, delta: 447647 Jul 03 15:41:57 server1 teamd_nm-team[32311]: Port eno1 rebalanced, delta: 6205
These are debug-level logs, so it looks like something is enabling more logging than default.
If you run "nmcli general logging" do you see any other logging levels? The default is:
LEVEL DOMAINS INFO PLATFORM,<many other things>
But if you see output like:
LEVEL DOMAINS DEBUG TEAM
That would explain it within NM.
If you've previously had teamd debug logging enabled, you may need to put the team interface down and up to restart teamd to disable the debug logging. The debug logging is applied at daemon start with -g. I don't know if the logging level can be changed by Netlink message off the top of my head.
If you run "ps aux | egrep teamd" and you see the "-g" flag then you know teamd has been started with debug logging enabled.
Jamie