Bug 30138 - Network Metric setting on interface configuration gui not working
Summary: Network Metric setting on interface configuration gui not working
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Mageia tools maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-08 16:52 CET by Mike Burgener
Modified: 2023-06-16 07:26 CEST (History)
2 users (show)

See Also:
Source RPM: drakconf-13.27-1.mga8.src.rpm
CVE:
Status comment:


Attachments
routing table after if settings (21.17 KB, image/png)
2022-03-09 08:37 CET, Mike Burgener
Details
draknet_usb25gbit adapter (41.10 KB, image/png)
2022-03-09 08:38 CET, Mike Burgener
Details
draknet_usb25gbit_2 (27.61 KB, image/png)
2022-03-09 08:39 CET, Mike Burgener
Details
draknet_pci (43.59 KB, image/png)
2022-03-09 08:39 CET, Mike Burgener
Details
draknet_pci_2 (70.15 KB, image/png)
2022-03-09 08:40 CET, Mike Burgener
Details
Metric entries in etc interface config after draknet (28.57 KB, image/png)
2022-03-09 08:41 CET, Mike Burgener
Details

Description Mike Burgener 2022-03-08 16:52:36 CET
My setup consists of the following 2 network adapters:
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
           Device-2: Realtek USB 10/100/1G/2.5G LAN type: USB driver: r8152

both cards work as expected, however the networkcard settings about the metrics are not applied if they are set in mageia's drakconf. If setting the metric values by hand using ifmetric everything works as expected.
Cyril Levet 2022-03-08 17:06:15 CET

CC: (none) => cyril.levet0780

Comment 1 Lewis Smith 2022-03-08 20:26:49 CET
Thank you for the report.
I reduced the severity because of the workaround:
> If setting the metric values by hand using ifmetric
> everything works as expected

To clarify the point where things are not taken into account, could you please attach a screenshot of the relevant "networkcard settings about the metrics".

Also, do you know whether if you do just one device at a time in MCC, does that get applied or not? This is to ascertain whether the problem is due to doing two devices at a time; or perhaps whether the mere presence of two devices is the reason.

Severity: major => normal
CC: (none) => lewyssmith
Source RPM: (none) => drakconf-13.27-1.mga8.src.rpm

Comment 2 Mike Burgener 2022-03-09 08:21:00 CET
The attached screens should make it clear:
Comment 3 Cyril Levet 2022-03-09 08:34:33 CET
I have only one device and have the same problem.
Comment 4 Mike Burgener 2022-03-09 08:37:04 CET
Created attachment 13162 [details]
routing table after if settings
Comment 5 Mike Burgener 2022-03-09 08:38:55 CET
Created attachment 13163 [details]
draknet_usb25gbit adapter
Comment 6 Mike Burgener 2022-03-09 08:39:20 CET
Created attachment 13164 [details]
draknet_usb25gbit_2
Comment 7 Mike Burgener 2022-03-09 08:39:44 CET
Created attachment 13165 [details]
draknet_pci
Comment 8 Mike Burgener 2022-03-09 08:40:02 CET
Created attachment 13166 [details]
draknet_pci_2
Comment 9 Mike Burgener 2022-03-09 08:41:47 CET
Created attachment 13167 [details]
Metric entries in etc interface config after draknet
Comment 10 Mike Burgener 2022-03-09 08:42:38 CET
when i set metric and a route using cmdline manually everything works as expected, used commands:
sudo ifmetric enp34s0 10
sudo ifmetric enp3s0f0u2 5
sudo route add -net 192.168.170.161 netmask 255.255.255.255 metric 0 dev enp34s0

result:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.170.2   0.0.0.0         UG    5      0        0 enp3s0f0u2
169.254.0.0     0.0.0.0         255.255.0.0     U     5      0        0 enp3s0f0u2
169.254.0.0     0.0.0.0         255.255.0.0     U     10     0        0 enp34s0
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
192.168.170.0   0.0.0.0         255.255.255.0   U     5      0        0 enp3s0f0u2
192.168.170.0   0.0.0.0         255.255.255.0   U     10     0        0 enp34s0
192.168.170.161 0.0.0.0         255.255.255.255 UH    0      0        0 enp34s0
Comment 11 Lewis Smith 2022-03-09 20:45:42 CET
Thank you for all the attachments; I had not anticipated so many...
They certainly make the problem clear.

