You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@slutati1536 What version of sonic-mgmt are you using? If you are using a newer image, you will need to update sonic-mgmt as well, since there were some test-breaking changes that went in.
Description
test is broken by PR #7748, failed over key error
Steps to reproduce the issue:
Describe the results you received:
if test_interface.startswith("PortChannel"):
for member in list(portchannels[test_interface].keys()):
E KeyError: 'admin_status'
_find_test_bgp_neighbors = <function test_bgp_gr_helper_routes_perserved.._find_test_bgp_neighbors at 0x7fded0cbdf70>
_get_learned_bgp_routes_from_neighbor = <function test_bgp_gr_helper_routes_perserved.._get_learned_bgp_routes_from_neighbor at 0x7fded0e21430>
_get_prefix_counters = <function test_bgp_gr_helper_routes_perserved.._get_prefix_counters at 0x7fded0e21d30>
_get_rib = <function test_bgp_gr_helper_routes_perserved.._get_rib at 0x7fded0e21dc0>
_verify_bgp_neighbor_routes_during_graceful_restart = <function test_bgp_gr_helper_routes_perserved.._verify_bgp_neighbor_routes_during_graceful_restart at 0x7fded16a0820>
_verify_prefix_counters_from_neighbor_after_graceful_restart = <function test_bgp_gr_helper_routes_perserved.._verify_prefix_counters_from_neighbor_after_graceful_restart at 0x7fded271c820>
_verify_prefix_counters_from_neighbor_during_graceful_restart = <function test_bgp_gr_helper_routes_perserved.._verify_prefix_counters_from_neighbor_during_graceful_restart at 0x7fded69afc10>
bgp_neighbors = {'10.0.0.1': {'admin_status': 'up', 'asn': '64802', 'holdtime': '10', 'keepalive': '3', ...}, '10.0.0.13': {'admin_sta...eepalive': '3', ...}, '10.0.0.9': {'admin_status': 'up', 'asn': '64802', 'holdtime': '10', 'keepalive': '3', ...}, ...}
config_facts = {'ACL_TABLE': {'DATAACL': {'policy_desc': 'DATAACL', 'ports': ['PortChannel101', 'PortChannel102', 'PortChannel103', '...'rate_limit_interval': '600', 'state': 'enabled'}, ...}, 'BGP_DEVICE_GLOBAL': {'STATE': {'tsa_enabled': 'false'}}, ...}
configurations = {'common': {'dut_asn': 64601, 'dut_type': 'ToRRouter', 'failure_rate': 0, 'leaf_asn_start': 64802, ...}}
dev_nbrs = {'Ethernet0': {'name': 'ARISTA01T1', 'port': 'Ethernet1'}, 'Ethernet100': {'name': 'Servers13', 'port': 'eth0'}, 'Ethernet104': {'name': 'Servers14', 'port': 'eth0'}, 'Ethernet108': {'name': 'Servers15', 'port': 'eth0'}, ...}
duthost =
duthosts = []
exabgp_ips = ['10.10.246.254', 'FC0A::FF']
exabgp_sessions = ['exabgp_v4', 'exabgp_v6']
ifnames_common = ['PortChannel101', 'PortChannel104', 'PortChannel103', 'PortChannel102']
ifnames_v4 = ['PortChannel101', 'PortChannel104', 'PortChannel103', 'PortChannel102']
ifnames_v6 = ['PortChannel101', 'PortChannel104', 'PortChannel103', 'PortChannel102']
member = 'admin_status'
nbr_ports = []
nbrhosts = {'ARISTA01T1': , 'ARISTA02T1': , 'ARISTA03T1': , 'ARISTA04T1': }
portchannels = {'PortChannel101': {'admin_status': 'up', 'lacp_key': 'auto', 'members': ['Ethernet0', 'Ethernet4'], 'min_links': '2',...hannel104': {'admin_status': 'up', 'lacp_key': 'auto', 'members': ['Ethernet80', 'Ethernet84'], 'min_links': '2', ...}}
portchannels_memebers = {'PortChannel101': {'Ethernet0': {}, 'Ethernet4': {}}, 'PortChannel102': {'Ethernet16': {}, 'Ethernet20': {}}, 'PortChannel103': {'Ethernet64': {}, 'Ethernet68': {}}, 'PortChannel104': {'Ethernet80': {}, 'Ethernet84': {}}}
rand_one_dut_hostname = 'r-tigon-20'
rtinfo_v4 = {'nexthops': [(IPv4Address('10.0.0.1'), 'PortChannel101'), (IPv4Address('10.0.0.13'), 'PortChannel104'), (IPv4Address('10.0.0.9'), 'PortChannel103'), (IPv4Address('10.0.0.5'), 'PortChannel102')], 'set_src': IPv4Address('10.1.0.32')}
rtinfo_v6 = {'nexthops': [(IPv6Address('fc00::2'), 'PortChannel101'), (IPv6Address('fc00::1a'), 'PortChannel104'), (IPv6Address('fc00::12'), 'PortChannel103'), (IPv6Address('fc00::a'), 'PortChannel102')], 'set_src': IPv6Address('fc00:1::32')}
setup_bgp_graceful_restart = None
tbinfo = {'comment': 'Mellanox MTR testbed', 'conf-name': 'r-tigon-20-t0-64', 'duts': ['r-tigon-20'], 'duts_map': {'r-tigon-20': 0}, ...}
test_interface = 'PortChannel101'
bgp/test_bgp_gr_helper.py:135: KeyError
for member in list(portchannels[test_interface].keys()): should be fixed to
for member in list(portchannels[test_interface]['members'].keys())
Describe the results you expected:
test should not fail over test issue
Additional information you deem important:
Output of
show version
:The text was updated successfully, but these errors were encountered: