Page MenuHomeVyOS Platform

Setting same network in different ospf area will raise exception
Closed, ResolvedPublicBUG

Description

When user tries to commit the network which existing in another ospf area, it does not check but direct call frr to update.
The system will raise python exception. It should be check when commit.

Reproduce Log:

vyos@vyos# set protocols ospf area 1 network '10.65.1.3/32'
[edit]
vyos@vyos# commit
[edit]
vyos@vyos# set protocols ospf area 2 network '10.65.1.3/32'
[edit]
vyos@vyos# commit
[ protocols ospf ]
VyOS had an issue completing a command.

We are sorry that you encountered a problem while using VyOS.
There are a few things you can do to help us (and yourself):

When reporting problems, please include as much information as possible:

  • do not obfuscate any data (feel free to contact us privately if your business policy requires it)
  • and include all the information presented below

Report time: 2024-02-26 12:02:27
Image version: VyOS 1.4.0-epa1
Release train: sagitta

Built by: Sentrium S.L.
Built on: Thu 22 Feb 2024 19:17 UTC
Build UUID: 97f0c92c-b99d-4bde-a67f-079ca030f2a1
Build commit ID: bcac2eb1f9b49c

Architecture: x86_64
Boot via: installed image
System type: VMware guest

Hardware vendor: VMware, Inc.
Hardware model: VMware Virtual Platform
Hardware S/N: VMware-56 4d 81 f4 bb 9f 3b ea-ce 03 fa 73 2c 83 2e 0d
Hardware UUID: f4814d56-9fbb-ea3b-ce03-fa732c832e0d

Traceback (most recent call last):

File "/usr/libexec/vyos/conf_mode/protocols_ospf.py", line 280, in <module>
  apply(c)
File "/usr/libexec/vyos/conf_mode/protocols_ospf.py", line 271, in apply
  frr_cfg.commit_configuration(ospf_daemon)
File "/usr/lib/python3/dist-packages/vyos/frr.py", line 482, in commit_configuration
  raise ConfigurationNotValid(f'Config commit retry counter ({count_max}) exceeded for {daemon} dameon!')

vyos.frr.ConfigurationNotValid: Config commit retry counter (5) exceeded for ospfd dameon!

protocols ospf failed
Commit failed
[edit]
vyos@vyos#

Details

Difficulty level
Easy (less than an hour)
Version
1.4.0-rc1
Why the issue appeared?
Other
Is it a breaking change?
Stricter validation
Issue type
Bug (incorrect behavior)

Event Timeline

jalen created this object in space S1 VyOS Public.
jalen updated the task description. (Show Details)
Viacheslav changed the subtype of this task from "Task" to "Bug".
c-po changed the task status from Open to In progress.Mar 24 2024, 7:47 PM
c-po claimed this task.
c-po raised the priority of this task from Low to Normal.
c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po changed Version from - to 1.4.0-rc1.
c-po changed Why the issue appeared? from Will be filled on close to Other.
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Stricter validation.