Skip to content

"sonic-clear queuecounters" doesn't clear the VOQ counters  #15198

@rishabhhastu

Description

@rishabhhastu

Description

The issue is seen on 7800R3-48CQ2-LC,7800R3-48CQM2-LC, and 7800R3A-36DM2-LC. The command "sonic-clear queuecounters" doesn't clear up the VOQ counters which can be seen using the command "show queue counters --voq". However, the egress queue counters (show queue counters) still get cleared up.

Steps to reproduce the issue:

  1. Run traffic across the SONiC VOQ Chassis
  2. Verify the egress and voq counters using the commands "show queue counters ", "show queue counters --voq" respectively
  3. Clear the voq counters using the command "sonic-clear queuecounters"

Describe the results you received:

***************

Egress queue counters

***************

show queue  counters  | grep "Ethernet132"

Ethernet132    UC0      1094660240     869159650295        29124      23220137

Ethernet132    UC1               0                0            0             0

Ethernet132    UC2               0                0            0             0

Ethernet132    UC3               0                0            0             0

Ethernet132    UC4               0                0            0             0

Ethernet132    UC5               0                0            0             0

Ethernet132    UC6               0                0            0             0

Ethernet132    UC7               0                0            0             0

Ethernet132    MC8               0                0            0             0

Ethernet132    MC9               0                0            0             0

Ethernet132   MC10               0                0            0             0

Ethernet132   MC11               0                0            0             0

Ethernet132   MC12               0                0            0             0

Ethernet132   MC13               0                0            0             0

Ethernet132   MC14               0                0            0             0

Ethernet132   MC15               0                0            0             0



***************

VOQ counters

***************

show queue  counters --voq | grep "nfc456-5|Ethernet132"

nfc456-5|Ethernet132   VOQ0       604583245     472783637380            0             0

nfc456-5|Ethernet132   VOQ1               0                0            0             0

nfc456-5|Ethernet132   VOQ2               0                0            0             0

nfc456-5|Ethernet132   VOQ3               0                0            0             0

nfc456-5|Ethernet132   VOQ4               0                0            0             0

nfc456-5|Ethernet132   VOQ5               0                0            0             0

nfc456-5|Ethernet132   VOQ6               0                0            0             0

nfc456-5|Ethernet132   VOQ7               0                0            0             0

Clearing the counters

sonic-clear queuecounters

Clear and update saved counters for Ethernet0

Clear and update saved counters for Ethernet4

Clear and update saved counters for Ethernet8

Clear and update saved counters for Ethernet12

Clear and update saved counters for Ethernet16

Clear and update saved counters for Ethernet20

Clear and update saved counters for Ethernet24

Clear and update saved counters for Ethernet28

Clear and update saved counters for Ethernet32

Clear and update saved counters for Ethernet36

Clear and update saved counters for Ethernet40

Clear and update saved counters for Ethernet44

Clear and update saved counters for Ethernet48

Clear and update saved counters for Ethernet52

Clear and update saved counters for Ethernet56

Clear and update saved counters for Ethernet60

Clear and update saved counters for Ethernet64

Clear and update saved counters for Ethernet68

Clear and update saved counters for Ethernet72

Clear and update saved counters for Ethernet76

Clear and update saved counters for Ethernet80

Clear and update saved counters for Ethernet84

Clear and update saved counters for Ethernet88

Clear and update saved counters for Ethernet92

Clear and update saved counters for Ethernet96

Clear and update saved counters for Ethernet100

Clear and update saved counters for Ethernet104

Clear and update saved counters for Ethernet108

Clear and update saved counters for Ethernet112

Clear and update saved counters for Ethernet116

Clear and update saved counters for Ethernet120

Clear and update saved counters for Ethernet124

Clear and update saved counters for Ethernet128

Clear and update saved counters for Ethernet132

Clear and update saved counters for Ethernet136

Clear and update saved counters for Ethernet140

Clear and update saved counters for Ethernet144

Clear and update saved counters for Ethernet148

Clear and update saved counters for Ethernet152

Clear and update saved counters for Ethernet156

Clear and update saved counters for Ethernet160

Clear and update saved counters for Ethernet164

Clear and update saved counters for Ethernet168

Clear and update saved counters for Ethernet172

Clear and update saved counters for Ethernet176

Clear and update saved counters for Ethernet180

Clear and update saved counters for Ethernet184

Clear and update saved counters for Ethernet188

Clear and update saved counters for Ethernet-IB2

Clear and update saved counters for Ethernet-Rec2

Post Clearing counters

show queue  counters --voq | grep nfc456-5|Ethernet132

nfc456-5|Ethernet132   VOQ0       604583257     472783639421            0             0.  <<<<----- Didn't get cleared

nfc456-5|Ethernet132   VOQ1               0                0            0             0

nfc456-5|Ethernet132   VOQ2               0                0            0             0

nfc456-5|Ethernet132   VOQ3               0                0            0             0

nfc456-5|Ethernet132   VOQ4               0                0            0             0

nfc456-5|Ethernet132   VOQ5               0                0            0             0

nfc456-5|Ethernet132   VOQ6               0                0            0             0

nfc456-5|Ethernet132   VOQ7               0                0            0             0



show queue  counters  | grep Ethernet132

Ethernet132 Last cached time was 2023-04-19 22:23:30.224734

Ethernet132    UC0               7            1,221            0             0.  <<<----- EGQ counters got cleared

Ethernet132    UC1               0                0            0             0

Ethernet132    UC2               0                0            0             0

Ethernet132    UC3               0                0            0             0

Ethernet132    UC4               0                0            0             0

Ethernet132    UC5               0                0            0             0

Ethernet132    UC6               0                0            0             0

Ethernet132    UC7               0                0            0             0

Ethernet132    MC8               0                0            0             0

Ethernet132    MC9               0                0            0             0

Ethernet132   MC10               0                0            0             0

Ethernet132   MC11               0                0            0             0

Ethernet132   MC12               0                0            0             0

Ethernet132   MC13               0                0            0             0

Ethernet132   MC14               0                0            0             0

Ethernet132   MC15               0                0            0             0


Output of show boot:

Current: SONiC-OS-branch.202205-ars.c5053c3f-buildimage.origin.202205-nightly-2023.04.19.04.24

Next: SONiC-OS-branch.202205-ars.c5053c3f-buildimage.origin.202205-nightly-2023.04.19.04.24

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

Metadata

Metadata

Assignees

Labels

Chassis 🤖Modular chassis supportMSFTP0Priority of the issueTriagedthis issue has been triaged

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions