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 1738633 - invalid json output for ipv6 routes
Summary: invalid json output for ipv6 routes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: iproute
Version: 8.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.2
Assignee: Andrea Claudi
QA Contact: Network QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-07 16:16 UTC by Patrik Hagara
Modified: 2020-11-04 01:43 UTC (History)
1 user (show)

Fixed In Version: iproute-5.3.0-3.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 01:43:46 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Patrik Hagara 2019-08-07 16:16:24 UTC
Description of problem:

> [root@virt-121 ~]# rpm -qf $(which ip)
> iproute-4.18.0-15.el8.x86_64
> [root@virt-121 ~]# ip -json -6 route
> [{"dst":"::1","dev":"lo","protocol":"kernel","metric":256,"flags":[],"pref":"medium"},{"dst":"2620:52:0:25a4::/64","dev":"ens3","protocol":"ra","metric":100,"flags":[],"pref":"medium"},{"dst":"fe80::/64","dev":"ens3","protocol":"kernel","metric":100,"flags":[],"pref":"medium"},{"dst":"default","protocol":"ra","metric":100,"flags":[],"gateway":"fe80::200:5eff:fe00:201"dev ens3 weight 1 ,"flags":[],"gateway":"fe80::327c:5e00:9e8c:7c61"dev ens3 weight 1 ,"flags":[],"gateway":"fe80::82ac:ac00:9e5e:3661"dev ens3 weight 1 ,"flags":[],"pref":"medium"}]
> [root@virt-121 ~]# ip -json -6 route | jq
> parse error: Invalid numeric literal at line 1, column 374

notice the extra "dev ens3 weight 1" after each gateway IPv6 address

Version-Release number of selected component (if applicable):
iproute-4.18.0-15.el8.x86_64

How reproducible:
always

Steps to Reproduce:
1. ip -json -6 route | jq
2.
3.

Actual results:
invalid json produced

Expected results:
valid json output

Additional info:

Comment 1 Andrea Claudi 2019-10-31 15:10:59 UTC
Fix waiting for upstream approval: https://patchwork.ozlabs.org/patch/1187570/

Comment 2 Andrea Claudi 2019-10-31 16:28:15 UTC
Already fixed in iproute2-next with commit 4ecefff3cf25, will cherry-pick once it gets to master.

Comment 11 errata-xmlrpc 2020-11-04 01:43:46 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 (iproute 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/RHBA-2020:4478


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