Skip to content

voqWD disabling and method to check dshellClient is running#19071

Merged
bpar9 merged 2 commits intosonic-net:masterfrom
shwnaik:Losses_observed_lossy_traffic
Jun 20, 2025
Merged

voqWD disabling and method to check dshellClient is running#19071
bpar9 merged 2 commits intosonic-net:masterfrom
shwnaik:Losses_observed_lossy_traffic

Conversation

@shwnaik
Copy link
Copy Markdown
Contributor

@shwnaik shwnaik commented Jun 17, 2025

Description of PR

Disabling voqWD in testcase where PFCWD is disabled and traffic is run for more than 1min. Added a method to check if dshell client is up and running

Summary:
Fixes #
FAILED snappi_tests/pfcwd/test_pfcwd_actions.py::test_pfcwd_disable_pause_cngtn[multidut_port_info0-port_map0] - Failed: Losses observed in lossy traffic streams

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • [X ] Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • [X ] 202405
  • 202411
  • 202505

Approach

What is the motivation for this PR?

We had added the fixture to disable the voqWD.

from tests.snappi_tests.cisco.helper import disable_voq_watchdog # noqa: F401

But every tests does config reload on the DUT’s which reverses disabled voqWD config.
Hence the test was failing
FAILED snappi_tests/pfcwd/test_pfcwd_actions.py::test_pfcwd_disable_pause_cngtn[multidut_port_info0-port_map0] - Failed: Losses observed in lossy traffic streamsWe had added the fixture to disable the voqWD.

config reload done as part of teardown:

config_reload(sonic_host=duthost, config_source='config_db', safe_reload=True)

How did you do it?

Disabling the voqWD in the test case where PFCWD is disabled and traffic is sent for > 1min

How did you verify/test it?

Manually ran the tests with change

