Bug 1806549

Summary: Cannot save bond option `miimon=100` in to connection profile.
Product: Red Hat Enterprise Linux 8 Reporter: Gris Ge <fge>
Component: NetworkManagerAssignee: Antonio Cardace <acardace>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.2CC: acardace, atragler, bgalvani, lrintel, rkhan, sukulkar, thaller, till, vbenes
Target Milestone: rc   
Target Release: 8.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: NetworkManager-1.25.1-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 01:49:00 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:
Bug Depends On:    
Bug Blocks: 1738136    

Description Gris Ge 2020-02-24 14:00:25 UTC
Description of problem:

Cannot save `miimon=100` into connection profile.

Version-Release number of selected component (if applicable):
NetworkManager-1.23.2-25103.720e76f4b9.el8.x86_64

How reproducible:
100%

Steps to Reproduce:

sudo nmcli c del bond0
sudo nmcli c add type bond ifname bond0 \
    connection.id bond0 \
    ipv4.method disabled \
    ipv6.method disabled

echo "
set bond.options miimon=100
print
save
quit
" | sudo nmcli c edit bond0

echo
sudo nmcli c show bond0|grep bond

Actual results:

miimon is not listed in bond options.

Expected results:

miimon is listed in bond options.


Additional info:

If I set miimon=101, it works.
And this works well when setting `arp_interval=0` which is also the default value.

Comment 1 Gris Ge 2020-02-24 14:14:52 UTC
A correction.

The `arp_interval=0` does not works.

Comment 2 Gris Ge 2020-02-24 14:16:29 UTC
And also,

Also cannot set 'arp_interval 0' with 'miimon 100'.

Comment 3 Antonio Cardace 2020-02-24 14:18:53 UTC
MR https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/424 should fix this issue as well, can you test with it?

Comment 4 Antonio Cardace 2020-03-06 11:03:58 UTC
Fixed upstream with commit:50da785be1.

Comment 5 Gris Ge 2020-03-11 03:39:16 UTC
Hi Antonio,

I tried the `NetworkManager-1.23.2-25162.e33b200880.el8.x86_64` which still fails on above reproducer.

Regarding the wired/ethernet setting.

If I create wired/ethernet settting when setting miimon, it works well:

```bash
echo "
set 802-3-ethernet.mtu 1600
set bond.options miimon=100
print
save
quit
" | sudo nmcli c edit bond0

sudo nmcli c show bond0|grep bond
```

Another strange stuff, when I create bond profile with ethernet setting, the `miimon=100` still got ignored.

Comment 6 Antonio Cardace 2020-03-13 16:53:58 UTC
You're right it wasn't actually fixed, it should be now with MR https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/438.

Please test using 'nmcli c mod bond0 +bond.options miimon=100' instead of 'nmcli c edit', the latter seems to not work for some reason.

I also tested this using a small program with libnm and it works so I guess 'nmcli c edit' has another bug.

Comment 7 Antonio Cardace 2020-03-18 08:54:33 UTC
Errata corrige: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/438 fixes the bug, 'nmcli c edit' has no bug at all.

Comment 8 Thomas Haller 2020-04-07 15:43:00 UTC
missed rhel-8.2

Comment 14 errata-xmlrpc 2020-11-04 01:49:00 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-2020:4499