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 1909729 - Only a default gw is supported per device
Summary: Only a default gw is supported per device
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nmstate
Version: 8.3
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: 8.4
Assignee: Gris Ge
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On:
Blocks: 1910193
TreeView+ depends on / blocked
 
Reported: 2020-12-21 13:56 UTC by Quique Llorente
Modified: 2021-05-18 15:18 UTC (History)
6 users (show)

Fixed In Version: nmstate-1.0.0-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1910193 (view as bug list)
Environment:
Last Closed: 2021-05-18 15:18:22 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1879458 0 unspecified CLOSED Bridge creation fails on CNV due to def route lost 2023-09-18 00:22:26 UTC

Description Quique Llorente 2020-12-21 13:56:21 UTC
Description of problem:

Trying to configure a pair of default gw towards the same devices with desiredState:

routes:
  config:
  - destination: 0.0.0.0/0
    next-hop-address: 192.168.123.1
    next-hop-interface: eth1
  - destination: 0.0.0.0/0
    next-hop-address: 192.168.123.2
    next-hop-interface: eth1
    metrics: 103
interfaces:
  - name: eth1
    type: ethernet
    state: up
    ipv4:
      enabled: true
      dhcp: false
      address:
        - ip: 192.168.123.200
          prefix-length: 24

Ends with the following error:

2020-12-21 11:40:32,675 root         DEBUG    Async action: Create checkpoint started
2020-12-21 11:40:32,678 root         DEBUG    Checkpoint None created for all devices
2020-12-21 11:40:32,678 root         DEBUG    Async action: Create checkpoint finished
2020-12-21 11:40:32,679 root         DEBUG    Async action: Rollback to checkpoint /org/freedesktop/NetworkManager/Checkpoint/64 started
2020-12-21 11:40:32,680 root         DEBUG    Checkpoint /org/freedesktop/NetworkManager/Checkpoint/64 rollback executed
2020-12-21 11:40:32,681 root         DEBUG    Interface eth0 rollback succeeded
2020-12-21 11:40:32,681 root         DEBUG    Interface eth1 rollback succeeded
2020-12-21 11:40:32,681 root         DEBUG    Interface lo rollback succeeded
2020-12-21 11:40:32,681 root         DEBUG    Async action: Rollback to checkpoint /org/freedesktop/NetworkManager/Checkpoint/64 finished
Traceback (most recent call last):
  File "/bin/nmstatectl", line 11, in <module>
    load_entry_point('nmstate==0.3.6', 'console_scripts', 'nmstatectl')()
  File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 69, in main
    return args.func(args)
  File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 268, in apply
    args.save_to_disk,
  File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 308, in apply_state
    save_to_disk=save_to_disk,
  File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 71, in apply
    _apply_ifaces_state(plugins, net_state, verify_change, save_to_disk)
  File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 104, in _apply_ifaces_state
    plugin.apply_changes(net_state, save_to_disk)
  File "/usr/lib/python3.6/site-packages/libnmstate/nm/plugin.py", line 178, in apply_changes
    nm_applier.apply_changes(self.context, net_state, save_to_disk)
  File "/usr/lib/python3.6/site-packages/libnmstate/nm/applier.py", line 140, in apply_changes
    original_desired_iface_state,
  File "/usr/lib/python3.6/site-packages/libnmstate/nm/applier.py", line 485, in _build_connection_profile
    iface_desired_state.get(Interface.IPV4), base_profile
  File "/usr/lib/python3.6/site-packages/libnmstate/nm/ipv4.py", line 77, in create_setting
    setting_ipv4, config.get(BaseIface.ROUTES_METADATA, [])
  File "/usr/lib/python3.6/site-packages/libnmstate/nm/route.py", line 161, in add_routes
    "Only a single default gateway is supported due to a "
libnmstate.error.NmstateNotImplementedError: Only a single default gateway is supported due to a limitation of NetworkManager: https://bugzilla.redhat.com/1707396


Version-Release number of selected component (if applicable):


How reproducible:



Steps to Reproduce:
1. Apply the desired state from the description.
2.
3.

Actual results:
Only a single default gateway is supported due to a limitation of NetworkManager: https://bugzilla.redhat.com/1707396



Expected results:
Both default gw to be created


Additional info:
NetworkManager/libnm version 1.26.
nmstate version 0.3.6-2

Comment 3 Mingyu Shi 2020-12-23 03:31:15 UTC
Tested as this bug has been fixed in https://bugzilla.redhat.com/show_bug.cgi?id=1896934

Comment 6 Mingyu Shi 2021-01-05 07:50:12 UTC
Verified with versions:
nmstate-1.0.0-1.el8.noarch
nispor-1.0.1-2.el8.x86_64
NetworkManager-1.30.0-0.5.el8.x86_64

Run kernel/networking/nmstate/libnmstate/func/route.sh: func test_default_gateways
all passed

Comment 8 errata-xmlrpc 2021-05-18 15:18:22 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:1748


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