Page MenuHomeVyOS Platform

Show conntrack statistics formatting is all over the place
Closed, ResolvedPublicBUG

Description

vyos@vyos:~$ show version 
Version:          VyOS 1.5-rolling-202312010026
Release train:    current

Built by:         [email protected]
Built on:         Fri 01 Dec 2023 01:45 UTC
Build UUID:       fc11f2ef-580c-459c-bc97-ffaf9151f046
Build commit ID:  e4e3701775b91d

Architecture:     x86_64
Boot via:         livecd
System type:      bare metal

Hardware vendor:  To Be Filled By O.E.M.
Hardware model:   To Be Filled By O.E.M.
Hardware S/N:     To Be Filled By O.E.M.
Hardware UUID:    03000200-0400-0500-0006-000700080009

Copyright:        VyOS maintainers and contributors
vyos@vyos:~$ show conntrack statistics 
                          CPU          Found            Invalid           Insert        Insert fail    Drop              Early drop        Errors      Search restart
-------------  ---------  -----------  ---------------  ----------------  ------------  -------------  ----------------  ----------------  ----------  ----------------
cpu=0          found=0    invalid=330  insert=0         insert_failed=8   drop=8        early_drop=0   error=0           search_restart=0  (null)=138  (null)=0
cpu=1          found=0    invalid=320  insert=0         insert_failed=15  drop=15       early_drop=0   error=0           search_restart=0  (null)=141  (null)=0
cpu=2          found=0    invalid=349  insert=0         insert_failed=18  drop=18       early_drop=0   error=0           search_restart=0  (null)=138  (null)=0
cpu=3          found=0    invalid=363  insert=0         insert_failed=10  drop=10       early_drop=0   error=1           search_restart=0  (null)=160  (null)=0
cpu=4          found=0    invalid=0    insert=0         insert_failed=0   drop=0        early_drop=0   error=0           search_restart=0  (null)=0    (null)=0
cpu=5          found=0    invalid=0    insert=0         insert_failed=0   drop=0        early_drop=0   error=0           search_restart=0  (null)=0    (null)=0
cpu=6          found=0    invalid=0    insert=0         insert_failed=0   drop=0        early_drop=0   error=0           search_restart=0  (null)=0    (null)=0
cpu=7          found=0    invalid=0    insert=0         insert_failed=0   drop=0        early_drop=0   error=0           search_restart=0  (null)=0    (null)=0
cpu=8          found=0    invalid=0    insert=0         insert_failed=0   drop=0        early_drop=0   error=0           search_restart=0  (null)=0    (null)=0
cpu=9          found=0    invalid=0    insert=0         insert_failed=0   drop=0        early_drop=0   error=0           search_restart=0  (null)=0    (null)=0
cpu=10found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=11found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=12found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=13found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=14found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=15found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=16found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=17found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=18found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=19found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=20found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=21found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=22found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=23found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=24found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=25found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=26found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=27found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=28found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=29found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=30found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
cpu=31found=0  invalid=0  insert=0     insert_failed=0  drop=0            early_drop=0  error=0        search_restart=0  (null)=0          (null)=0
vyos@vyos:~$

image.png (654×1 px, 178 KB)

Should look more like this:

image.png (616×763 px, 44 KB)

Details

Difficulty level
Easy (less than an hour)
Version
1.5-rolling-202312010026
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

Viacheslav changed the task status from Open to In progress.Tue, Apr 9, 10:30 AM
Viacheslav claimed this task.
Viacheslav added a subscriber: Viacheslav.

PR https://github.com/vyos/vyos-1x/pull/3280

vyos@r15-left:~$ show conntrack statistics 
CPU    Found    Invalid    Insert    Insert fail    Drop    Early drop    Errors    Search restart
-----  -------  ---------  --------  -------------  ------  ------------  --------  ----------------  --  --
0      0        280        0         1              1       0             1         0                 2   0
1      0        73         0         0              0       0             126       0                 1   0
vyos@r15-left:~$