Bug 2115884
| Summary: | fix IPRouteUtils.get_route_tables_mapping() to accept any whitespace sequence | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Wen Liang <wenliang> | |
| Component: | rhel-system-roles | Assignee: | Rich Megginson <rmeggins> | |
| Status: | CLOSED ERRATA | QA Contact: | Zhiqian Guan <zhguan> | |
| Severity: | unspecified | Docs Contact: | Mayur Patil <maypatil> | |
| Priority: | unspecified | |||
| Version: | 8.7 | CC: | djez, jtrossba, maypatil, nhosoi, rmeggins, spetrosi, zhguan | |
| Target Milestone: | rc | Keywords: | Triaged | |
| Target Release: | 8.7 | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | role:network | |||
| Fixed In Version: | rhel-system-roles-1.20.0-1.el8 | Doc Type: | Bug Fix | |
| Doc Text: |
.The `IPRouteUtils.get_route_tables_mapping()` function now accepts any whitespace sequence
Previously, a parser for the `iproute2` routing table database, such as `/etc/iproute2/rt_tables`, asserted that entries in the file were of the form `254 main` and only a single space character separated the numeric id and the name. Consequently, the parser failed to cache all the mappings between the route table name and table id.Therefore the user could not add a static route into the route table by defining the route table name. With this update, the parser accepts any whitespace sequence in between the table ID and table name. As a result, as the parser caches all the mapping between the route table name and table ID, users can add a static route into the route table by defining the route table name.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 2115886 2115887 (view as bug list) | Environment: | ||
| Last Closed: | 2022-11-08 09:41:52 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: | 2115886, 2115887 | |||
|
Description
Wen Liang
2022-08-05 15:28:33 UTC
What playbooks need to be tested for this bug? And have they already been run in the CI system? If so where are the results? (In reply to Jon Trossbach from comment #4) > What playbooks need to be tested for this bug? And have they already been > run in the CI system? If so where are the results? Good questions for Thomas from whom I requested the info in https://bugzilla.redhat.com/show_bug.cgi?id=2115886 Test was added in PR - https://github.com/linux-system-roles/network/pull/508/files#diff-b06f1e1bf991f123e64cf9dde6dcf9574bb279a720609a570e8af27cc2d9a359 Test coverage is in tests_unit.yml [root@netqe2 Upstream-testsuite]# uname -r 4.18.0-416.el8.x86_64 ansible-2.9.27-1 :: [ 03:46:39 ] :: [ BEGIN ] :: Test tests_unit.yml with ANSIBLE-2.9 against RHEL_6_10_GA :: [ 03:47:14 ] :: [ PASS ] :: Test tests_unit.yml (Assert: expected 0, got 0) :: [ 03:50:21 ] :: [ BEGIN ] :: Test tests_unit.yml with ANSIBLE-2.9 against RHEL_7_9_GA :: [ 03:50:55 ] :: [ PASS ] :: Test tests_unit.yml (Assert: expected 0, got 0) :: [ 03:53:44 ] :: [ BEGIN ] :: Test tests_unit.yml with ANSIBLE-2.9 against RHEL_8_6_0_GA :: [ 03:54:33 ] :: [ PASS ] :: Test tests_unit.yml (Assert: expected 0, got 0) :: [ 03:56:44 ] :: [ BEGIN ] :: Test tests_unit.yml with ANSIBLE-2.9 against RHEL_9_0_0_GA :: [ 03:57:15 ] :: [ PASS ] :: Test tests_unit.yml (Assert: expected 0, got 0) :: [ 03:59:36 ] :: [ BEGIN ] :: Test tests_unit.yml with ANSIBLE-2.9 against RHEL_8_7_TESTING :: [ 04:00:30 ] :: [ PASS ] :: Test tests_unit.yml (Assert: expected 0, got 0) :: [ 04:02:26 ] :: [ BEGIN ] :: Test tests_unit.yml with ANSIBLE-2.9 against RHEL_9_1_TESTING :: [ 04:02:57 ] :: [ PASS ] :: Test tests_unit.yml (Assert: expected 0, got 0) ansible-core-2.13.2-1 :: [ 04:08:49 ] :: [ BEGIN ] :: Test tests_unit.yml with ANSIBLE-2 against RHEL_7_9_GA :: [ 04:09:24 ] :: [ PASS ] :: Test tests_unit.yml (Assert: expected 0, got 0) :: [ 04:11:19 ] :: [ BEGIN ] :: Test tests_unit.yml with ANSIBLE-2 against RHEL_8_6_0_GA :: [ 04:12:09 ] :: [ PASS ] :: Test tests_unit.yml (Assert: expected 0, got 0) :: [ 04:13:28 ] :: [ BEGIN ] :: Test tests_unit.yml with ANSIBLE-2 against RHEL_9_0_0_GA :: [ 04:13:59 ] :: [ PASS ] :: Test tests_unit.yml (Assert: expected 0, got 0) :: [ 04:16:09 ] :: [ BEGIN ] :: Test tests_unit.yml with ANSIBLE-2 against RHEL_8_7_TESTING :: [ 04:17:00 ] :: [ PASS ] :: Test tests_unit.yml (Assert: expected 0, got 0) :: [ 04:18:42 ] :: [ BEGIN ] :: Test tests_unit.yml with ANSIBLE-2 against RHEL_9_1_TESTING :: [ 04:19:14 ] :: [ PASS ] :: Test tests_unit.yml (Assert: expected 0, got 0) Forget to mention, I was using rhel-system-roles-1.20.0-1.el8.noarch 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-2022:7568 |