Page MenuHomeVyOS Platform

VPP assign IP address on the kernel inteface in one commit fails
Closed, ResolvedPublicBUG

Description

  1. Assign IP address on the kernel inteface in one commit fails
set interfaces ethernet eth1 address 192.0.2.1/30
set vpp settings interface eth1 driver 'dpdk'
set vpp interfaces gre gre2 remote '192.0.2.25'
set vpp interfaces gre gre2 source-address '192.0.2.1'
set vpp interfaces gre gre2 kernel-interface 'vpptun12'
set vpp kernel-interfaces vpptun12 address '10.0.0.0/31'
commit

commit:

vyos@r14# commit
[ vpp kernel-interfaces vpptun12 ]
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_kernel-interfaces.py", line 100, in apply
    i = Interface(ifname)
        ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 341, in __init__
    self._create()
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 362, in _create
    self._cmd(cmd)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 64, in _cmd
    return cmd(command, self.debug, env=env)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/utils/process.py", line 187, in cmd
    raise OSError(code, feedback)
PermissionError: [Errno 1] failed to run command:  ip link add dev vpptun12
returned: 
exit code: 1

[[vpp kernel-interfaces vpptun12]] failed
Commit failed
[edit]
vyos@r14#

Related logs:

Jan 27 20:39:58 r14 vyos-configd[795]: Received message: {"type": "node", "last": true, "data": "VYOS_TAGNODE_VALUE=vpptun12/usr/libexec/vyos/conf_mode/vpp_kernel-interfaces.py"}
Jan 27 20:39:58 r14 vpp[5580]: interface: hw_add_del_mac_address: vnet_hw_interface_add_del_mac_address: Secondary MAC Addresses not supported for interface index 3
Jan 27 20:39:58 r14 vpp[5580]: interface: hw_add_del_mac_address: vnet_hw_interface_add_del_mac_address: Secondary MAC Addresses not supported for interface index 3
Jan 27 20:39:58 r14 vpp[5580]: interface: hw_add_del_mac_address: vnet_hw_interface_add_del_mac_address: Secondary MAC Addresses not supported for interface index 3
Jan 27 20:39:58 r14 vyos-configd[795]: Sending reply: error_code 1 with output
Jan 27 20:39:58 r14 vyos-configd[795]: scripts_called: ['vpp', 'vpp_interfaces_gre_gre2', 'vpp_kernel-interfaces_vpptun12']
Jan 27 20:39:58 r14 systemd[1]: opt-vyatta-config-tmp-new_config_4838.mount: Deactivated successfully.
Jan 27 20:39:59 r14 vpp[5580]: received signal SIGSEGV, PC 0x7fd714b74883, faulting address 0x7fe6d4828ca0
Jan 27 20:39:59 r14 vpp[5580]: #0  0x00007fd7141ad162 0x7fd7141ad162
Jan 27 20:39:59 r14 vpp[5580]: #1  0x00007fd713ecd050 0x7fd713ecd050
Jan 27 20:39:59 r14 vpp[5580]: #2  0x00007fd714b74883 0x7fd714b74883
Jan 27 20:39:59 r14 vpp[5580]: #3  0x00007fd71414ea9b 0x7fd71414ea9b
Jan 27 20:39:59 r14 vpp[5580]: #4  0x00007fd714154045 vlib_main + 0x1195
Jan 27 20:39:59 r14 vpp[5580]: #5  0x00007fd7141ac58a 0x7fd7141ac58a
Jan 27 20:39:59 r14 vpp[5580]: #6  0x00007fd71410995c 0x7fd71410995c
Jan 27 20:39:59 r14 netplugd[1066]: eth1: state INNING flags 0x00011043 UP,BROADCAST,RUNNING,MULTICAST,10000 -> 0x00001002 BROADCAST,MULTICAST
Jan 27 20:39:59 r14 commit[5756]: Successful change to active configuration by user vyos on /dev/pts/2
Jan 27 20:39:59 r14 systemd[1]: vpp.service: Main process exited, code=killed, status=6/ABRT
Jan 27 20:39:59 r14 systemd[1]: vpp.service: Failed with result 'signal'.
Jan 27 20:39:59 r14 systemd[1]: vpp.service: Consumed 4.034s CPU time.
Jan 27 20:40:00 r14 netplugd[5759]: /etc/netplug/netplug eth1 probe -> pid 5759
Jan 27 20:40:00 r14 netplugd[1066]: eth1: can't get flags: No such device
Jan 27 20:40:00 r14 netplugd[1066]: eth1: can't get flags: No such device
  1. If add in 2 commit it seems working:
set interfaces ethernet eth1 address 192.0.2.1/30
set vpp settings interface eth1 driver 'dpdk'
set vpp interfaces gre gre2 remote '192.0.2.25'
set vpp interfaces gre gre2 source-address '192.0.2.1'
set vpp interfaces gre gre2 kernel-interface 'vpptun12'
commit

set vpp kernel-interfaces vpptun12 address '10.0.0.0/31'
commit

Deleting log:

vyos@r14# delete vpp 
[edit]
vyos@r14# commit
[ vpp kernel-interfaces vpptun12 ]
Interface vpptun12 must be created before using in configuration
delete [ vpp kernel-interfaces vpptun12 ] failed
delete [ vpp ] failed
Commit failed
[edit]
vyos@r14#

Could be related to these changes https://vyos.dev/T7093 or VPP connection speed to the API

Details

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

Event Timeline

Viacheslav triaged this task as Normal priority.
Viacheslav updated the task description. (Show Details)
Viacheslav renamed this task from Assign IP address on the kernel inteface in one commit fails to VPP assign IP address on the kernel inteface in one commit fails.Jan 27 2025, 6:56 PM
Viacheslav changed Version from VyOS 1.5-current-vpp-20250127 to VyOS 1.5-current-vpp-202501271855.
Viacheslav claimed this task.
Viacheslav moved this task from Need Triage to Completed on the VyOS Rolling board.

Fixed without sleep used 04-patch