========================= short test summary info =========================================
PASSED snappi_tests/pfcwd/test_pfcwd_a2a_with_snappi.py::test_multidut_pfcwd_all_to_all[multidut_port_info0-True]
PASSED snappi_tests/pfcwd/test_pfcwd_a2a_with_snappi.py::test_multidut_pfcwd_all_to_all[multidut_port_info0-False]
PASSED snappi_tests/pfcwd/test_pfcwd_actions.py::test_pfcwd_drop_90_10[multidut_port_info0-port_map0]
PASSED snappi_tests/pfcwd/test_pfcwd_actions.py::test_pfcwd_drop_uni[multidut_port_info0-port_map0]
PASSED snappi_tests/pfcwd/test_pfcwd_actions.py::test_pfcwd_drop_over_subs_40_09[multidut_port_info0-port_map0]
PASSED snappi_tests/pfcwd/test_pfcwd_actions.py::test_pfcwd_disable_pause_cngtn[multidut_port_info0-port_map0]
PASSED snappi_tests/pfcwd/test_pfcwd_basic_with_snappi.py::test_pfcwd_basic_single_lossless_prio[multidut_port_info0-True]
PASSED snappi_tests/pfcwd/test_pfcwd_basic_with_snappi.py::test_pfcwd_basic_single_lossless_prio[multidut_port_info0-False]
PASSED snappi_tests/pfcwd/test_pfcwd_basic_with_snappi.py::test_pfcwd_basic_multi_lossless_prio[multidut_port_info0-True]
PASSED snappi_tests/pfcwd/test_pfcwd_basic_with_snappi.py::test_pfcwd_basic_multi_lossless_prio[multidut_port_info0-False]
PASSED snappi_tests/pfcwd/test_pfcwd_basic_with_snappi.py::test_pfcwd_basic_single_lossless_prio_reboot[multidut_port_info0-cold-yy40-mixed-rp|4-True]
PASSED snappi_tests/pfcwd/test_pfcwd_basic_with_snappi.py::test_pfcwd_basic_multi_lossless_prio_reboot[multidut_port_info0-cold-True]
PASSED snappi_tests/pfcwd/test_pfcwd_basic_with_snappi.py::test_pfcwd_basic_multi_lossless_prio_reboot[multidut_port_info0-cold-False]
PASSED snappi_tests/pfcwd/test_pfcwd_basic_with_snappi.py::test_pfcwd_basic_single_lossless_prio_service_restart[multidut_port_info0-True-swss]
PASSED snappi_tests/pfcwd/test_pfcwd_basic_with_snappi.py::test_pfcwd_basic_single_lossless_prio_service_restart[multidut_port_info0-False-swss]
PASSED snappi_tests/pfcwd/test_pfcwd_basic_with_snappi.py::test_pfcwd_basic_multi_lossless_prio_restart_service[multidut_port_info0-True-swss]
PASSED snappi_tests/pfcwd/test_pfcwd_basic_with_snappi.py::test_pfcwd_basic_multi_lossless_prio_restart_service[multidut_port_info0-False-swss]
PASSED snappi_tests/pfcwd/test_pfcwd_burst_storm_with_snappi.py::test_pfcwd_burst_storm_single_lossless_prio[multidut_port_info0]
PASSED snappi_tests/pfcwd/test_pfcwd_m2o_with_snappi.py::test_pfcwd_many_to_one[multidut_port_info0-True]
PASSED snappi_tests/pfcwd/test_pfcwd_m2o_with_snappi.py::test_pfcwd_many_to_one[multidut_port_info0-False]
PASSED snappi_tests/pfcwd/test_pfcwd_mixed_speed.py::test_mixed_speed_pfcwd_enable[multidut_port_info0-port_map0]
PASSED snappi_tests/pfcwd/test_pfcwd_mixed_speed.py::test_mixed_speed_pfcwd_disable[multidut_port_info0-port_map0]
PASSED snappi_tests/pfcwd/test_pfcwd_runtime_traffic_with_snappi.py::test_pfcwd_runtime_traffic[multidut_port_info0]
SKIPPED [2] snappi_tests/pfcwd/test_pfcwd_actions.py:370: Forward action is not supported in cisco-8000.
SKIPPED [1] common/helpers/assertions.py:22: Need Minimum of 2 ports defined in ansible/files/*links.csv file
SKIPPED [2] snappi_tests/pfcwd/test_pfcwd_actions.py:715: Forward action is not supported in cisco-8000.
SKIPPED [1] snappi_tests/pfcwd/test_pfcwd_basic_with_snappi.py:141: Reboot type warm is not supported on cisco-8000 switches
SKIPPED [1] snappi_tests/pfcwd/test_pfcwd_basic_with_snappi.py:141: Reboot type fast is not supported on cisco-8000 switches
SKIPPED [2] snappi_tests/pfcwd/test_pfcwd_basic_with_snappi.py:190: Reboot type warm is not supported on cisco-8000 switches
SKIPPED [2] snappi_tests/pfcwd/test_pfcwd_basic_with_snappi.py:190: Reboot type fast is not supported on cisco-8000 switches
FAILED snappi_tests/pfcwd/test_pfcwd_actions.py::test_pfcwd_drop_90_10[multidut_port_info0-port_map1] - Failed: Rx Ports for yy40-mixed-tb in MULTIDUT_PORT_INFO doesn't match with ansible/files/*links.csv
FAILED snappi_tests/pfcwd/test_pfcwd_actions.py::test_pfcwd_drop_uni[multidut_port_info0-port_map1] - Failed: Rx Ports for yy40-mixed-tb in MULTIDUT_PORT_INFO doesn't match with ansible/files/*links.csv
FAILED snappi_tests/pfcwd/test_pfcwd_actions.py::test_pfcwd_disable_pause_cngtn[multidut_port_info0-port_map1] - Failed: Rx Ports for yy40-mixed-tb in MULTIDUT_PORT_INFO doesn't match with ansible/files/*links.csv
=========== 3 failed, 23 passed, 11 skipped, 22 warnings in 17703.22s (4:55:03) ===================

Any platform specific information?

Cisco8000

…n for more than 1min. Added a method to check if dshell client is up and running
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Contributor

@sdszhang sdszhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sdszhang
Copy link
Copy Markdown
Contributor

@shwnaik can you resolve the conflict?

bpar9
bpar9 previously approved these changes Jun 20, 2025
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@bpar9 bpar9 merged commit 5e7b0b8 into sonic-net:master Jun 20, 2025
10 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jun 21, 2025
…n for more than 1min. Added a method to check if dshell client is up and running (sonic-net#19071)
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202505: #19124

@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to msft-202405: Azure/sonic-mgmt.msft#435

mssonicbld pushed a commit that referenced this pull request Jun 22, 2025
…n for more than 1min. Added a method to check if dshell client is up and running (#19071)
nissampa pushed a commit to nissampa/sonic-mgmt_dpu_test that referenced this pull request Aug 7, 2025
…n for more than 1min. Added a method to check if dshell client is up and running (sonic-net#19071)
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
…n for more than 1min. Added a method to check if dshell client is up and running (sonic-net#19071)

Signed-off-by: opcoder0 <110003254+opcoder0@users.noreply.github.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 16, 2025
…n for more than 1min. Added a method to check if dshell client is up and running (sonic-net#19071)

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
…n for more than 1min. Added a method to check if dshell client is up and running (sonic-net#19071)

Signed-off-by: Aharon Malkin <amalkin@nvidia.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
…n for more than 1min. Added a method to check if dshell client is up and running (sonic-net#19071)

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Jan 13, 2026
…n for more than 1min. Added a method to check if dshell client is up and running (sonic-net#19071)
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
…n for more than 1min. Added a method to check if dshell client is up and running (sonic-net#19071)

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
…n for more than 1min. Added a method to check if dshell client is up and running (sonic-net#19071)

Signed-off-by: Yael Tzur <ytzur@nvidia.com>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
…n for more than 1min. Added a method to check if dshell client is up and running (sonic-net#19071)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants