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 1518091 - [NMCI] lease not renewed for external DHCP connection
Summary: [NMCI] lease not renewed for external DHCP connection
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: NetworkManager
Version: 7.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Beniamino Galvani
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-28 08:18 UTC by Beniamino Galvani
Modified: 2018-04-10 13:35 UTC (History)
9 users (show)

Fixed In Version: NetworkManager-1.10.2-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 13:34:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
[NM PATCH] device: add "indicated" argument to nm_utils_match_connection() (5.91 KB, patch)
2017-11-28 15:39 UTC, Beniamino Galvani
no flags Details | Diff
[CI PATCH] ipv4: disable renewal_gw_after_dhcp_outage_for_assumed_var1 on 1.10 (1.38 KB, patch)
2017-11-28 15:40 UTC, Beniamino Galvani
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0778 0 None None None 2018-04-10 13:35:11 UTC

Description Beniamino Galvani 2017-11-28 08:18:45 UTC
Failure of CI test renewal_gw_after_dhcp_outage_for_assumed_var1 with NM 1.10:

 * Prepare simulated test " testX " device
 * Add connection type " ethernet " named " ethie " for device " testX "
 * Bring " up " connection " ethie "
 When " default " is visible with command " ip r |grep testX " in " 30 " seconds
 When " inet 192 " is visible with command " ip a s |grep testX " in " 30 " seconds
 * Execute " ip netns exec testX_ns kill -SIGSTOP $(cat /tmp/testX_ns.pid) "
 * Execute " systemctl stop NetworkManager "
 * Execute " sudo rm -rf /etc/sysconfig/network-scripts/ifcfg-ethie "
 * Execute " systemctl start NetworkManager "
 When " default " is not visible with command " ip r |grep testX " in " 130 " seconds
 When " inet 192.168.99 " is not visible with command " ip a s testX " in " 10 " seconds
 * Execute " ip netns exec testX_ns kill -SIGCONT $(cat /tmp/testX_ns.pid) "
 Then " routers = 192.168.99.1 " is visible with command " nmcli con show testX " in " 400 " seconds
 Then " default " is visible with command " ip r| grep testX " in " 150 " seconds
   Exception: Did not see the pattern default in 150 seconds

Comment 2 Beniamino Galvani 2017-11-28 15:38:23 UTC
I would fix this by:

 - improving the behavior on NM restart so that connections don't become
   external (with the patch by Thomas attached below).
 
 and

 - disable the test because, after the previous point, there is no reason
   to keep renewing leases for external connections

Comment 3 Beniamino Galvani 2017-11-28 15:39:12 UTC
Created attachment 1359938 [details]
[NM PATCH] device: add "indicated" argument to nm_utils_match_connection()

Comment 4 Beniamino Galvani 2017-11-28 15:40:30 UTC
Created attachment 1359939 [details]
[CI PATCH] ipv4: disable renewal_gw_after_dhcp_outage_for_assumed_var1  on 1.10

Comment 5 Thomas Haller 2017-11-28 15:54:17 UTC
(In reply to Beniamino Galvani from comment #3)
> Created attachment 1359938 [details]
> [NM PATCH] device: add "indicated" argument to nm_utils_match_connection()

several spelling errors :)



rest lgtm

Comment 6 Beniamino Galvani 2017-11-30 13:55:47 UTC
(In reply to Thomas Haller from comment #5)
> (In reply to Beniamino Galvani from comment #3)
> > Created attachment 1359938 [details]
> > [NM PATCH] device: add "indicated" argument to nm_utils_match_connection()
> 
> several spelling errors :)
> 
> rest lgtm

Fixed. Patch applied to master:

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

and nm-1-10.

NM-CI pull request:

https://github.com/NetworkManager/NetworkManager-ci/pull/63

Comment 7 Beniamino Galvani 2017-11-30 17:59:54 UTC
Note that 1.10.0 still does DHCP for external auto connections (and thus the test passes there), but 1.10.2 will not as touching external connections is wrong and interferes with user settings (for example see https://bugzilla.redhat.com/show_bug.cgi?id=1512316 )

Comment 11 Vladimir Benes 2018-01-15 09:49:00 UTC
Test is now checking that NM doesn't touch device so that means default route goes away in 120 seconds for example.

Comment 14 errata-xmlrpc 2018-04-10 13:34:16 UTC
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://access.redhat.com/errata/RHBA-2018:0778


Note You need to log in before you can comment on or make changes to this bug.