Page MenuHomeVyOS Platform

VPP CPU workers should be calculated and verified
In progress, NormalPublicBUG

Description

VPP CPU workers should be calculated and verified
Config to reproduce:

set vpp settings cpu workers 234
set vpp settings interface eth1 driver dpdk 
commit

commit:

vyos@r14# commit
[ vpp ]
Traceback (most recent call last):
  File "/usr/libexec/vyos/services/vyos-configd", line 139, in run_script
    script.apply(c)
  File "/usr/libexec/vyos//conf_mode/vpp.py", line 472, in apply
    vpp_control = VPPControl(attempts=20, interval=500)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/vpp/control_vpp.py", line 109, in __init__
    raise VPPIOError(2, 'Cannot connect to VPP API')
vpp_papi.vpp_papi.VPPIOError: [Errno 2] Cannot connect to VPP API

[[vpp]] failed
Commit failed
[edit]
vyos@r14#

System does not have this amount of CPUs

vyos@r14# sudo /usr/bin/vpp -c /run/vpp/vpp.conf
vpp[5617]: vlib_thread_init: no available cpus to be used for the 'workers' thread #234
[edit]
vyos@r14# 

vyos@r14# lscpu | grep -i on-line
On-line CPU(s) list:                  0-3
[edit]
vyos@r14#

Details

Version
VyOS 1.5-current-vpp-202501211103
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Related Objects