Bug 1174632
| Summary: | shared connection losing it's address when NM service restarted | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Vladimir Benes <vbenes> |
| Component: | NetworkManager | Assignee: | Jirka Klimes <jklimes> |
| Status: | CLOSED ERRATA | QA Contact: | Desktop QE <desktop-qa-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.1 | CC: | danw, dcbw, jklimes, ovasik, rkhan, thaller |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | NetworkManager-1.0.0-8.git20150107.1ea95cd3.el7 | Doc Type: | Bug Fix |
| Doc Text: |
When a connection profile with IPv4 method Shared and a static IP address was activated, NetworkManager did not respect the IP and used the default range of 10.42.0.1/24. This was fixed and NetworkManager now infers the IP range from the configured static address.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-03-05 13:54:20 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: | |||
|
Description
Vladimir Benes
2014-12-16 07:56:02 UTC
A fix is available in NetworkManager upstream git branch jk/shared-ip-rh1174632. >+is_any_ip4_address_defined (shvarFile *ifcfg, int *idx) why do you need this rather than just assuming/requiring that it's index 0? >+ if (!read_ip4_address (ifcfg, "GATEWAY", &gateway, error)) >+ goto done; hm... NMSettingIP4Config::verify() doesn't forbid it, but gateway doesn't really make sense for SHARED does it? (Or do we allow having a SHARED interface also have the default route?) (In reply to Dan Winship from comment #2) > >+is_any_ip4_address_defined (shvarFile *ifcfg, int *idx) > > why do you need this rather than just assuming/requiring that it's index 0? > > >+ if (!read_ip4_address (ifcfg, "GATEWAY", &gateway, error)) > >+ goto done; > > hm... NMSettingIP4Config::verify() doesn't forbid it, but gateway doesn't > really make sense for SHARED does it? (Or do we allow having a SHARED > interface also have the default route?) I don't know. But I agree, it it makes no sense, we should tighten verify() to reject it. - g_assert (connection); - success = nm_connection_verify (connection, &error); - g_assert_no_error (error); - g_assert (success); + nmtst_assert_connection_verifies_without_normalization (connection); Rest LGTM LGTM too, though I think the gateway should probably optional for the shared method since it doesn't really matter for sharing, since NAT handles routing packets instead of any default gateway. (In reply to Dan Winship from comment #2) > >+is_any_ip4_address_defined (shvarFile *ifcfg, int *idx) > > why do you need this rather than just assuming/requiring that it's index 0? The first address can also start at index 1 or 2. > > >+ if (!read_ip4_address (ifcfg, "GATEWAY", &gateway, error)) > >+ goto done; > The gateway *is* optional, because read_ip4_address() returns success if GATEWAY is missing. (In reply to Thomas Haller from comment #3) > (In reply to Dan Winship from comment #2) > > - g_assert (connection); > - success = nm_connection_verify (connection, &error); > - g_assert_no_error (error); > - g_assert (success); > + nmtst_assert_connection_verifies_without_normalization (connection); > Fixed. Commits in upstream master: 233498e ifcfg-rh: update test files not to use obsolete GATEWAY<n> variables a3c52d7 man: add description of BOOTPROTO to nm-settings-ifcfg-rh manpage c8fe3bb ifcfg-rh: read custom IP address for shared connections (rh #1174632) 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, 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://rhn.redhat.com/errata/RHBA-2015-0311.html |