Page MenuHomeVyOS Platform

Cannot delete flow-accounting interfaces
Closed, InvalidPublicBUG

Description

I'm unable to delete interfaces under system flow-accounting

I have changed the $table_chain_entry from early to late in the /opt/vyatta/sbin/vyatta-netflow.pl file
And @Viacheslav on suggested on slack that it might be an issue, and that I have to delete each interface in the right order they where added, with the correct $table_chain_entry value.

All interfaces configured under system flow-accounting exist on my system

I tried to:

  1. Delete each interface 1 by 1 when the value was 'late', every commit fails.
  2. Delete each interface 1 by 1 when the value was 'early', every commit fails.
  3. Add a fifth interface and delete it successfully.
olof@o6-80003# grep 'my $table_chain_entry' /opt/vyatta/sbin/vyatta-netflow.pl
my $table_chain_entry = "late";
[edit]
olof@o6-80003# show system flow-accounting 
 interface eth0.42
 interface eth1.1806
 interface ifb042
 interface tun0
 netflow {
     server 172.23.253.21 {
         port 4739
     }
     source-ip 172.18.255.26
     version 10
 }
 syslog-facility daemon
[edit]
olof@o6-80003# delete system flow-accounting interface eth0.42 
[edit]
olof@o6-80003# commit
[ system flow-accounting interface eth0.42 ]
Error: failed to find target

[[system flow-accounting]] failed
Commit failed
[edit]
olof@o6-80003# discard 

  Changes have been discarded

[edit]
olof@o6-80003# delete system flow-accounting interface eth1.1806 
[edit]
olof@o6-80003# commit
[ system flow-accounting interface eth1.1806 ]
Error: failed to find target

[[system flow-accounting]] failed
Commit failed
[edit]
olof@o6-80003# discard 

  Changes have been discarded

[edit]
olof@o6-80003# delete system flow-accounting interface ifb042 
[edit]
olof@o6-80003# commit
[ system flow-accounting interface ifb042 ]
Error: failed to find target

[[system flow-accounting]] failed
Commit failed
[edit]
olof@o6-80003# discard 

  Changes have been discarded

[edit]
olof@o6-80003# delete system flow-accounting interface tun0 
[edit]
olof@o6-80003# commit
[ system flow-accounting interface tun0 ]
Error: failed to find target

[[system flow-accounting]] failed
Commit failed
[edit]
olof@o6-80003# discard 

  Changes have been discarded
Adding an interface, and deleting it works fine.
olof@o6-80003# set system flow-accounting interface eth1.1728
[edit]
olof@o6-80003# show system flow-accounting 
 interface eth0.42
 interface eth1.1806
 interface ifb042
 interface tun0
+interface eth1.1728
 netflow {
     server 172.23.253.21 {
         port 4739
     }
     source-ip 172.18.255.26
     version 10
 }
 syslog-facility daemon
[edit]
olof@o6-80003# commit
[ system flow-accounting interface eth1.1728 ]
Adding flow-accounting for [eth1.1728]

[edit]
olof@o6-80003# delete system flow-accounting interface eth1.1728 
[edit]
olof@o6-80003# show system flow-accounting interface 
-interface eth1.1728
 interface eth0.42
 interface eth1.1806
 interface ifb042
 interface tun0
[edit]
olof@o6-80003# commit
[ system flow-accounting interface eth1.1728 ]
Removing flow-accounting for [eth1.1728]
When deleting a non-working interface from the config, notice how the "compare" shows that all other interfaces has "changed"
olof@o6-80003# delete system flow-accounting interface eth0.42 
[edit]
olof@o6-80003# show system flow-accounting interface 
-interface eth0.42
>interface eth1.1806
>interface ifb042
>interface tun0
[edit]
olof@o6-80003# commit
[ system flow-accounting interface eth0.42 ]
Error: failed to find target

Details

Difficulty level
Unknown (require assessment)
Version
VyOS v1.2.3
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Stricter validation

Event Timeline

olofl created this task.Jan 7 2020, 8:09 AM
pasik added a subscriber: pasik.Jan 7 2020, 2:46 PM

Update
The problem was resolved by manually removing the interfaces from the file /config/config.boot (section flow-accounting)

syncer closed this task as Invalid.Mar 28 2020, 12:18 PM
syncer edited projects, added Rejected; removed VyOS 1.2 Crux.