Bug 2134202

Summary: [RFE] Support setting the metric of the default route for initscripts provider
Product: Red Hat Enterprise Linux 9 Reporter: Wen Liang <wenliang>
Component: rhel-system-rolesAssignee: Rich Megginson <rmeggins>
Status: CLOSED ERRATA QA Contact: Jon Trossbach <jtrossba>
Severity: unspecified Docs Contact: Mayur Patil <maypatil>
Priority: unspecified    
Version: 9.2CC: jtrossba, maypatil, nm-team, pasik, rhel-cs-system-management-subsystem-qe, rmeggins, spetrosi, till
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: role:network
Fixed In Version: rhel-system-roles-1.21.0-0.2.network.el9 Doc Type: Enhancement
Doc Text:
.The `initscripts` network provider supports route metric configuration of the default gateway With this update, you can use the `initscripts` network provider in the `rhel-system-roles.network` RHEL System Role to configure the route metric of the default gateway. The reasons for such a configuration could be: * Distributing the traffic load across the different paths * Specifying primary routes and backup routes * Leveraging routing policies to send traffic to specific destinations through specific paths
Story Points: ---
Clone Of: 2134201 Environment:
Last Closed: 2023-05-09 07:37:56 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: 2134201    
Bug Blocks:    

Comment 3 Jon Trossbach 2022-12-08 23:29:05 UTC
Do you remember which init_scripts were changed for this bug? https://bugzilla.redhat.com/show_bug.cgi?id=2134201

Possibilities are:


    tests_auto_gateway_initscripts.yml
    tests_bond_initscripts.yml
    tests_bond_removal_initscripts.yml
    tests_ethernet_initscripts.yml
    tests_ethtool_coalesce_initscripts.yml
    tests_ethtool_features_initscripts.yml
    tests_ethtool_ring_initscripts.yml
    tests_ipv6_initscripts.yml
    tests_states_initscripts.yml
    tests_vlan_mtu_initscripts.yml

Comment 4 Jon Trossbach 2022-12-08 23:30:17 UTC
Sorry please ignore that link. Though I do have the same question for that bug as well.

Comment 5 Rich Megginson 2022-12-09 00:24:11 UTC
From the PR for this BZ - https://github.com/linux-system-roles/network/pull/532/files

looks like the test is tests_auto_gateway_initscripts.yml

@nm-team please confirm

Comment 6 Wen Liang 2022-12-13 19:35:14 UTC
Hi (In reply to Rich Megginson from comment #5)
> From the PR for this BZ -
> https://github.com/linux-system-roles/network/pull/532/files
> 
> looks like the test is tests_auto_gateway_initscripts.yml
> 
> @nm-team please confirm

I confirm, the test is `tests_auto_gateway_initscripts.yml`. Originally,`tests_auto_gateway_initscripts.yml` causes the baseos ci hang, then set a higher route metric for the default route will make sure other default routes not being hijacked and preserve the ssh connectivity as a result.

Comment 7 Jon Trossbach 2022-12-19 14:48:38 UTC
@djez 
@rmeggins

Same problem as https://bugzilla.redhat.com/show_bug.cgi?id=2129620

Comment 8 Jon Trossbach 2023-01-13 18:04:42 UTC
Passes on everything except RHEL 6.10, which is expected

[root@netqe4 Upstream-testsuite]# uname -r
5.14.0-230.el9.x86_64
[root@netqe4 Upstream-testsuite]# rpm -q rhel-system-roles
rhel-system-roles-1.21.0-0.13.el9.noarch

:: [ 12:52:39 ] :: [   FAIL   ] :: Test network with ANSIBLE-2 against RHEL_6_10_GA (Expected 0, got 1)
:: [ 12:52:38 ] :: [   FAIL   ] :: Test tests_auto_gateway_initscripts.yml (Assert: expected 0, got 2)
:: [ 12:54:17 ] :: [   PASS   ] :: Test network with ANSIBLE-2 against RHEL_7_9_GA (Expected 0, got 0)
:: [ 12:54:16 ] :: [   PASS   ] :: Test tests_auto_gateway_initscripts.yml (Assert: expected 0, got 0)
:: [ 12:56:37 ] :: [   PASS   ] :: Test network with ANSIBLE-2 against RHEL_8_7_0_GA (Expected 0, got 0)
:: [ 12:56:36 ] :: [   PASS   ] :: Test tests_auto_gateway_initscripts.yml (Assert: expected 0, got 0)
:: [ 12:58:48 ] :: [   PASS   ] :: Test network with ANSIBLE-2 against RHEL_8_8_TESTING (Expected 0, got 0)
:: [ 12:58:47 ] :: [   PASS   ] :: Test tests_auto_gateway_initscripts.yml (Assert: expected 0, got 0)
:: [ 12:59:30 ] :: [   PASS   ] :: Test network with ANSIBLE-2 against RHEL_9_1_0_GA (Expected 0, got 0)
:: [ 12:59:28 ] :: [   PASS   ] :: Test tests_auto_gateway_initscripts.yml (Assert: expected 0, got 0)
:: [ 13:00:12 ] :: [   PASS   ] :: Test network with ANSIBLE-2 against RHEL_9_2_TESTING (Expected 0, got 0)
:: [ 13:00:11 ] :: [   PASS   ] :: Test tests_auto_gateway_initscripts.yml (Assert: expected 0, got 0)

Comment 12 errata-xmlrpc 2023-05-09 07:37:56 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 (rhel-system-roles 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/RHEA-2023:2246