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 1848241 - The `NM.IPConfig.get_routes()` returns non-exist route to ff00::/8
Summary: The `NM.IPConfig.get_routes()` returns non-exist route to ff00::/8
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: NetworkManager
Version: 8.3
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: 8.0
Assignee: sushil kulkarni
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: nmstate-nm 1738838
TreeView+ depends on / blocked
 
Reported: 2020-06-18 04:23 UTC by Gris Ge
Modified: 2020-06-18 06:11 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-18 06:11:57 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Gris Ge 2020-06-18 04:23:04 UTC
Description of problem:

The `ff00::/8` route is shown by `NM.IPConfig.get_routes()`, but it does not
actually exists in kernel (ip route output).

Version-Release number of selected component (if applicable):
NetworkManager-1.27.0-26090.56b15ca0b6.el8.x86_64

How reproducible:
100%

Steps to Reproduce:
1. sudo nmcli c add type dummy ifname dummy1 \
    connection.id dummy1 \
    ipv4.method disabled \
    ipv6.method static ipv6.address 2001:db8:b::/64

2. ./nm_route_query.py
3. ip -6 route show dev dummy1

Actual results:

The `./nm_route_query.py` output contains:

ff00::/8

While ip route output does not.


Expected results:

ff00::/8 not included in `NM.IPConfig.get_routes()`

Additional info:

Full command line outputs:

[fge@el8 ~]$ sudo nmcli c add type dummy ifname dummy1 \
>     connection.id dummy1 \
>     ipv4.method disabled \
>     ipv6.method static ipv6.address 2001:db8:b::/64
Connection 'dummy1' (a408cf03-0c79-444b-a910-31ff6a7d5891) successfully added.
[fge@el8 ~]$ ip -6 route show dev dummy1
2000::/64 proto kernel metric 550 pref medium
fe80::/64 proto kernel metric 550 pref medium
[fge@el8 ~]$ rpm -q NetworkManager
NetworkManager-1.27.0-26090.56b15ca0b6.el8.x86_64
[fge@el8 ~]$ ./nm_route_query.py
ff00::/8  dummy1/a408cf03-0c79-444b-a910-31ff6a7d5891
2001:db8:b::/64  dummy1/a408cf03-0c79-444b-a910-31ff6a7d5891
fe80::/64  dummy1/a408cf03-0c79-444b-a910-31ff6a7d5891

Comment 1 Beniamino Galvani 2020-06-18 05:02:09 UTC
Route ff00::/8 is in a table different from 'main'. To show all routes for dummy1 use:

  ip -6 route show dev dummy1 table all

To obtain the table from the NMIPRoute object use 'route.get_attribute("table")', which returns a uint32 gvariant or None.

Comment 2 Gris Ge 2020-06-18 06:11:57 UTC
Oops. My fault. Not a bug.


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