Bug 1810506
Summary: | NM_ACTIVE_CONNECTION_STATE_REASON_DEVICE_DISCONNECTED on bond slave when switch bond mode | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Gris Ge <fge> | ||||||||
Component: | NetworkManager | Assignee: | Beniamino Galvani <bgalvani> | ||||||||
Status: | CLOSED NOTABUG | QA Contact: | Desktop QE <desktop-qa-list> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | 8.2 | CC: | acardace, atragler, bgalvani, dholler, lrintel, pasik, rkhan, sukulkar, thaller, till | ||||||||
Target Milestone: | rc | ||||||||||
Target Release: | 8.2 | ||||||||||
Hardware: | x86_64 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2020-03-09 09:55:27 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, 1809330 | ||||||||||
Attachments: |
|
Description
Gris Ge
2020-03-05 12:01:53 UTC
Created attachment 1667715 [details]
bond_mode_1.yml
Created attachment 1667716 [details]
bond_mode_5.yml
Created attachment 1667717 [details]
System logs with NM trace enabled (NetworkManager-1.22.9-24733.7a004ef0bb.el8.x86_64)
Please note that this issue is the reason for bug 1810550 on RHV. In the second invocation nmstate creates two slaves connections with the same cloned-mac-address. This is not allowed for bonds using modes ALB or TLB and so the enslavement of the second interface fails with: platform-linux: do-change-link[7]: failure changing link: failure 14 (Bad address) A simple reproducer using iproute2: # addr=00:99:88:77:66:55 # ip link add bond99 type bond mode 5 # ip link set eth0 addr $addr # ip link set eth1 addr $addr # ip link set eth0 master bond99 # ip link set eth1 master bond99 RTNETLINK answers: Bad address Kernel complains with: bond99: (slave eth1): the slave hw address is in use by the bond; couldn't find a slave with a free hw address to give it (this should not have happened) Gris, do you know why nmstate is setting duplicate cloned-mac-addresses on the slaves? (In reply to Beniamino Galvani from comment #5) > In the second invocation nmstate creates two slaves connections with > the same cloned-mac-address. This is not allowed for bonds using modes > ALB or TLB and so the enslavement of the second interface fails with: > > platform-linux: do-change-link[7]: failure changing link: failure 14 (Bad > address) > > A simple reproducer using iproute2: > > # addr=00:99:88:77:66:55 > > # ip link add bond99 type bond mode 5 > # ip link set eth0 addr $addr > # ip link set eth1 addr $addr > > # ip link set eth0 master bond99 > # ip link set eth1 master bond99 > RTNETLINK answers: Bad address > > Kernel complains with: > > bond99: (slave eth1): the slave hw address is in use by the bond; couldn't > find a slave with a free hw address to give it (this should not have > happened) > > Gris, do you know why nmstate is setting duplicate > cloned-mac-addresses on the slaves? Yeah. I found out the root cause also. nmstate just try to hardcode the mac in profile which is incorrect for this case. Closing as not a bug of NM. Dropping from RPL-8.3, as this is CLOSED. |