Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1487384

Summary: [NMCI] no_metric_route_connection_restart_persistence
Product: Red Hat Enterprise Linux 7 Reporter: Thomas Haller <thaller>
Component: NetworkManagerAssignee: Thomas Haller <thaller>
Status: CLOSED UPSTREAM QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.5CC: atragler, bgalvani, fgiudici, lrintel, rkhan, sukulkar, thaller
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-01 14:00:14 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:
Attachments:
Description Flags
[logfile] from beaker run
none
[patch] core: ignore /32 gateway routes when matching generated connection none

Description Thomas Haller 2017-08-31 18:22:31 UTC
Broken test, with upstream master:

https://beaker.engineering.redhat.com/jobs/2030210

Comment 2 Thomas Haller 2017-08-31 18:23:28 UTC
Created attachment 1320696 [details]
[logfile] from beaker run

Comment 3 Thomas Haller 2017-08-31 18:28:27 UTC
Notes:

[1504202126.2620] platform: route: append     IPv4 route: 192.168.4.1/32 via 0.0.0.0 dev 10 metric 100 mss 0 rt-src user

we add a direct route to the gateway.




after restart, we have 4 IPv4 routes:

[1504202127.5831] platform: signal: route   4   added: 0.0.0.0/0 via 192.168.4.1 dev 10 metric 101 mss 0 rt-src rt-static scope global
[1504202127.5832] platform: signal: route   4   added: 192.168.3.0/24 via 0.0.0.0 dev 10 metric 100 mss 0 rt-src rt-kernel scope link pref-src 192.168.3.10
[1504202127.5833] platform: signal: route   4   added: 192.168.4.1/32 via 0.0.0.0 dev 10 metric 100 mss 0 rt-src rt-static scope link
[1504202127.5833] platform: signal: route   4   added: 192.168.5.0/24 via 192.168.3.11 dev 10 metric 100 mss 0 rt-src rt-static scope global

and matching connection fails:

<debug> [1504202127.8140] Connection 'eth1' differs from candidate 'ethie' in ipv4.routes, 802-3-ethernet.mac-address
<debug> [1504202127.8141] manager: (eth1): assume: generated connection 'eth1' (41e9c9c9-9413-4d42-8a0f-3ca93dee392d)
<debug> [1504202127.8141] device[0x7f6667b531d0] (eth1): assume-state: set guess-assume=0, connection=(null)

so we end up generating an external connection and the test fails.

Comment 4 Thomas Haller 2017-09-01 08:51:30 UTC
further debugging shows that indeed it's the fault of the /32 route.

[1504255205.6170] Connection eth1 differs from candidate ethie in ipv4.routes, 802-3-ethernet.mac-address
[1504255205.6170] >>>>>>> DIFF
[1504255205.6170] >>>ORIG[0]: 192.168.4.1/32 via (none)
[1504255205.6170] >>>ORIG[1]: 192.168.5.0/24 via 192.168.3.11
[1504255205.6170] >>>CAND[0]: 192.168.5.0/24 via 192.168.3.11

Comment 5 Thomas Haller 2017-09-01 12:40:57 UTC
Created attachment 1320915 [details]
[patch] core: ignore /32 gateway routes when matching generated connection

Comment 6 Beniamino Galvani 2017-09-01 13:40:13 UTC
LGTM.

I think the commit message should mention that it fixes this:

https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/src?id=e470e1392242a088573c4fc317b7b5ffaca4df19