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 1727293 - ip -j route produces non-parsable json output when tcp metrics are used
Summary: ip -j route produces non-parsable json output when tcp metrics are used
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: iproute
Version: 8.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.0
Assignee: Andrea Claudi
QA Contact: Jaroslav Aster
URL:
Whiteboard:
Depends On: 1752857
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-05 12:26 UTC by Andrea Claudi
Modified: 2020-04-28 16:44 UTC (History)
1 user (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:1785 0 None None None 2020-04-28 16:44:20 UTC

Description Andrea Claudi 2019-07-05 12:26:44 UTC
Description of problem:
ip -j route produces non-parsable json output if called on routes with tcp metrics.

Steps to Reproduce:
1. $ ip link add type dummy
2. $ ip route add 192.168.2.0 dev dummy0 metric 100 mtu 1000 rto_min 3
3. $ ip -j route | jq

Actual results:
    parse error: ':' not as part of an object at line 1, column 319

Expected results:
    $ ip -j route | jq
    [
      {
        "dst": "192.168.2.0",
        "dev": "dummy0",
        "scope": "link",
        "metric": 100,
        "flags": [],
        "metrics": [
          {
            "mtu": 1000,
            "rto_min": 3
          }
        ]
      }
    ]

Comment 1 Andrea Claudi 2019-07-10 10:22:54 UTC
Upstream commit to be backported:

commit 89ce8012d71f5689074dc4cbe3db102cbdf76460
Author: Andrea Claudi <aclaudi>
Date:   Mon Jul 8 11:36:42 2019 +0200

    ip-route: fix json formatting for metrics

Comment 6 errata-xmlrpc 2020-04-28 16:43:54 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, 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:1785


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