Bug 2094353
| Summary: | IP assigned through DHCP became secondary IP address | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Fernando F. Mancera <ferferna> | |
| Component: | NetworkManager | Assignee: | Fernando F. Mancera <ferferna> | |
| Status: | CLOSED ERRATA | QA Contact: | Vladimir Benes <vbenes> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 9.1 | CC: | bgalvani, lrintel, mberezny, rkhan, sfaye, sukulkar, thaller, till, vbenes | |
| Target Milestone: | rc | Keywords: | Triaged, ZStream | |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2094778 (view as bug list) | Environment: | ||
| Last Closed: | 2022-11-15 10:50:05 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: | 2094778 | |||
|
Description
Fernando F. Mancera
2022-06-07 13:11:02 UTC
covered in NMCI via ipv4_check_addr_order test (In reply to Fernando F. Mancera from comment #0) > Question: > ========= > - Is this behavior intentional? Yes > - Can we know, why the behavior is changed from > NetworkManager-1.36.0-0.1.el8 to NetworkManager-1.36.0-0.2.el8? Also, if > there is any commit for this change, can we get that details as well? there is not one commit, because over the time there were many issues and the code got reworked heavily over time. https://bugzilla.redhat.com/show_bug.cgi?id=1995372#c5 is a lengthy summary. It was always the goal, is that manual configuration is to be preferred over DHCP (or other "auto" settings). If that didn't happen, it was a bug that got fixed now. Note that NetworkManager 1.36 still has some subtle issues, that only will be fixed in 1.38+. People in particular care about the primary/secondary flag of addresses, to affect source address selection. In some cases, you want that the DHCP address is used for an outgoing connection. This change (of prefering manual over DHCP) seems to contradict that. However, what's also new in 1.36+ is that routes from DHCP get the source attribute set. So while the manual address may now be the primary, if a destination is to be reached via DHCP, then the DHCP address will be used for source address selection. Btw, if you want to override that yet again, add a manual route along the manual address, that uses the desired "src". 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-2022:8265 |