Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dual-ToR Active-Active][202405] "show flowcnt-route stats" returns empty line after 'config reload' #20924

Open
ayurkiv-nvda opened this issue Nov 26, 2024 · 0 comments

Comments

@ayurkiv-nvda
Copy link
Contributor

ayurkiv-nvda commented Nov 26, 2024

Description

flowcnt-route entry wasn't preserved after 'config reload'
Reproduced only on Dual-Tor setup on 202405.704663-29cbc5423
Not Reproduced on t0-64 setup on 202405
Not reproduced on Dual-ToR setup on 202311.700331-57677f3da

Steps to reproduce the issue:

Manual:

  1. configure neighbors
  2. sonic-db-cli CONFIG_DB hmset 'STATIC_ROUTE|2.2.2.0/24' nexthop 192.168.0.2,192.168.0.6,192.168.0.22
  3. counterpoll flowcnt-route interval 1000
  4. counterpoll flowcnt-route enable
  5. sudo config flowcnt-route pattern add 2.2.2.0/24 --max 30
  6. make sure that flowcnt-route entry is created:
    show flowcnt-route stats
  Route pattern      VRF    Matched routes    Packets    Bytes
---------------  -------  ----------------  ---------  -------
     2.2.2.0/24  default        2.2.2.0/24          0        0
  1. config save -y
  2. config reload -y
  3. wait until all dockers UP and RUNNING, all bgp session established

Automatic:

  1. run test route/test_static_route.py::test_static_route_ecmp
    AssertionError: config static route: 2.2.2.0/24 nexthop 192.168.0.18,192.168.0.8,192.168.0.2 <--- received during test run

Describe the results you received:

go to SONIC and check:
show flowcnt-route stats

Route pattern      VRF    Matched routes    Packets    Bytes
---------------  -------  ----------------  ---------  -------

<--- Empty

Describe the results you expected:

show flowcnt-route stats

  Route pattern      VRF    Matched routes    Packets    Bytes
---------------  -------  ----------------  ---------  -------
     3.2.2.0/24  default        2.2.2.0/24          0        0

Output of show version:

202405.704663-29cbc5423

Output of show techsupport:

(paste your output here or download and attach the file here )

Additional information you deem important (e.g. issue happens only occasionally):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant