Page MenuHomeVyOS Platform

VPP: enabling VPP twice results in FileExistsError exception
Closed, ResolvedPublic

Description

vyos@vyos# set vpp settings interface eth0
[edit]
vyos@vyos# commit
[ vpp ]
WARNING: NOTE: Current dataplane capacity (estimated): 2.1 M IPv4
routes. Exceeding these values will lead to a dataplane out-of-memory
condition and a crash. Extensive use of features like ACLs, NAT and
others may reduce the numbers above. Please read the documentation for
details: https://docs.vyos.io/


[edit]
vyos@vyos# del vpp
[edit]
vyos@vyos# commit
[edit]
vyos@vyos# set vpp settings interface eth0
[edit]
vyos@vyos# commit
[ vpp ]
WARNING: NOTE: Current dataplane capacity (estimated): 2.1 M IPv4
routes. Exceeding these values will lead to a dataplane out-of-memory
condition and a crash. Extensive use of features like ACLs, NAT and
others may reduce the numbers above. Please read the documentation for
details: https://docs.vyos.io/

Traceback (most recent call last):
  File "/usr/libexec/vyos/services/vyos-configd", line 157, in run_script
    script.apply(c)
  File "/usr/libexec/vyos/conf_mode/vpp.py", line 686, in apply
    persist_config = JSONStorage('vpp_conf')
                     ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/vpp/configdb.py", line 55, in __init__
    raise FileExistsError(f'Cannot open locked storage: {self.__storage}')
FileExistsError: Cannot open locked storage: /run/vpp/vpp_conf.json

[[vpp]] failed
Commit failed
[edit]

Details

Version
-
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)