Skip to content

snappi_tests/multidut/pfc/test_multidut_pfc_pause_lossless_with_snappi.py fails due to the difference in number of packets expected #12415

@rraghav-cisco

Description

@rraghav-cisco

Hi @selldinesh ,

This script's all tests fail. The failure is as follows:

(Pdb) verify_background_flow(flow_metrics=tgen_flow_stats, speed_gbps=speed_gbps, tolerance=TOLERANCE_THRESHOLD, snappi_extra_params=snappi_extra_params)                                                                     *** Failed: Background Flow Prio 5 should receive 37109375.0 packets (actual 36184)
(Pdb) 

The number of packets in "actual" is matching the number of packets actually sent by ixia:
Screenshot 2024-04-11 at 10 35 15 AM

I am not sure how to debug this. If I try a few more times, it will pass once in a while. I do that by repeating the following 2 calls:

(Pdb) tgen_flow_stats, switch_flow_stats, in_flight_flow_metrics = run_traffic(duthost=duthost, api=api, config=testbed_config, data_flow_names=data_flow_names, all_flow_names=all_flow_names, exp_dur_sec=DATA_FLOW_DURATION_SEC + data_flow_delay_sec, snappi_extra_params=snappi_extra_params)
(Pdb) verify_background_flow(flow_metrics=tgen_flow_stats, speed_gbps=speed_gbps, tolerance=TOLERANCE_THRESHOLD, snappi_extra_params=snappi_extra_params)

But most of the times it fails as above.
The relevant file is : snappi_tests/multidut/pfc/files/multidut_helper.py

227     """ Run traffic """
228     import pdb; pdb.set_trace()
229     tgen_flow_stats, switch_flow_stats, in_flight_flow_metrics = run_traffic(duthost=duthost,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions