Debian Networking: static routes are not applying metric parameter

Bug #1977983 reported by Andre Kantek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Andre Kantek

Bug Description

Brief Description

It was detected during tests that the parameter metric is not correctly applied on the kernel's routing table.

This parameter can be applied with the system API, if using CLI with the command:

system host-route-add [node] [interface] [route] [prefix] [gateway] [metric]

Severity

<Minor: System/Feature is usable with minor issue>

Steps to Reproduce

Add a route:
system host-route-add 1 oam0 54:ff9b:: 64 fd00::1 22

Expected Behavior

metric 22 should be seen on the kernel with the command "ip -6 route"

Actual Behavior

Route is created but the metric value is not

Reproducibility

Reproducible: issue is 100% reproducible

System Configuration

AIO-Simplex with IPv6 (in VBox)

Load info (eg: 2022-03-10_20-00-07)

BUILD_ID="2022-06-02_19-00-01"

Last Pass

First execution on Debian

Test Activity

Developer Testing

Workaround

none

Andre Kantek (akantek)
Changed in starlingx:
assignee: nobody → Andre Kantek (akantek)
Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to integ (master)

Reviewed: https://review.opendev.org/c/starlingx/integ/+/844985
Committed: https://opendev.org/starlingx/integ/commit/d9e3a96fc3bd8995ba75bf5881801a821e23c7b9
Submitter: "Zuul (22348)"
Branch: master

commit d9e3a96fc3bd8995ba75bf5881801a821e23c7b9
Author: Andre Fernando Zanella Kantek <email address hidden>
Date: Tue Jun 7 09:56:40 2022 -0300

    Debian: process route metric parameter

    It was detected that the static route's metric parameter is not
    applied on the kernel if configured on sysinv database. The cause is
    located on the puppet-network module not adding the information to
    /var/run/network-scripts.puppet/routes.

    This change adds the necessary modification to process the options
    field on the hiera file.

    Test Plan:
    PASS set parameter with system host-route-add and lock/unlock and
          verify metric value on the kernel

    Closes-Bug: 1977983

    Signed-off-by: Andre Fernando Zanella Kantek <email address hidden>
    Change-Id: Iafeb2f1d8f6280c84d66398c1d21dbbfe1869a09

Changed in starlingx:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to stx-puppet (master)

Reviewed: https://review.opendev.org/c/starlingx/stx-puppet/+/844986
Committed: https://opendev.org/starlingx/stx-puppet/commit/86401ca3cfe7fafb71a1bb4fec76888fda103439
Submitter: "Zuul (22348)"
Branch: master

commit 86401ca3cfe7fafb71a1bb4fec76888fda103439
Author: Andre Fernando Zanella Kantek <email address hidden>
Date: Tue Jun 7 09:55:06 2022 -0300

    Debian: process route metric parameter

    If the file /var/run/network-scripts.puppet/routes contains the metric
    value, it is not processed by apply_network_config.sh

    This change adds the field to be parsed and used with "ip route add"

    Test Plan:
    PASS set parameter with system host-route-add and lock/unlock and
          verify metric value on the kernel

    Depends-On: https://review.opendev.org/c/starlingx/integ/+/844985

    Closes-Bug: 1977983

    Signed-off-by: Andre Fernando Zanella Kantek <email address hidden>
    Change-Id: I60473b0a5471592fc5f07478fe5e82ee55d3be9e

Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Medium
tags: added: stx.7.0 stx.debian stx.networking
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.