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 2162617 - [RFE] RedHat Role rhel-system-roles.network should route traffic via correct bond.
Summary: [RFE] RedHat Role rhel-system-roles.network should route traffic via correct ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rhel-system-roles
Version: 7.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Rich Megginson
QA Contact: Jakub Haruda
URL:
Whiteboard: role:network
Depends On: 2168735
Blocks: 2168733
TreeView+ depends on / blocked
 
Reported: 2023-01-20 07:40 UTC by vivek singh
Modified: 2023-06-07 07:41 UTC (History)
5 users (show)

Fixed In Version: rhel-system-roles-1.21.1-1.el7_9
Doc Type: Enhancement
Doc Text:
Clone Of:
: 2168733 (view as bug list)
Environment:
Last Closed: 2023-06-07 07:41:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github linux-system-roles network pull 573 0 None open initscripts: Fix 'dev' attribute of the route 2023-02-13 21:40:55 UTC
Red Hat Issue Tracker NMT-177 0 None None None 2023-01-25 15:21:17 UTC
Red Hat Issue Tracker RHELPLAN-146416 0 None None None 2023-01-25 15:21:22 UTC

Description vivek singh 2023-01-20 07:40:23 UTC
1- Proposed title of this feature request.
=> [RFE] RedHat Role rhel-system-roles.network should route traffic via correct bond.

2- CU has RHEl 7.9 host using legacy network init scripts. The host has three bonds (bond0, bond3 and bond4). CU is managing role via satellite

3- bond3 and bond4 have IP's in the same subnet.

4- Requirement - They need to route traffic for 10.7.7.23/32 via 10.140.5.129 on bond4. 

5- Now there are 2 things happening here 

a- When role name (rhel-system-roles.network) is executed, then it creates file with name "route-bond4" inside /etc/sysconfig/network-scripts/ automatically .
~~~~~
[root@p-XXXX-XXXX ~]# cat /etc/sysconfig/network-scripts/route-bond4
10.7.7.23/32 via 10.140.5.129

However traffic for 10.7.7.23/32 is incorrectly routed via bond3

[root@p-XXXX-XXXX ~]# ip route g 10.7.7.23
10.7.7.23 via 10.140.5.129 dev bond3 src 10.140.5.137
~~~~~

b- If we manually add [dev interface] to /etc/sysconfig/network-scripts/route-bond4 (as below):
~~~~~~
[root@p-XXXX-XXXX ~]# cat /etc/sysconfig/network-scripts/route-bond4
10.7.7.23/32 via 10.140.5.129 dev bond4

Traffic is routed correctly via bond4:

[root@p-XXXX-XXXX ~]# ip route g 10.7.7.23
10.7.7.23 via 10.140.5.129 dev bond4 src 10.140.5.138 
~~~~~

6- In addition, there is a PR for the change we need in the upstream repo, but it's not being worked on. This change looks to add the functionality we need:
~~~~
https://github.com/linux-system-roles/network/pull/100/commits/16c0aad8a705c787c838c7a25b36e209cbcd3e40
~~~~

7- Why do you need this? (List the business requirements here).
This is affecting our ability to centrally manage production hosts using Red Hat Ansible - manual are needed on the remote node to correctly manage static routes. 

8- Do you have any specific timeline dependencies and which release would they like to target (i.e. Satellite 6.11,12)?
NA

9- List any affected packages or components. 
NA 
      
10. Would you be able to assist in testing this functionality if implemented?  
Yes

Comment 11 errata-xmlrpc 2023-06-07 07:41:17 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:3526


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