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

[Snappi] Fixing BGP configuration for snappi reboot cases #14700

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

selldinesh
Copy link
Contributor

Description of PR

Summary:Fixing BGP configuration for snappi reboot cases
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

The BGP dut configuration was not wroking as expected , so the script has been updated with the fixes

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

PDB continue (IO-capturing resumed) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
00:02:21 reboot_helper.get_convergence_for_reboot L0602 INFO | No Loss Observed in Traffic Item IPv4_1-IPv4_2
00:02:21 reboot_helper.get_convergence_for_reboot L0602 INFO | DP/DP Convergence Time (ms) of IPv4_1-IPv4_2 : 87935.713
00:02:23 reboot_helper.get_convergence_for_reboot L0602 INFO | No Loss Observed in Traffic Item IPv6_2-IPv6_1
00:02:23 reboot_helper.get_convergence_for_reboot L0602 INFO | DP/DP Convergence Time (ms) of IPv6_2-IPv6_1 : 0.0
00:02:24 reboot_helper.get_convergence_for_reboot L0602 INFO | No Loss Observed in Traffic Item IPv4_1-T1
00:02:24 reboot_helper.get_convergence_for_reboot L0602 INFO | DP/DP Convergence Time (ms) of IPv4_1-T1 : 373336.858
00:02:25 reboot_helper.get_convergence_for_reboot L0602 INFO | No Loss Observed in Traffic Item IPv6_2-T1
00:02:25 reboot_helper.get_convergence_for_reboot L0602 INFO | DP/DP Convergence Time (ms) of IPv6_2-T1 : 0.0
00:02:26 reboot_helper.get_convergence_for_reboot L0602 INFO | No Loss Observed in Traffic Item T1-IPv4_1
00:02:26 reboot_helper.get_convergence_for_reboot L0602 INFO | DP/DP Convergence Time (ms) of T1-IPv4_1 : 374742.255
00:02:28 reboot_helper.get_convergence_for_reboot L0602 INFO | No Loss Observed in Traffic Item T1-IPv6_2
00:02:28 reboot_helper.get_convergence_for_reboot L0602 INFO | DP/DP Convergence Time (ms) of T1-IPv6_2 : 0.0
00:02:28 reboot_helper.get_convergence_for_reboot L0602 INFO |
+---------------+-------------------------------+------------------------------------+-------------+
| Reboot Type | Traffic Item Name | Data Plane Convergence Time (ms) | Time (ms) |
|---------------+-------------------------------+------------------------------------+-------------|
| soft | Server IPv4_1 - Server IPv4_2 | 87935.7 | 0 |
| soft | Server IPv6_2 - Server IPv6_1 | 0 | 0 |
| soft | Server IPv4_1 - T1 | 373337 | 0 |
| soft | Server IPv6_2 - T1 | 0 | 0 |
| soft | T1 - Server IPv4_1 | 374742 | 0 |
| soft | T1 - Server IPv6_2 | 0 | 0 |
| soft | BGP Control Plane Up Time | 0 | 0 |
| soft | Loopback Up Time | 0 | 124931 |
+---------------+-------------------------------+------------------------------------+-------------+
PASSED [100%]
------------------------------------------------------------------------------------ live log teardown -------------------------------------------------------------------------------------
00:02:28 init.pytest_runtest_teardown L0049 INFO | collect memory after test test_reboot[soft]
00:02:30 init.pytest_runtest_teardown L0072 INFO | After test: collected memory_values {'before_test': {'sonic-s6100-dut1': {'monit': {'memory_usage': 27.4}}}, 'after_test': {'sonic-s6100-dut1': {'monit': {'memory_usage': 27.4}}}}
00:02:30 init._fixture_generator_decorator L0093 INFO | -------------------- fixture cvg_api teardown starts --------------------
00:02:30 init._fixture_generator_decorator L0102 INFO | -------------------- fixture cvg_api teardown ends --------------------
00:02:30 init._fixture_generator_decorator L0093 INFO | -------------------- fixture start_pfcwd_after_test teardown starts --------------------
00:02:31 init._fixture_generator_decorator L0102 INFO | -------------------- fixture start_pfcwd_after_test teardown ends --------------------
00:02:31 init._fixture_generator_decorator L0093 INFO | -------------------- fixture rand_lossy_prio teardown starts --------------------
00:02:31 init._fixture_generator_decorator L0102 INFO | -------------------- fixture rand_lossy_prio teardown ends --------------------
00:02:31 init._fixture_generator_decorator L0093 INFO | -------------------- fixture rand_lossless_prio teardown starts --------------------
00:02:31 init._fixture_generator_decorator L0102 INFO | -------------------- fixture rand_lossless_prio teardown ends --------------------
00:02:31 init._fixture_generator_decorator L0093 INFO | -------------------- fixture enable_packet_aging_after_test teardown starts --------------------
00:02:31 init._fixture_generator_decorator L0102 INFO | -------------------- fixture enable_packet_aging_after_test teardown ends --------------------
00:02:35 conftest.core_dump_and_config_check L2203 INFO | Dumping Disk and Memory Space informataion after test on sonic-s6100-dut1
00:02:39 conftest.core_dump_and_config_check L2207 INFO | Collecting core dumps after test on sonic-s6100-dut1
00:02:41 conftest.core_dump_and_config_check L2224 INFO | Collecting running config after test on sonic-s6100-dut1
00:02:43 conftest.core_dump_and_config_check L2352 WARNING| Core dump or config check failed for test_soft_reboot.py, results: {"core_dump_check": {"pass": true, "new_core_dumps": {"sonic-s6100-dut1": []}}, "config_db_check": {"pass": false, "pre_only_config": {"sonic-s6100-dut1": {"null": {}}}, "cur_only_config": {"sonic-s6100-dut1": {"null": {"PORTCHANNEL": {"PortChannel1": {"admin_status": "up", "lacp_key": "auto", "min_links": "1", "mtu": "9100"}}, "VLAN_MEMBER": {"Vlan1000|Ethernet12": {"tagging_mode": "untagged"}, "Vlan1000|Ethernet8": {"tagging_mode": "untagged"}}, "DEVICE_NEIGHBOR_METADATA": {"snappi-sonic": {"hwsku": "Snappi", "mgmt_addr": "172.16.149.206", "type": "ToRRouter"}}, "PORTCHANNEL_INTERFACE": {"PortChannel1": {}, "PortChannel1|20.1.2.1/24": {}, "PortChannel1|2000:1::5/64": {}}, "PORTCHANNEL_MEMBER": {"PortChannel1|Ethernet4": {}}}}}, "inconsistent_config": {"sonic-s6100-dut1": {"null": {"DEVICE_NEIGHBOR": {"pre_value": {"Ethernet0": {"name": "IXIA-Chassis1", "port": "Port0"}, "Ethernet12": {"name": "IXIA-Chassis1", "port": "Port3"}, "Ethernet4": {"name": "IXIA-Chassis1", "port": "Port1"}, "Ethernet8": {"name": "IXIA-Chassis1", "port": "Port2"}}, "cur_value": {"Ethernet0": {"name": "snappi-sonic", "port": "Ethernet1"}, "Ethernet12": {"name": "IXIA-Chassis1", "port": "Port3"}, "Ethernet4": {"name": "IXIA-Chassis1", "port": "Port1"}, "Ethernet8": {"name": "IXIA-Chassis1", "port": "Port2"}}}, "PFC_WD": {"pre_value": {"GLOBAL": {"POLL_INTERVAL": "200"}}, "cur_value": {"Ethernet0": {"action": "drop", "detection_time": "200", "restoration_time": "200"}, "Ethernet12": {"action": "drop", "detection_time": "200", "restoration_time": "200"}, "Ethernet4": {"action": "drop", "detection_time": "200", "restoration_time": "200"}, "Ethernet8": {"action": "drop", "detection_time": "200", "restoration_time": "200"}, "GLOBAL": {"POLL_INTERVAL": "200"}}}, "VLAN_INTERFACE": {"pre_value": {"Vlan2": {}, "Vlan2|192.168.1.1/24": {}}, "cur_value": {"Vlan1000": {}, "Vlan2": {}, "Vlan1000|192.168.1.1/16": {}, "Vlan1000|5001::1/64": {}, "Vlan2|192.168.1.1/24": {}}}, "VLAN": {"pre_value": {"Vlan2": {"members": ["Ethernet0", "Ethernet4", "Ethernet8", "Ethernet12"], "vlanid": "2"}}, "cur_value": {"Vlan1000": {"vlanid": "1000"}, "Vlan2": {"members": ["Ethernet0", "Ethernet4", "Ethernet8", "Ethernet12"], "vlanid": "2"}}}, "INTERFACE": {"pre_value": {"Ethernet0": {}, "Ethernet12": {}, "Ethernet4": {}, "Ethernet8": {}, "Ethernet0|20.1.1.1/24": {}, "Ethernet0|2000:1::1/124": {}, "Ethernet12|20.1.4.1/24": {}, "Ethernet12|2000:4::1/124": {}, "Ethernet4|20.1.2.1/24": {}, "Ethernet4|2000:2::1/124": {}, "Ethernet8|20.1.2.1/24": {}, "Ethernet8|20.1.3.1/24": {}, "Ethernet8|2000:3::1/124": {}}, "cur_value": {"Ethernet0": {}, "Ethernet0|20.1.1.1/24": {}, "Ethernet0|2000:1::1/126": {}}}, "BGP_NEIGHBOR": {"pre_value": {"21.1.1.2": {"asn": "65200", "holdtime": "180", "keepalive": "60", "local_addr": "21.1.1.1", "name": "ARISTA01T2", "nhopself": "0", "rrclient": "0"}, "22.1.1.2": {"asn": "65200", "holdtime": "180", "keepalive": "60", "local_addr": "22.1.1.1", "name": "ARISTA02T2", "nhopself": "0", "rrclient": "0"}, "23.1.1.2": {"asn": "65200", "holdtime": "180", "keepalive": "60", "local_addr": "23.1.1.1", "name": "ARISTA03T2", "nhopself": "0", "rrclient": "0"}, "24.1.1.2": {"asn": "65200", "holdtime": "180", "keepalive": "60", "local_addr": "24.1.1.1", "name": "ARISTA03T2", "nhopself": "0", "rrclient": "0"}}, "cur_value": {"20.1.2.2": {"asn": "65200", "holdtime": "180", "keepalive": "60", "local_addr": "20.1.2.1", "name": "snappi-sonic", "nhopself": "0", "rrclient": "0"}, "2000:1::6": {"asn": "65200", "holdtime": "180", "keepalive": "60", "local_addr": "2000:1::5", "name": "snappi-sonic", "nhopself": "0", "rrclient": "0"}, "21.1.1.2": {"asn": "65200", "holdtime": "180", "keepalive": "60", "local_addr": "21.1.1.1", "name": "ARISTA01T2", "nhopself": "0", "rrclient": "0"}, "22.1.1.2": {"asn": "65200", "holdtime": "180", "keepalive": "60", "local_addr": "22.1.1.1", "name": "ARISTA02T2", "nhopself": "0", "rrclient": "0"}, "23.1.1.2": {"asn": "65200", "holdtime": "180", "keepalive": "60", "local_addr": "23.1.1.1", "name": "ARISTA03T2", "nhopself": "0", "rrclient": "0"}, "24.1.1.2": {"asn": "65200", "holdtime": "180", "keepalive": "60", "local_addr": "24.1.1.1", "name": "ARISTA03T2", "nhopself": "0", "rrclient": "0"}}}}}}}}
00:02:43 conftest.__dut_reload L2091 INFO | dut reload called on sonic-s6100-dut1
00:02:47 parallel.on_terminate L0085 INFO | process __dut_reload-- terminated with exit code None
00:02:47 parallel.parallel_run L0221 INFO | Completed running processes for target "__dut_reload" in 0:00:04.629679 seconds
00:02:47 conftest.core_dump_and_config_check L2362 INFO | -----$$$$$$$$$$--------------- Executing config reload of config_db_bgp.json -------------$$$$$$$$$$$$$$

