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

when disable any counter - after reload "counterpoll show" output status is enable , but when checking confg.db.json its disabled #7539

Closed
Hedgehog-Guru opened this issue May 6, 2021 · 1 comment
Assignees
Labels
Triaged this issue has been triaged

Comments

@Hedgehog-Guru
Copy link

issue exist on versions 201911 and 202012

Description

when disable any counter from the counter poll and reload or reload config
"counterpoll show" output will show those counters in enable" status
but if check the configdb file counters configured to disabled

Steps to reproduce the issue:

disable any counter

admin@r-qa-sw-eth-214:~$ counterpoll port disable 
admin@r-qa-sw-eth-214:~$ counterpoll pg-drop disable 

verify output:

oot@r-qa-sw-eth-214:/home/admin# counterpoll show 
Type                        Interval (in ms)    Status
--------------------------  ------------------  --------
QUEUE_STAT                  default (10000)     enable
PORT_STAT                   default (1000)      disable
PORT_BUFFER_DROP            default (60000)     enable
RIF_STAT                    default (1000)      enable
QUEUE_WATERMARK_STAT        default (10000)     enable
PG_WATERMARK_STAT           default (10000)     enable
PG_DROP_STAT                default (10000)     disable
BUFFER_POOL_WATERMARK_STAT  default (10000)     enable

save and reload :

config save -y config reload -y

wait 3-5 mins

verify output :


root@r-qa-sw-eth-214:/home/admin# **cat /etc/sonic/config_db.json | grep -i  -A 10 "_DROP"**
        "PG_DROP": {
            "FLEX_COUNTER_STATUS": "disable"
        },
        "PG_WATERMARK": {
            "FLEX_COUNTER_STATUS": "enable"
        },
        "PORT": {
            "FLEX_COUNTER_STATUS": "disable"
        },
        "PORT_BUFFER_DROP": {
            "FLEX_COUNTER_STATUS": "enable"
        },
        "QUEUE": {
            "FLEX_COUNTER_STATUS": "enable"
        },
        "QUEUE_WATERMARK": {
            "FLEX_COUNTER_STATUS": "enable"
        },
        "RIF": {
            "FLEX_COUNTER_STATUS": "enable"

**root@r-qa-sw-eth-214:/home/admin# counterpoll show** 

Type                        Interval (in ms)    Status
--------------------------  ------------------  --------
QUEUE_STAT                  default (10000)     enable
PORT_STAT                   default (1000)      enable
PORT_BUFFER_DROP            default (60000)     enable
RIF_STAT                    default (1000)      enable
QUEUE_WATERMARK_STAT        default (10000)     enable
PG_WATERMARK_STAT           default (10000)     enable

Describe the results you received:

counter disabled in config DB but "counterpoll show" output not sync

Describe the results you expected:

counterpoll show output will be sync to configDB

Output of show version:


admin@r-qa-sw-eth-21128:~$ show ver

SONiC Software Version: SONiC.202012.70-5bdbfcfb_Internal
Distribution: Debian 10.9
Kernel: 4.19.0-12-2-amd64
Build commit: 5bdbfcfb
Build date: Tue Apr 20 09:52:50 UTC 2021
Built by: sw-r2d2-bot@r-build-sonic-ci03

Platform: x86_64-mlnx_msn2700-r0
HwSKU: Mellanox-SN2700
ASIC: mellanox
ASIC Count: 1
Serial Number: MT1616X11495
Uptime: 06:22:58 up 8 days, 19:02,  2 users,  load average: 4.63, 4.91, 5.14

Docker images:
REPOSITORY                    TAG                           IMAGE ID            SIZE
docker-syncd-mlnx             202012.70-5bdbfcfb_Internal   bee294e0473e        667MB
docker-syncd-mlnx             latest                        bee294e0473e        667MB
docker-platform-monitor       202012.70-5bdbfcfb_Internal   36761a06b778        693MB
docker-platform-monitor       latest                        36761a06b778        693MB
docker-snmp                   202012.70-5bdbfcfb_Internal   c5125ef31acb        440MB
docker-snmp                   latest                        c5125ef31acb        440MB
docker-teamd                  202012.70-5bdbfcfb_Internal   924f162349c3        410MB
docker-teamd                  latest                        924f162349c3        410MB
docker-nat                    202012.70-5bdbfcfb_Internal   0565ad86a5de        413MB
docker-nat                    latest                        0565ad86a5de        413MB
docker-sonic-mgmt-framework   202012.70-5bdbfcfb_Internal   304d2e08867b        619MB
docker-sonic-mgmt-framework   latest                        304d2e08867b        619MB
docker-router-advertiser      202012.70-5bdbfcfb_Internal   222dc4aa41ec        399MB
docker-router-advertiser      latest                        222dc4aa41ec        399MB
docker-lldp                   202012.70-5bdbfcfb_Internal   62e27fd06732        439MB
docker-lldp                   latest                        62e27fd06732        439MB
docker-database               202012.70-5bdbfcfb_Internal   f902a10cf11c        399MB
docker-database               latest                        f902a10cf11c        399MB
docker-orchagent              202012.70-5bdbfcfb_Internal   a813e11403ec        428MB
docker-orchagent              latest                        a813e11403ec        428MB
docker-sonic-telemetry        202012.70-5bdbfcfb_Internal   81cfde1de0fa        488MB
docker-sonic-telemetry        latest                        81cfde1de0fa        488MB
docker-fpm-frr                202012.70-5bdbfcfb_Internal   e4560065ea70        427MB
docker-fpm-frr                latest                        e4560065ea70        427MB
docker-dhcp-relay             202012.70-5bdbfcfb_Internal   977d0acf9e0a        405MB
docker-dhcp-relay             latest                        977d0acf9e0a        405MB
docker-sflow                  202012.70-5bdbfcfb_Internal   eb2446bf8b86        410MB
docker-sflow                  latest                        eb2446bf8b86        410MB

Output of show techsupport:

sonic_dump_r-qa-sw-eth-214_20210429_075613.tar.gz

@Hedgehog-Guru Hedgehog-Guru changed the title [ Funct when disable any counter - after reload "counterpoll show" output status is enable , but when checking confg.db.json its disabled when disable any counter - after reload "counterpoll show" output status is enable , but when checking confg.db.json its disabled May 6, 2021
@anshuv-mfst anshuv-mfst added the Triaged this issue has been triaged label May 12, 2021
@volodymyrsamotiy
Copy link
Collaborator

volodymyrsamotiy commented Sep 30, 2021

Fixed by PR #7735

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

No branches or pull requests

3 participants