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

The port counter and queue counter can’t work after config reload #12321

Open
kevinskwang opened this issue Oct 9, 2022 · 2 comments
Open
Labels
MSFT Triaged this issue has been triaged

Comments

@kevinskwang
Copy link
Contributor

kevinskwang commented Oct 9, 2022

Description

After did config reload or config load_minigraph, the port counter and queue counter can’t work. Need to manually clear the directory portstat-* and queuestat-* under /tmp, then it can work normally.
This is a generic issue, can be reproduced on multiple platform.

Steps to reproduce the issue:

  1. Running the system for a while, guarantee there are some portstat-, queuestats- directory generated under /tmp
  2. Checked the port/queue counter work normally using "show interface counter" and "show queue counter"
  3. config reload
  4. Check the port/queue counter again, it will show all zero even there are some traffic.
  5. Manually remove portstat-, queuestats- directory generated under /tmp
  6. Check the port/queue counter again, it will become normal.

Describe the results you received:

Describe the results you expected:

The port/queue counter should work normally after config reload, it should not rely on the clear of portstat-* and queuestat-*.

Output of show version:

The image is based on branch 202012

(paste your output here)

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):

@arlakshm
Copy link
Contributor

These PRs have the fixes for similar issue
sonic-net/sonic-utilities#2232
#11244

Details in the issue #9817

Can you check patch these fixes locally and verify if the issue is fixed.

@arlakshm arlakshm added Triaged this issue has been triaged MSFT labels Oct 26, 2022
@arlakshm
Copy link
Contributor

Please create a testgap issue for this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MSFT Triaged this issue has been triaged
Projects
None yet
Development

No branches or pull requests

2 participants