(In reply to Cyril Levet from comment #3)
> I have only one device and have the same problem.
This is worth noting; thank you.

Assigning to MageiaTools, upping the priority.

CC: lewyssmith => (none)
Priority: Normal => High
Assignee: bugsquad => mageiatools

Comment 12 Mike Burgener 2022-03-09 22:37:49 CET
(In reply to Lewis Smith from comment #11)
> Thank you for all the attachments; I had not anticipated so many...
> They certainly make the problem clear.

lol, after 20+ years Linux and also Mandrake/Mandriva/Mageia and after being a Linux System Engineer for the same period you know how to "fill" bugreports :D :D
> 
> (In reply to Cyril Levet from comment #3)
> > I have only one device and have the same problem.
> This is worth noting; thank you.
Lol first i was reading "this is woth nothing" :D my bad :D have a good night.
> 
> Assigning to MageiaTools, upping the priority.

Severity: normal => major
Priority: High => Normal

Comment 13 Mike Burgener 2022-03-10 07:36:34 CET
fixing prio and severity i changed by accident

Priority: Normal => High
Severity: major => normal

Comment 14 Mike Burgener 2022-04-26 08:15:30 CEST
Shouldn't this get some more attention? I mean it's a basic network feature that's just missing. For me of course i fixed it temporary with a .sh script i run when needed.

Btw the bug should at least get changed in to confirmed, as Cyril Levet confirmed it already

regards

Mike
Comment 15 Mike Burgener 2022-12-31 22:36:35 CET
i verified this on mga 9 and it is also the case there.

Version: 8 => Cauldron

Mike Burgener 2022-12-31 22:36:50 CET

Severity: normal => major

Comment 16 Mike Burgener 2023-01-01 10:07:20 CET
I am trying to get a better understanding of the issue and to begin to work on a fix, can somebody explain me, what exactly does read and intepret those files in /etc/sysconfig/network-scripts/... ? is it systemd ?
Comment 17 Mike Burgener 2023-01-01 11:24:04 CET
manually doing ip route replace default metric 50 dev $devicename works in my test-setup maybe somebody can confirm?
Comment 18 Dave Hodgins 2023-01-01 18:38:52 CET
systemd-sysv-generator runs the scripts in /etc/init.d/*.
/etc/init.d/network runs scripts from /etc/sysconfig/network-scripts for
each file in /etc/sysconfig/network-scripts/ifcfg-*

CC: (none) => davidwhodgins

Comment 19 Mike Burgener 2023-01-05 13:17:35 CET
I checked the scripts and was unable to find a possible error so far.
Comment 20 Mike Burgener 2023-03-08 15:40:52 CET
tested this on mga9 beta, still the same issue
Mike Burgener 2023-03-08 15:41:25 CET

Priority: High => release_blocker

Comment 21 Cyril Levet 2023-06-07 19:38:36 CEST
I'm not sure, it should be considered as a release blocker. We have to add it in Mageia tools TODO list, and it could be fixed during Mageia 9 life cycle.
Comment 22 Dave Hodgins 2023-06-07 20:24:33 CEST
The network tools are on the iso images, so they can not be updated once
released.
Comment 23 Cyril Levet 2023-06-07 22:35:20 CEST
You mean on the installer. Because there are plenty of software on the ISO images.
What can we do ? Network metrics code has not been checking for a long time. So there is a few chance that someone can fix quickly the bug. Do we decrease bug severity ? 
Because, there is a workaround using command line and Network Metric is not mandatory for installation and will not crash other network tools.
Comment 24 Dave Hodgins 2023-06-07 23:03:52 CEST
Simply having a package on the classical iso images doesn't make it a blocker
unless it's actually used by the installer which this one is. Bugs on the live
iso images can be considered to be a blocker depending on the severity of the
bug and whether or not there is a workaround, as they are intended to be usable
even without any network access.

This bug affects using the installer itself, so is automatically a release
blocker. As it's not a new bug, we may choose to downgrade the priority and
release the iso images anyway, especially since most people do not have
multiple network interfaces.

We may choose to release the RC iso images, but still have this as a blocker
for the final iso images.

The decision to downgrade the priority will be up to the council when we
are ready to discuss releasing the final iso images.
Comment 25 Thomas Backlund 2023-06-11 00:50:26 CEST
nothing release critical about it, it does not prevent installing mga9 (or prevnt distro upgrade)

Priority: release_blocker => Normal

Comment 26 Mike Burgener 2023-06-16 07:26:56 CEST
I agree with it, however this should really be looked at after release, as it is a basic-networking function.

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