Bug 31700 - teamd.conf file missing in /etc/dbus-1/system.d/
Summary: teamd.conf file missing in /etc/dbus-1/system.d/
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal minor
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA8-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2023-03-19 12:08 CET by Riccardo Poleggi
Modified: 2023-03-24 06:57 CET (History)
5 users (show)

See Also:
Source RPM: libteam-1.31-1.mga8.src.rpm, networkmanager-1.26.6-1.1.mga8.src.rpm
CVE:
Status comment:


Attachments
teamd.conf file from centOS (409 bytes, text/plain)
2023-03-21 16:02 CET, Riccardo Poleggi
Details

Description Riccardo Poleggi 2023-03-19 12:08:04 CET
Description of problem:
teamd.conf seams be missing in libteam


Version-Release number of selected component (if applicable):
1.31

How reproducible:
Try to start a network team with nmcli. It gives an error a refuses to bring up team

Steps to Reproduce:
1. Install libteam-tools and dependencies (install nmcli);
2. Configure network team with nmcli (e.g nmcli con add type team con-name team0 ; nmcli con add type team-slave ifname $IFNAME master team0 )
3. Try to start the team (e.g. nmcli connection up team-slave-$IFNAME ; nmcli con up team0 )
4. You should have some kind of error saying IF team0 is still down.

Fixed by copying a teamd.conf file in /etc/dbus-1/system.d/ from el8 teamd-1.31-2
It seams that now nmcli uses DBUS e needs some kind of description.
Don't know if already fixed in cauldron.
BTW: the man file of teamd.conf does exist in libteam-tools.
Thank you in advance.

Kernel 6.1.15-desktop
GLib 2.66.8
Comment 1 Lewis Smith 2023-03-21 10:10:57 CET
Thank you for the report.
Looking on Cauldron (Mageia 9), libteam-tools does include team.conf:
 $ urpmf teamd.conf
 libteam-tools:/usr/share/man/man5/teamd.conf.5.xz
I will check this on Mageia 8.

"Fixed by copying a teamd.conf file in /etc/dbus-1/system.d/ from
 'el8 teamd-1.31-2' "
Did not understand the last 'from' bit.

CC: (none) => lewyssmith

Comment 2 Lewis Smith 2023-03-21 10:59:06 CET
My previous comment is *wrong*. I overlooked the '/man/man5/' bits!
So even Cauldron does not offer 'teamd.conf' itself.
Mageia 8:
 $ urpmf teamd.conf
 libteam-tools:/usr/share/man/man5/teamd.conf.5.xz
Just the man page.

But it may be that the file itself should be generated by the commands you cite:
 nmcli con add type team con-name team0
 nmcli con add type team-slave ifname $IFNAME master team0
which would be a NetworkManager problem.

Please do explain 'el8 teamd-1.31-2'.

Version: 8 => Cauldron
Source RPM: libteam-1.31-1.mga8.src.rpm => libteam-1.31-1.mga8.src.rpm, networkmanager-1.26.6-1.1.mga8.src.rpm
Whiteboard: (none) => MGA8TOO

Comment 3 Riccardo Poleggi 2023-03-21 16:02:13 CET
Created attachment 13747 [details]
teamd.conf file from centOS
Comment 4 Riccardo Poleggi 2023-03-21 16:05:21 CET
Hi.
I uploaded the teamd.conf file.

I downloaded it from rpm find (CentOS):
https://centos.pkgs.org/8/centos-baseos-aarch64/teamd-1.31-2.el8.aarch64.rpm.html

I don't think nmcli commands can create it.

Sorry I didn't make myself clear.

Once I copied teamd.conf in /etc/dbus-1/system.d/ the team started working...
Thank you.
Comment 5 Riccardo Poleggi 2023-03-21 16:11:56 CET
Actually I downloaded the x86_64 version.... ;-)
Comment 6 David GEIGER 2023-03-21 18:15:26 CET
Should be fixed in next libteam-1.31-5.mga9 update!

CC: (none) => geiger.david68210

Comment 7 Riccardo Poleggi 2023-03-21 19:16:58 CET
WOW! Thanks a lot!
Comment 8 David GEIGER 2023-03-21 20:45:04 CET
Assigning to QA,


Packages in 8/Core/Updates_testing:
======================
libteamdctl0-1.31-1.1.mga8
lib64teamdctl0-1.31-1.1.mga8
libteam5-1.31-1.1.mga8
lib64team5-1.31-1.1.mga8
libteam-devel-1.31-1.1.mga8
lib64team-devel-1.31-1.1.mga8
libteam-tools-1.31-1.1.mga8
python3-team-1.31-1.1.mga8

From SRPMS:
libteam-1.31-1.1.mga8.src.rpm

Assignee: bugsquad => qa-bugs

Comment 9 Len Lawrence 2023-03-22 10:18:23 CET
Mageia8, x86_64
Taking a look at this.

Installed the core release files and copied the attached config file to /etc/dbus-1/system.d/

