Bug 1909798 - nmstate doesn't report link scoped route
Summary: nmstate doesn't report link scoped route
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nmstate
Version: 8.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.4
Assignee: Fernando F. Mancera
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-21 17:03 UTC by Mingyu Shi
Modified: 2021-11-09 20:16 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 17:42:57 UTC
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github nmstate nmstate pull 1508/commits/10ec554cf97c8c85159228789d8d6cf9de446328 0 None None None 2021-05-11 15:07:41 UTC
Red Hat Product Errata RHBA-2021:4157 0 None None None 2021-11-09 17:43:13 UTC

Description Mingyu Shi 2020-12-21 17:03:29 UTC
Description of problem:
nmstate doesn't report link scoped route.

Version-Release number of selected component (if applicable):
nmstate-1.0.0-1.el8.noarch
nispor-1.0.1-2.el8.x86_64
NetworkManager-1.30.0-0.4.el8.x86_64
DISTRO=RHEL-8.4.0-20201217.d.2
Linux hpe-dl380pgen8-02-vm-13.hpe2.lab.eng.bos.redhat.com 4.18.0-262.el8.dt3.x86_64 #1 SMP Tue Dec 15 04:28:42 EST 2020 x86_64 x86_64 x86_64 GNU/Linux


How reproducible:
100%

Steps to Reproduce:
echo "interfaces:
- name: dummy0
  type: dummy
  state: up
  ipv4:
    enabled: true
    address:
    - ip: 192.168.254.1
      prefix-length: 24" | nmstatectl set
# check routes.running
nmstatectl show

Actual results:
routes:
  config: []
  running: []
interfaces:
- name: dummy0
  type: dummy
  state: up
  ipv4:
    enabled: true
    address:
    - ip: 192.168.254.1
      prefix-length: 24
    dhcp: false

Expected results:
routes:
  config: []
  running:
  - destination: 192.168.254.0/24
    metric: 550
    next-hop-address: ''
    next-hop-interface: dummy0
    table-id: 254
interfaces:
- name: dummy0
  type: dummy
  state: up
  ipv4:
    enabled: true
    address:
    - ip: 192.168.254.1
      prefix-length: 24
    dhcp: false

Additional info:
It works well on rhel 8.3

Comment 1 Fernando F. Mancera 2021-05-11 15:07:45 UTC
This was fixed by the following PR, it was merged on upstream sometime ago: https://github.com/nmstate/nmstate/pull/1508/commits/10ec554cf97c8c85159228789d8d6cf9de446328

Comment 5 Mingyu Shi 2021-06-19 16:19:30 UTC
Verified with versions:
nmstate-1.1.0-0.3.alpha3.el8.noarch
nispor-1.1.0-2.el8.x86_64
NetworkManager-1.32.0-0.5.el8.x86_64

Comment 7 errata-xmlrpc 2021-11-09 17:42:57 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 (nmstate 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-2021:4157


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