Page MenuHomeVyOS Platform

Op-mode flow-accounting netflow with disable-imt errors
Closed, ResolvedPublicBUG

Description

Use disable-imt and try to show flow-accounting

set system flow-accounting interface 'eth3'
set system flow-accounting netflow engine-id '53'
set system flow-accounting netflow server 192.168.122.11 port '2055'
set system flow-accounting netflow version '10'
set system flow-accounting disable-imt

show flow-accounting

vyos@r14# run show flow-accounting 
Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/flow_accounting_op.py", line 249, in <module>
    flows_list = _get_flows_list()
                 ^^^^^^^^^^^^^^^^^
  File "/usr/libexec/vyos/op_mode/flow_accounting_op.py", line 99, in _get_flows_list
    out = cmd(f'/usr/bin/pmacct -s -O json -T flows -p {uacctd_pipefile}',
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/util.py", line 161, in cmd
    raise OSError(code, feedback)
PermissionError: [Errno 1] Failed to get flows list
failed to run command: /usr/bin/pmacct -s -O json -T flows -p /tmp/uacctd.pipe
returned: INFO: Connection refused while trying to connect to '/tmp/uacctd.pipe'
exit code: 1
[edit]
vyos@r14# 
[edit]
vyos@r14# 
[edit]
vyos@r14# 
[edit]
vyos@r14# run show flow-accounting interface eth3
Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/flow_accounting_op.py", line 249, in <module>
    flows_list = _get_flows_list()
                 ^^^^^^^^^^^^^^^^^
  File "/usr/libexec/vyos/op_mode/flow_accounting_op.py", line 99, in _get_flows_list
    out = cmd(f'/usr/bin/pmacct -s -O json -T flows -p {uacctd_pipefile}',
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/util.py", line 161, in cmd
    raise OSError(code, feedback)
PermissionError: [Errno 1] Failed to get flows list
failed to run command: /usr/bin/pmacct -s -O json -T flows -p /tmp/uacctd.pipe
returned: INFO: Connection refused while trying to connect to '/tmp/uacctd.pipe'
exit code: 1
[edit]
vyos@r14#

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.4-rolling-202305210317
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

Viacheslav renamed this task from Op-mode flow-accounting with disable-imt errors to Op-mode flow-accounting netflow with disable-imt errors.May 21 2023, 8:45 AM
Viacheslav created this task.
zsdc changed the task status from Open to In progress.Oct 12 2023, 5:30 PM
zsdc claimed this task.
zsdc added a subscriber: zsdc.

This should fix the problem: https://github.com/vyos/vyos-1x/pull/2361

a.apostoliuk changed the task status from In progress to Needs testing.Oct 20 2023, 8:31 AM