Page MenuHomeVyOS Platform

VPP unix poll-sleep-usec should be verified and fixed for correct range of values
Closed, ResolvedPublicBUG

Description

VPP unix poll-sleep-usec should be verified and fixed for correct range of values

set vpp settings interface eth1 driver dpdk 
set vpp settings unix poll-sleep-usec 4294967295
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 101, in __init__
    self.__vpp_api_client.connect('vpp-vyos')
  File "/usr/lib/python3/dist-packages/vpp_papi/vpp_papi.py", line 654, in connect
    return self.connect_internal(
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vpp_papi/vpp_papi.py", line 619, in connect_internal
    rv = self.transport.connect(name, pfx, msg_handler, rx_qlen, do_async)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vpp_papi/vpp_transport_socket.py", line 115, in connect
    msg = self._read()
          ^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vpp_papi/vpp_transport_socket.py", line 214, in _read
    hdr = self._read_fixed(16)
          ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vpp_papi/vpp_transport_socket.py", line 201, in _read_fixed
    got = self.socket.recv_into(view, left)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TimeoutError: timed out

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

The second bug is that the interface disappears from the system.

vyos@r14# run show int
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface    IP Address         MAC                VRF        MTU  S/L    Description
-----------  -----------------  -----------------  -------  -----  -----  -------------
dum0         203.0.113.1/32     be:62:fd:ba:50:50  default   1500  u/u
eth0         192.168.122.14/24  52:54:00:77:fa:36  default   1500  u/u
eth2         -                  52:54:00:d9:5e:73  default   1500  u/u

Details

Version
VyOS 1.5-current-vpp-202501211103
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)