$ nmcli connection up team-slave-eno1 ; nmcli con up team0 
Error: unknown connection 'team-slave-eno1'.
Connection successfully activated (master waiting for slaves) (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/27)

It is not going to work even after updating because it does not recognise my network adapter.  I tried setting the environment variable IFNAME and used that but that did not work either.  ???

CC: (none) => tarazed25

Comment 10 Len Lawrence 2023-03-22 16:09:25 CET
Removed the teamd.conf file and updated to
lib64teamdctl0-1.31-1.1.mga8
lib64team5-1.31-1.1.mga8
lib64team-devel-1.31-1.1.mga8
libteam-tools-1.31-1.1.mga8
python3-team-1.31-1.1.mga8
$ cd /etc/dbus-1/system.d/
$ ls -l teamd.conf
-rw-r--r-- 1 root root 409 Jan  9  2020 teamd.conf

$ nmcli con add type team con-name team0$ nmcli con add type team con-name team0
Warning: There are 2 other connections with the name 'team0'. Reference the connection by its uuid 'e8d90b3e-af0f-4b1a-8f9e-dad2278c512f'
Connection 'team0' (e8d90b3e-af0f-4b1a-8f9e-dad2278c512f) successfully added.
$ nmcli con add type team-slave ifname $IFNAME master team0
$ nmcli con up team0
Connection successfully activated (master waiting for slaves) (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/31)

At least the config file is being supplied now.  Looks like the decks needed to be cleared before starting this test.

This looks OK as far as it goes.

Whiteboard: MGA8TOO => MGA8TOO MGA8-64-OK

Comment 11 Len Lawrence 2023-03-22 16:16:20 CET
Note that the `nmcli con add type team con-name team0` command was run once.  The doubling in comment 10 is a typo.  And maybe team1 would have been a better idea.
Comment 12 Riccardo Poleggi 2023-03-22 19:27:46 CET
(In reply to Len Lawrence from comment #9)
> Mageia8, x86_64
> Taking a look at this.
> 
> Installed the core release files and copied the attached config file to
> /etc/dbus-1/system.d/
> 
> $ nmcli connection up team-slave-eno1 ; nmcli con up team0 
> Error: unknown connection 'team-slave-eno1'.
> Connection successfully activated (master waiting for slaves) (D-Bus active
> path: /org/freedesktop/NetworkManager/ActiveConnection/27)
> 
> It is not going to work even after updating because it does not recognise my
> network adapter.  I tried setting the environment variable IFNAME and used
> that but that did not work either.  ???

My two bits....
Given eth0 and eth1 the names of the "real" eth cards and "team0" the name of the team, the following commands worked for me:

[root@ ~]# nmcli con show (just to be sure of the names....)
[root@ ~]# nmcli con down eth0
[root@ ~]# nmcli con down eth1

[root@ ~]# nmcli con add type team con-name team0 [ config '{"device": "team0", "runner": {"name": "loadbalance"}, "ports": {"team-slave-eth0": {}, "team-slave-eth1": {}}}' ]  (the part after "team0" is optional)

[root@ ~]# nmcli con add type team-slave ifname team-slave-eth0 master team0

[root@ ~]# nmcli con add type team-slave ifname team-slave-eth1 master team0

(this part is also optional. I modified the ifcfg file by hand)
[root@ ~]# nmcli con mod team0 ipv4.method manual
[root@ ~]# nmcli con mod team0 ipv4.addresses xxx.xxx.xxx.xxx/24
[root@ ~]# nmcli con mod team0 ipv4.gateway xxx.xxx.xxx.xxx

(to bring the team up, you should "up" the slaves first)
[root@ ~]# nmcli con up team-slave-eth0
[root@ ~]# nmcli con up team-slave-eth1
[root@ ~]# nmcli con up team0

Thank you again!
Comment 13 Thomas Andrews 2023-03-22 19:45:15 CET
(In reply to David GEIGER from comment #6)
> Should be fixed in next libteam-1.31-5.mga9 update!

Does that mean that this should now be relabeled as a Mageia 8 bug?

CC: (none) => andrewsfarm

Comment 14 Lewis Smith 2023-03-22 21:57:22 CET
Now that Cauldron has been fixed, yes. I have just done that. It was raised for M8, but since I found that it applied also to M9, I changed it to Cauldron + M8. Now it is M8 only.

Just to confirm M9 is fixed (compare comment 2):
 $ urpmf teamd.conf
 libteam-tools:/etc/dbus-1/system.d/teamd.conf      ***
 libteam-tools:/usr/share/man/man5/teamd.conf.5.xz
Thanks to DavidG for doing this.

Whiteboard: MGA8TOO MGA8-64-OK => MGA8-64-OK
Version: Cauldron => 8
CC: lewyssmith => (none)

Comment 15 Thomas Andrews 2023-03-22 22:55:10 CET
I thought that was probably the case, but it's better to ask and be sure.

Validating.

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Dave Hodgins 2023-03-24 01:03:23 CET

CC: (none) => davidwhodgins
Keywords: (none) => advisory

Comment 16 Mageia Robot 2023-03-24 06:57:15 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2023-0031.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.