Bug 2134201

Summary: [RFE] Support setting the metric of the default route for initscripts provider
Product: Red Hat Enterprise Linux 8 Reporter: Wen Liang <wenliang>
Component: rhel-system-rolesAssignee: Wen Liang <wenliang>
Status: CLOSED ERRATA QA Contact: Jon Trossbach <jtrossba>
Severity: unspecified Docs Contact: Jaroslav Klech <jklech>
Priority: unspecified    
Version: 8.8CC: djez, jklech, jtrossba, rmeggins, spetrosi
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: 8.8   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: role:network
Fixed In Version: rhel-system-roles-1.21.0-0.2.network.el8 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:
: 2134202 (view as bug list) Environment:
Last Closed: 2023-05-16 08:31:36 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: 2134202    

Description Wen Liang 2022-10-12 18:33:19 UTC
Description of problem:


The user want to change the metric for the default route (for initscripts), add support
for that.

Comment 4 Jon Trossbach 2022-12-08 23:31:12 UTC
Do you remember which init_scripts were changed for this bug?

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 5 Wen Liang 2022-12-13 19:40:24 UTC
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 6 Jon Trossbach 2022-12-19 05:57:12 UTC
@djez 
@rmeggins

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

Comment 7 Jon Trossbach 2023-01-13 18:16:35 UTC
All are passing for tests_auto_gateway_initscripts.yml both tests except RHEL 6.10 with Ansible 2.14, which is expected.

[root@netqe41 Upstream-testsuite]# uname -r
4.18.0-447.el8.x86_64
[root@netqe41 Upstream-testsuite]# rpm -q rhel-system-roles
rhel-system-roles-1.21.0-0.13.el8.noarch
[root@netqe41 Upstream-testsuite]# 

:: [ 12:44:07 ] :: [   PASS   ] :: Test network with ANSIBLE-2.9 against RHEL_6_10_GA (Expected 0, got 0)
:: [ 12:44:06 ] :: [   PASS   ] :: Test tests_auto_gateway_initscripts.yml (Assert: expected 0, got 0)
:: [ 12:55:28 ] :: [   FAIL   ] :: Test network with ANSIBLE-2 against RHEL_6_10_GA (Expected 0, got 1)
:: [ 12:55:27 ] :: [   FAIL   ] :: Test tests_auto_gateway_initscripts.yml (Assert: expected 0, got 2)
:: [ 12:45:30 ] :: [   PASS   ] :: Test network with ANSIBLE-2.9 against RHEL_7_9_GA (Expected 0, got 0)
:: [ 12:45:29 ] :: [   PASS   ] :: Test tests_auto_gateway_initscripts.yml (Assert: expected 0, got 0)
:: [ 12:56:46 ] :: [   PASS   ] :: Test network with ANSIBLE-2 against RHEL_7_9_GA (Expected 0, got 0)
:: [ 12:56:45 ] :: [   PASS   ] :: Test tests_auto_gateway_initscripts.yml (Assert: expected 0, got 0)
:: [ 12:47:14 ] :: [   PASS   ] :: Test network with ANSIBLE-2.9 against RHEL_8_7_0_GA (Expected 0, got 0)
:: [ 12:47:13 ] :: [   PASS   ] :: Test tests_auto_gateway_initscripts.yml (Assert: expected 0, got 0)
:: [ 12:58:39 ] :: [   PASS   ] :: Test network with ANSIBLE-2 against RHEL_8_7_0_GA (Expected 0, got 0)
:: [ 12:58:38 ] :: [   PASS   ] :: Test tests_auto_gateway_initscripts.yml (Assert: expected 0, got 0)
:: [ 12:48:54 ] :: [   PASS   ] :: Test network with ANSIBLE-2.9 against RHEL_8_8_TESTING (Expected 0, got 0)
:: [ 12:48:53 ] :: [   PASS   ] :: Test tests_auto_gateway_initscripts.yml (Assert: expected 0, got 0)
:: [ 13:00:26 ] :: [   PASS   ] :: Test network with ANSIBLE-2 against RHEL_8_8_TESTING (Expected 0, got 0)
:: [ 13:00:25 ] :: [   PASS   ] :: Test tests_auto_gateway_initscripts.yml (Assert: expected 0, got 0)
:: [ 12:49:38 ] :: [   PASS   ] :: Test network with ANSIBLE-2.9 against RHEL_9_1_0_GA (Expected 0, got 0)
:: [ 12:49:37 ] :: [   PASS   ] :: Test tests_auto_gateway_initscripts.yml (Assert: expected 0, got 0)
:: [ 13:01:01 ] :: [   PASS   ] :: Test network with ANSIBLE-2 against RHEL_9_1_0_GA (Expected 0, got 0)
:: [ 13:00:59 ] :: [   PASS   ] :: Test tests_auto_gateway_initscripts.yml (Assert: expected 0, got 0)
:: [ 12:50:23 ] :: [   PASS   ] :: Test network with ANSIBLE-2.9 against RHEL_9_2_TESTING (Expected 0, got 0)
:: [ 12:50:22 ] :: [   PASS   ] :: Test tests_auto_gateway_initscripts.yml (Assert: expected 0, got 0)
:: [ 13:01:38 ] :: [   PASS   ] :: Test network with ANSIBLE-2 against RHEL_9_2_TESTING (Expected 0, got 0)
:: [ 13:01:37 ] :: [   PASS   ] :: Test tests_auto_gateway_initscripts.yml (Assert: expected 0, got 0)

Comment 15 errata-xmlrpc 2023-05-16 08:31:36 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:2804