===================================================================================== warnings summary =====================================================================================
../../.local/lib/python3.8/site-packages/_pytest/config/init.py:755
/var/AzDevOps/.local/lib/python3.8/site-packages/_pytest/config/init.py:755: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: tests.common.plugins.loganalyzer
self.import_plugin(import_spec)

../../.local/lib/python3.8/site-packages/_pytest/config/init.py:755
/var/AzDevOps/.local/lib/python3.8/site-packages/_pytest/config/init.py:755: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: tests.common.plugins.sanity_check
self.import_plugin(import_spec)

../../.local/lib/python3.8/site-packages/_pytest/config/init.py:755
/var/AzDevOps/.local/lib/python3.8/site-packages/_pytest/config/init.py:755: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: tests.common.plugins.test_completeness
self.import_plugin(import_spec)

../../.local/lib/python3.8/site-packages/_pytest/config/init.py:755
/var/AzDevOps/.local/lib/python3.8/site-packages/_pytest/config/init.py:755: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: tests.common.dualtor
self.import_plugin(import_spec)

../../../../usr/local/lib/python3.8/dist-packages/paramiko/transport.py:236
/usr/local/lib/python3.8/dist-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated
"class": algorithms.Blowfish,

snappi_tests/reboot/test_soft_reboot.py::test_reboot[soft]
snappi_tests/reboot/test_soft_reboot.py::test_reboot[soft]
snappi_tests/reboot/test_soft_reboot.py::test_reboot[soft]
snappi_tests/reboot/test_soft_reboot.py::test_reboot[soft]
snappi_tests/reboot/test_soft_reboot.py::test_reboot[soft]
snappi_tests/reboot/test_soft_reboot.py::test_reboot[soft]
/usr/local/lib/python3.8/dist-packages/pytest_ansible/module_dispatcher/v213.py:100: UserWarning: provided hosts list is empty, only localhost is available
warnings.warn("provided hosts list is empty, only localhost is available")

snappi_tests/reboot/test_soft_reboot.py::test_reboot[soft]
/var/AzDevOps/.local/lib/python3.8/site-packages/snappi_ixnetwork/device/utils.py:2: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
from collections import namedtuple, Mapping

snappi_tests/reboot/test_soft_reboot.py::test_reboot[soft]
snappi_tests/reboot/test_soft_reboot.py::test_reboot[soft]
/usr/local/lib/python3.8/dist-packages/ixnetwork_restpy/testplatform/sessions/sessions.py:59: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
elif LooseVersion(build_number) < LooseVersion('8.52'):

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
---------------------------------------------------------------------------------- live log sessionfinish ----------------------------------------------------------------------------------
00:04:17 init.pytest_terminal_summary L0067 INFO | Can not get Allure report URL. Please check logs
======================================================================== 1 passed, 14 warnings in 842.98s (0:14:02) =========================

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.

1 participant