Vyos 1.4 show conntrack table results in python error

Hello,

I’m running VyOS 1.4-rolling-202212210319 on two VM’s with conntrack-sync enabled. Upon running the ‘show conntrack table ipv6’ or ‘show conntrack table ipv4’ command, the following error is shown without conntrack data;

show conntrack table ipv4
Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/conntrack.py", line 148, in <module>
    res = vyos.opmode.run(sys.modules[__name__])
  File "/usr/lib/python3/dist-packages/vyos/opmode.py", line 212, in run
    res = func(**args)
  File "/usr/libexec/vyos/op_mode/conntrack.py", line 135, in show
    return get_formatted_output(conntrack_data)
  File "/usr/libexec/vyos/op_mode/conntrack.py", line 119, in get_formatted_output
    mark = meta['mark']
KeyError: 'mark'
show version
Version:          VyOS 1.4-rolling-202212210319
Release train:    current

Built by:         autobuild@vyos.net
Built on:         Wed 21 Dec 2022 03:19 UTC
Build UUID:       66e27f11-f6e4-4eaa-8d89-63b4b751da32
Build commit ID:  f906cf9a7b106b

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest

Hello @kartoffel.
Thank you for finding this bug. I created PR ⚓ T4890 show conntrack table ipv4 fail

1 Like