Page MenuHomeVyOS Platform

flow-accounting: "disable-imt" and "show flow-accounting" gives PermissionError
Closed, InvalidPublicBUG

Description

set system flow-accounting disable-imt
set system flow-accounting interface 'eth0.10'
set system flow-accounting interface 'eth0.100'
set system flow-accounting interface 'eth0.35'
set system flow-accounting interface 'eth0.5'
set system flow-accounting interface 'eth0.50'
set system flow-accounting netflow server 172.16.33.30
set system flow-accounting netflow version '10'

returns

[email protected]# run show flow-accounting
Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/flow_accounting_op.py", line 244, in <module>
    flows_list = _get_flows_list()
  File "/usr/libexec/vyos/op_mode/flow_accounting_op.py", line 98, in _get_flows_list
    message='Failed to get flows list')
  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]

Details

Difficulty level
Easy (less than an hour)
Version
1.3.0
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)