Page MenuHomeVyOS Platform

hsflowd fails to start when using a tunnel interface
Open, LowPublic

Description

When adding sflow to a tunnel interface hsflowd fails to restart.

VRF interfaces

Name     State    MAC address        Flags                     Interfaces
-------  -------  -----------------  ------------------------  --------------------
AS23428  up       06:58:65:b8:30:97  noarp,master,up,lower_up  eth0,eth2,tun20,tun0

example config

set system sflow agent-interface 'tun0'
set system sflow interface 'tun0'
set system sflow sampling-rate '1000'
set system sflow server 2602:fb68:140::2d
set system sflow vrf 'AS23428'
Feb 11 16:12:44 ix-1 systemd[1]: Started hsflowd.service - Host sFlow.
Feb 11 16:12:44 ix-1 ip[162730]: /usr/sbin/hsflowd(log_backtrace+0x2e)[0x55ab2eaf1cce]
Feb 11 16:12:44 ix-1 ip[162730]: /usr/sbin/hsflowd(+0x11ed9)[0x55ab2eaf1ed9]
Feb 11 16:12:44 ix-1 ip[162730]: /lib/x86_64-linux-gnu/libc.so.6(+0x3bfd0)[0x7fbaa54fdfd0]
Feb 11 16:12:44 ix-1 ip[162730]: /etc/hsflowd/modules/mod_pcap.so(+0x1954)[0x7fbaa56a6954]
Feb 11 16:12:44 ix-1 ip[162730]: /etc/hsflowd/modules/mod_pcap.so(+0x1d3f)[0x7fbaa56a6d3f]
Feb 11 16:12:44 ix-1 ip[162730]: /usr/sbin/hsflowd(EVEventTx+0xf7)[0x55ab2eaf2bb7]
Feb 11 16:12:44 ix-1 ip[162730]: /usr/sbin/hsflowd(+0x12d59)[0x55ab2eaf2d59]
Feb 11 16:12:44 ix-1 ip[162730]: /usr/sbin/hsflowd(+0x1316a)[0x55ab2eaf316a]
Feb 11 16:12:44 ix-1 ip[162730]: /usr/sbin/hsflowd(+0x13340)[0x55ab2eaf3340]
Feb 11 16:12:44 ix-1 ip[162730]: /lib/x86_64-linux-gnu/libc.so.6(+0x89044)[0x7fbaa554b044]
Feb 11 16:12:44 ix-1 ip[162730]: /lib/x86_64-linux-gnu/libc.so.6(+0x10961c)[0x7fbaa55cb61c]
Feb 11 16:12:44 ix-1 ip[162730]: SIGSEGV, faulty address is (nil)
Feb 11 16:12:44 ix-1 ip[162730]: current bus: packet
Feb 11 16:12:44 ix-1 ip[162730]: /usr/sbin/hsflowd(log_backtrace+0x2e)[0x55ab2eaf1cce]
Feb 11 16:12:44 ix-1 ip[162730]: /usr/sbin/hsflowd(+0x11eeb)[0x55ab2eaf1eeb]
Feb 11 16:12:44 ix-1 ip[162730]: /lib/x86_64-linux-gnu/libc.so.6(+0x3bfd0)[0x7fbaa54fdfd0]
Feb 11 16:12:44 ix-1 ip[162730]: /etc/hsflowd/modules/mod_pcap.so(+0x1954)[0x7fbaa56a6954]
Feb 11 16:12:44 ix-1 ip[162730]: /etc/hsflowd/modules/mod_pcap.so(+0x1d3f)[0x7fbaa56a6d3f]
Feb 11 16:12:44 ix-1 ip[162730]: /usr/sbin/hsflowd(EVEventTx+0xf7)[0x55ab2eaf2bb7]
Feb 11 16:12:44 ix-1 ip[162730]: /usr/sbin/hsflowd(+0x12d59)[0x55ab2eaf2d59]
Feb 11 16:12:44 ix-1 ip[162730]: /usr/sbin/hsflowd(+0x1316a)[0x55ab2eaf316a]
Feb 11 16:12:44 ix-1 ip[162730]: /usr/sbin/hsflowd(+0x13340)[0x55ab2eaf3340]
Feb 11 16:12:44 ix-1 ip[162730]: /lib/x86_64-linux-gnu/libc.so.6(+0x89044)[0x7fbaa554b044]
Feb 11 16:12:44 ix-1 ip[162730]: /lib/x86_64-linux-gnu/libc.so.6(+0x10961c)[0x7fbaa55cb61c]
Feb 11 16:12:44 ix-1 ip[162730]: PCAP: tun0 has no supported datalink encapsulaton
Feb 11 16:12:44 ix-1 ip[162730]: Received signal 11
Feb 11 16:12:44 ix-1 ip[162730]: SIGSEGV, faulty address is (nil)
Feb 11 16:12:44 ix-1 ip[162730]: current bus: packet
Feb 11 16:12:44 ix-1 systemd[1]: hsflowd.service: Main process exited, code=exited, status=11/n/a
Feb 11 16:12:44 ix-1 systemd[1]: hsflowd.service: Failed with result 'exit-code'.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Seems its actually the tunnel interface it doesnt like, not the address.

ServerForge renamed this task from hsflowd fails to start when using a VRF to hsflowd fails to start when using a tunnel interface.Sun, Feb 11, 4:31 PM
ServerForge updated the task description. (Show Details)