[Snappi]: Adding FEC Error Insertion Test Script #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary: Adding FEC Error Insertion Test Script
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
How did you do it?
How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation
OUTPUT:
snappi_tests/dataplane/test_fec_error_injection.py::test_fec_error_injection[maxConsecutiveUncorrectableWithoutLossOfLink]
-------------------------------- live log setup --------------------------------
20:20:18 init.set_default L0053 INFO | Completeness level not set during test execution. Setting to default level: CompletenessLevel.basic
20:20:18 init.check_test_completeness L0151 INFO | Test has no defined levels. Continue without test completeness checks
20:20:18 conftest.enhance_inventory L0269 INFO | Inventory file: ['../ansible/snappi-sonic']
20:20:20 ptfhost_utils.run_icmp_responder_session L0296 INFO | Skip running icmp_responder at session level, it is only for dualtor testbed with active-active mux ports.
20:20:20 init.sanity_check L0399 INFO | Skip sanity check according to command line argument
20:20:20 conftest.core_dump_and_config_check L2466 INFO | Dumping Disk and Memory Space informataion before test on sonic-s6100-dut1
20:20:21 conftest.core_dump_and_config_check L2470 INFO | Collecting core dumps before test on sonic-s6100-dut1
20:20:21 conftest.core_dump_and_config_check L2479 INFO | Collecting running config before test on sonic-s6100-dut1
20:20:23 conftest.generate_params_dut_hostname L1339 INFO | Using DUTs ['sonic-s6100-dut1'] in testbed 'vms-snappi-sonic'
20:20:23 conftest.set_rand_one_dut_hostname L0486 INFO | Randomly select dut sonic-s6100-dut1 for testing
20:20:23 init._fixture_generator_decorator L0081 INFO | -------------------- fixture enable_packet_aging_after_test setup starts --------------------
20:20:23 init._fixture_generator_decorator L0085 INFO | -------------------- fixture enable_packet_aging_after_test setup ends --------------------
20:20:23 init._fixture_generator_decorator L0081 INFO | -------------------- fixture rand_lossless_prio setup starts --------------------
20:20:23 init._fixture_generator_decorator L0085 INFO | -------------------- fixture rand_lossless_prio setup ends --------------------
20:20:23 init._fixture_generator_decorator L0081 INFO | -------------------- fixture rand_lossy_prio setup starts --------------------
20:20:23 init._fixture_generator_decorator L0085 INFO | -------------------- fixture rand_lossy_prio setup ends --------------------
20:20:23 init._fixture_generator_decorator L0081 INFO | -------------------- fixture start_pfcwd_after_test setup starts --------------------
20:20:23 init._fixture_generator_decorator L0085 INFO | -------------------- fixture start_pfcwd_after_test setup ends --------------------
20:20:23 init._fixture_func_decorator L0069 INFO | -------------------- fixture snappi_api_serv_ip setup starts --------------------
20:20:23 init._fixture_func_decorator L0076 INFO | -------------------- fixture snappi_api_serv_ip setup ends --------------------
20:20:23 init._fixture_func_decorator L0069 INFO | -------------------- fixture snappi_api_serv_port setup starts --------------------
20:20:23 init._fixture_func_decorator L0076 INFO | -------------------- fixture snappi_api_serv_port setup ends --------------------
20:20:23 init._fixture_generator_decorator L0081 INFO | -------------------- fixture snappi_api setup starts --------------------
20:20:23 init._fixture_generator_decorator L0085 INFO | -------------------- fixture snappi_api setup ends --------------------
20:20:24 conftest.rand_one_dut_front_end_hostname L0522 INFO | Randomly select dut sonic-s6100-dut1 for testing
20:20:24 conftest.generate_port_lists L1408 INFO | Generate dut_port_map: {'sonic-s6100-dut1': ['sonic-s6100-dut1|Ethernet64', 'sonic-s6100-dut1|Ethernet68']}
20:20:24 conftest.generate_port_lists L1431 INFO | Generate port_list: ['sonic-s6100-dut1|Ethernet64', 'sonic-s6100-dut1|Ethernet68']
20:20:24 init.loganalyzer L0067 INFO | Log analyzer is disabled
20:20:24 init.memory_utilization L0091 INFO | Hostname: sonic-s6100-dut1, Hwsku: Accton-AS7726-32X, Platform: x86_64-accton_as7726_32x-r0
20:20:24 init.store_fixture_values L0017 INFO | store memory_utilization test_fec_error_injection[maxConsecutiveUncorrectableWithoutLossOfLink]
20:20:24 init._fixture_func_decorator L0069 INFO | -------------------- fixture snappi_testbed_config setup starts --------------------
20:20:24 snappi_fixtures._intf_config_static_ip L0496 INFO | Configuring Dut: sonic-s6100-dut1 with port Ethernet64 with IP 30.1.1.1/8
20:20:24 snappi_fixtures.intf_config_static_ip L0496 INFO | Configuring Dut: sonic-s6100-dut1 with port Ethernet68 with IP 31.1.1.1/8
20:20:24 init.fixture_func_decorator L0076 INFO | -------------------- fixture snappi_testbed_config setup ends --------------------
20:20:24 init.pytest_runtest_setup L0024 INFO | collect memory before test test_fec_error_injection[maxConsecutiveUncorrectableWithoutLossOfLink]
20:20:24 init.pytest_runtest_setup L0044 INFO | Before test: collected memory_values {'before_test': {'sonic-s6100-dut1': {'monit': {'memory_usage': 21.1}}}, 'after_test': {'sonic-s6100-dut1': {}}}
-------------------------------- live log call ---------------------------------
20:20:25 connection.warn L0332 WARNING| Verification of certificates is disabled
20:20:25 connection.info L0329 INFO | Determining the platform and rest_port using the 10.36.84.33 address...
20:20:25 connection.warn L0332 WARNING| Unable to connect to http://10.36.84.33:443.
20:20:25 connection.info L0329 INFO | Connection established to
https://10.36.84.33:443 on linux
20:20:38 connection.info L0329 INFO | Using IxNetwork api server version 10.25.2406.5
20:20:38 connection.info L0329 INFO | User info IxNetwork/ixnetworkweb/admin-26-2545
20:20:38 snappi_api.info L1252 INFO | snappi-1.17.1
20:20:38 snappi_api.info L1252 INFO | snappi_ixnetwork-1.17.0
20:20:38 snappi_api.info L1252 INFO | ixnetwork_restpy-1.5.0
20:20:39 snappi_api.info L1252 INFO | Config validation 0.006s
20:20:41 snappi_api.info L1252 INFO | Ports configuration 1.454s
20:20:41 snappi_api.info L1252 INFO | Captures configuration 0.132s
20:20:43 snappi_api.info L1252 INFO | Add location hosts [10.36.84.33] 2.241s
20:20:48 snappi_api.info L1252 INFO | Location hosts ready [10.36.84.33] 4.211s
20:20:48 snappi_api.info L1252 INFO | Speed conversion is not require for (port.name, speed) : [('Port 0', 'aresOne-M-OneByEightHundredGigPAM4-106G'), ('Port 1', 'aresOne-M-OneByEightHundredGigPAM4-106G')]
20:20:48 snappi_api.info L1252 INFO | Aggregation mode speed change 0.561s
20:20:53 snappi_api.info L1252 INFO | Location preemption [10.36.84.33/1, 10.36.84.33/2] 0.162s
20:21:21 snappi_api.info L1252 INFO | Location connect [Port 0, Port 1] 28.530s
20:21:21 snappi_api.info L1252 INFO | Location state check [Port 0, Port 1] 0.212s
20:21:21 snappi_api.info L1252 INFO | Location configuration 40.680s
20:22:15 snappi_api.info L1252 INFO | Layer1 configuration 53.893s
20:22:15 snappi_api.info L1252 INFO | Lag Configuration 0.082s
20:22:16 snappi_api.info L1252 INFO | Convert device config : 0.207s
20:22:16 snappi_api.info L1252 INFO | Create IxNetwork device config : 0.000s
20:22:16 snappi_api.info L1252 INFO | Push IxNetwork device config : 0.520s
20:22:16 snappi_api.info L1252 INFO | Devices configuration 0.799s
20:22:18 snappi_api.info L1252 INFO | Flows configuration 1.770s
20:22:24 snappi_api.info L1252 INFO | Start interfaces 6.146s
20:22:25 snappi_api.info L1252 INFO | IxNet - One or more destination MACs or VPNs are invalid or unreachable and the packets configured to be sent to them were not created
20:22:25 snappi_api.info L1252 INFO | IxNet - The Traffic Item was modified. Please perform a Traffic Generate to update the associated traffic Flow Groups
20:22:25 test_fec_error_injection.test_fec_error L0057 INFO | Wait for Arp to Resolve ...
20:22:26 test_fec_error_injection.test_fec_error L0061 INFO | |----------------------------------------|
20:22:26 test_fec_error_injection.test_fec_error L0062 INFO | | Setting FEC Error Type to : maxConsecutiveUncorrectableWithoutLossOfLink |
20:22:26 test_fec_error_injection.test_fec_error L0063 INFO | |----------------------------------------|
20:22:37 test_fec_error_injection.test_fec_error L0069 INFO | Starting Traffic ...
20:22:42 snappi_api.info L1252 INFO | Flows generate/apply 3.797s
20:22:54 snappi_api.info L1252 INFO | Flows clear statistics 12.126s
20:22:54 snappi_api.info L1252 INFO | Captures start 0.000s
20:22:57 snappi_api.info L1252 INFO | Flows start 2.793s
20:22:57 snappi_api.info L1252 INFO | IxNet - The frame size was increased to 66 bytes to accommodate encapsulation requirements. - The frame size was adjusted to conform to the encapsulation requirements
20:22:57 utilities.wait L0117 INFO | Pause 10 seconds, reason: For traffic to start
20:23:07 test_fec_error_injection.test_fec_error L0075 INFO | Starting FEC Error Insertion
20:23:07 utilities.wait L0117 INFO | Pause 15 seconds, reason: For error insertion to start
20:23:24 test_fec_error_injection.test_fec_error L0082 INFO | .. PASSED : Rx Port stopped receiving packets after starting FEC Error Insertion
20:23:24 test_fec_error_injection.test_fec_error L0083 INFO | Stopping FEC Error Insertion
20:23:24 utilities.wait L0117 INFO | Pause 15 seconds, reason: For error insertion to stop
20:23:40 test_fec_error_injection.test_fec_error L0090 INFO | .. PASSED : Rx Port resumed receiving packets after stopping FEC Error Insertion
20:23:40 test_fec_error_injection.test_fec_error L0091 INFO | Stopping Traffic ...
20:23:47 snappi_api.info L1252 INFO | Flows stop 6.653s
20:23:47 utilities.wait L0117 INFO | Pause 10 seconds, reason: For traffic to stop
PASSED [ 25%]
------------------------------ live log teardown -------------------------------
20:23:57 init.pytest_runtest_teardown L0049 INFO | collect memory after test test_fec_error_injection[maxConsecutiveUncorrectableWithoutLossOfLink]
20:23:58 init.pytest_runtest_teardown L0072 INFO | After test: collected memory_val