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

[watermarkstat] Add new warning message for the 'q_shared_multi' counters #2408

Merged

Conversation

vadymhlushko-mlnx
Copy link
Contributor

The same PR for 202205 branch - sonic-utilities/pull/2406

Signed-off-by: Vadym Hlushko vadymh@nvidia.com

What I did

Add a new warning message for the 'q_shared_multi' counter and not perform the exit with error code (1) because of the new implementation sonic-swss/pull/2432 from now on there is a valid case if there are no multicast counters inside the COUNTERS_DB.

In order for multicast counters to be presented in COUNTERS_DB the appropriate queues should be configured inside the CONFIG_DB (e.g "BUFFER_QUEUE|Ethernet14|7-8")

How I did it

Change the watermarkstat script

How to verify it

Run the sonic-mgmt/tests/iface_namingmode/test_iface_namingmode.py

Previous command output (if the output of a command-line utility has changed)

root@sonic:/home/admin# show queue watermark multicast
Object map is empty!

New command output (if the output of a command-line utility has changed)

root@sonic:/home/admin# show queue watermark multicast
Object map from the COUNTERS_DB is empty because the multicast queues are not configured in the CONFIG_DB!

…ters in case if they not in COUNTES_DB

Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
nazariig and others added 2 commits October 4, 2022 12:35
Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
@lgtm-com
Copy link

lgtm-com bot commented Oct 4, 2022

This pull request fixes 1 alert when merging 03541bc into 57c509a - view on LGTM.com

fixed alerts:

  • 1 for Unused import

@vadymhlushko-mlnx
Copy link
Contributor Author

@neethajohn, could you please review it?

@liat-grozovik liat-grozovik merged commit f62d1e5 into sonic-net:master Oct 18, 2022
mdanish-kh pushed a commit to hamnarauf/sonic-utilities that referenced this pull request Oct 22, 2022
…ters (sonic-net#2408)

- What I did
Add a new warning message for the 'q_shared_multi' counter and not perform the exit with error code (1) because of the new implementation sonic-swss/pull/2432 from now on there is a valid case if there are no multicast counters inside the COUNTERS_DB.

In order for multicast counters to be presented in COUNTERS_DB the appropriate queues should be configured inside the CONFIG_DB (e.g "BUFFER_QUEUE|Ethernet14|7-8")

- How I did it
Change the watermarkstat script

- How to verify it
Run the sonic-mgmt/tests/iface_namingmode/test_iface_namingmode.py

Previous command output (if the output of a command-line utility has changed)
root@sonic:/home/admin# show queue watermark multicast
Object map is empty!

New command output (if the output of a command-line utility has changed)
root@sonic:/home/admin# show queue watermark multicast
Object map from the COUNTERS_DB is empty because the multicast queues are not configured in the CONFIG_DB!
preetham-singh pushed a commit to preetham-singh/sonic-utilities that referenced this pull request Nov 21, 2022
…ters (sonic-net#2408)

- What I did
Add a new warning message for the 'q_shared_multi' counter and not perform the exit with error code (1) because of the new implementation sonic-swss/pull/2432 from now on there is a valid case if there are no multicast counters inside the COUNTERS_DB.

In order for multicast counters to be presented in COUNTERS_DB the appropriate queues should be configured inside the CONFIG_DB (e.g "BUFFER_QUEUE|Ethernet14|7-8")

- How I did it
Change the watermarkstat script

- How to verify it
Run the sonic-mgmt/tests/iface_namingmode/test_iface_namingmode.py

Previous command output (if the output of a command-line utility has changed)
root@sonic:/home/admin# show queue watermark multicast
Object map is empty!

New command output (if the output of a command-line utility has changed)
root@sonic:/home/admin# show queue watermark multicast
Object map from the COUNTERS_DB is empty because the multicast queues are not configured in the CONFIG_DB!
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

Successfully merging this pull request may close these issues.

4 participants