Bug 1785039
Summary: | nmcli command to add ipv4.gateway does not work when DEFROUTE=no and throws no error | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Richard Hyman <rhyman> |
Component: | NetworkManager | Assignee: | Thomas Haller <thaller> |
Status: | CLOSED ERRATA | QA Contact: | Desktop QE <desktop-qa-list> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7.5 | CC: | atragler, bgalvani, gscott, jmaxwell, lrintel, pasik, rkhan, sukulkar, thaller, vbenes |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | NetworkManager-1.18.6-1.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-09-29 20:30:25 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: | 1797742 |
Description
Richard Hyman
2019-12-18 23:19:08 UTC
dropping from RPL-8.3, it's already on the RPL-7.9. upstream fix on review: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/475 fixed upstream: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/2186c9934fa51b2879c0f55f7aa67a3a7bd3b825 now nmcli is changed. when you set ipv4.gateway (ipv6.gateway) on the command line, then it also will set ipvx.never-default to no. that means, nmcli connection modify "$PROFILE" ipv4.never-default yes ipv4.gateway 192.168.1.1 results in never-default "no"... because the latter setting of gateway wins. At first that might seem odd, but in general, if you specify an option (or overlapping options like in this case) multiple times, then the last one wins. That is now fixed. test case added: https://gitlab.freedesktop.org/NetworkManager/NetworkManager-ci/-/merge_requests/566 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 (Moderate: NetworkManager security and bug fix 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/RHSA-2020:4003 |