[vlanmgrd]: Preventing VLAN interfaces from going down when all of their member ports are down #3370
Build #20241122.29 had test failures
Details
- Failed: 7 (0.79%)
- Passed: 825 (92.91%)
- Other: 56 (6.31%)
- Total: 888
- 41755 of 61964 lines covered (67.39%)
Annotations
Check failure on line 7373 in Build log
azure-pipelines / Azure.sonic-swss
Build log #L7373
Bash exited with code '123'.
Check failure on line 8058 in Build log
azure-pipelines / Azure.sonic-swss
Build log #L8058
Bash exited with code '123'.
Check failure on line 1 in test_vnet_orch_1
azure-pipelines / Azure.sonic-swss
test_vnet_orch_1
AssertionError: The VR objects are not created
Raw output
self = <test_vnet.TestVnetOrch object at 0x7fa20bcf57f0>
dvs = <conftest.DockerVirtualSwitch object at 0x7fa20bd126d0>, testlog = None
def test_vnet_orch_1(self, dvs, testlog):
vnet_obj = self.get_vnet_obj()
tunnel_name = 'tunnel_1'
vnet_obj.fetch_exist_entries(dvs)
create_vxlan_tunnel(dvs, tunnel_name, '10.10.10.10')
create_vnet_entry(dvs, 'Vnet_2000', tunnel_name, '2000', "")
> vnet_obj.check_vnet_entry(dvs, 'Vnet_2000')
test_vnet.py:127:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <vnet_lib.VnetVxlanVrfTunnel object at 0x7fa20bcd9c10>
dvs = <conftest.DockerVirtualSwitch object at 0x7fa20bd126d0>
name = 'Vnet_2000', peer_list = []
def check_vnet_entry(self, dvs, name, peer_list=[]):
asic_db = swsscommon.DBConnector(swsscommon.ASIC_DB, dvs.redis_sock, 0)
app_db = swsscommon.DBConnector(swsscommon.APPL_DB, dvs.redis_sock, 0)
#Assert if there are linklocal entries
tbl = swsscommon.Table(app_db, "VNET_ROUTE_TUNNEL_TABLE")
route_entries = tbl.getKeys()
assert "ff00::/8" not in route_entries
assert "fe80::/64" not in route_entries
#Check virtual router objects
> assert how_many_entries_exist(asic_db, self.ASIC_VRF_TABLE) == (len(self.vnet_vr_ids) + 1),\
"The VR objects are not created"
E AssertionError: The VR objects are not created
vnet_lib.py:863: AssertionError
Check failure on line 1 in test_vnet_orch_2
azure-pipelines / Azure.sonic-swss
test_vnet_orch_2
AssertionError: The VR objects are not created
Raw output
self = <test_vnet.TestVnetOrch object at 0x7fa20bbb8880>
dvs = <conftest.DockerVirtualSwitch object at 0x7fa20bd126d0>, testlog = None
def test_vnet_orch_2(self, dvs, testlog):
vnet_obj = self.get_vnet_obj()
tunnel_name = 'tunnel_2'
vnet_obj.fetch_exist_entries(dvs)
create_vxlan_tunnel(dvs, tunnel_name, '6.6.6.6')
create_vnet_entry(dvs, 'Vnet_1', tunnel_name, '1111', "")
> vnet_obj.check_vnet_entry(dvs, 'Vnet_1')
test_vnet.py:223:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <vnet_lib.VnetVxlanVrfTunnel object at 0x7fa20bbb8760>
dvs = <conftest.DockerVirtualSwitch object at 0x7fa20bd126d0>, name = 'Vnet_1'
peer_list = []
def check_vnet_entry(self, dvs, name, peer_list=[]):
asic_db = swsscommon.DBConnector(swsscommon.ASIC_DB, dvs.redis_sock, 0)
app_db = swsscommon.DBConnector(swsscommon.APPL_DB, dvs.redis_sock, 0)
#Assert if there are linklocal entries
tbl = swsscommon.Table(app_db, "VNET_ROUTE_TUNNEL_TABLE")
route_entries = tbl.getKeys()
assert "ff00::/8" not in route_entries
assert "fe80::/64" not in route_entries
#Check virtual router objects
> assert how_many_entries_exist(asic_db, self.ASIC_VRF_TABLE) == (len(self.vnet_vr_ids) + 1),\
"The VR objects are not created"
E AssertionError: The VR objects are not created
vnet_lib.py:863: AssertionError
Check failure on line 1 in test_vnet_orch_3
azure-pipelines / Azure.sonic-swss
test_vnet_orch_3
AssertionError: The VR objects are not created
Raw output
self = <test_vnet.TestVnetOrch object at 0x7fa20bbfe340>
dvs = <conftest.DockerVirtualSwitch object at 0x7fa20bd126d0>, testlog = None
def test_vnet_orch_3(self, dvs, testlog):
vnet_obj = self.get_vnet_obj()
tunnel_name = 'tunnel_3'
vnet_obj.fetch_exist_entries(dvs)
create_vxlan_tunnel(dvs, tunnel_name, '7.7.7.7')
create_vnet_entry(dvs, 'Vnet_10', tunnel_name, '3333', "Vnet_20")
> vnet_obj.check_vnet_entry(dvs, 'Vnet_10', ['Vnet_20'])
test_vnet.py:353:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <vnet_lib.VnetVxlanVrfTunnel object at 0x7fa20bbfea00>
dvs = <conftest.DockerVirtualSwitch object at 0x7fa20bd126d0>, name = 'Vnet_10'
peer_list = ['Vnet_20']
def check_vnet_entry(self, dvs, name, peer_list=[]):
asic_db = swsscommon.DBConnector(swsscommon.ASIC_DB, dvs.redis_sock, 0)
app_db = swsscommon.DBConnector(swsscommon.APPL_DB, dvs.redis_sock, 0)
#Assert if there are linklocal entries
tbl = swsscommon.Table(app_db, "VNET_ROUTE_TUNNEL_TABLE")
route_entries = tbl.getKeys()
assert "ff00::/8" not in route_entries
assert "fe80::/64" not in route_entries
#Check virtual router objects
> assert how_many_entries_exist(asic_db, self.ASIC_VRF_TABLE) == (len(self.vnet_vr_ids) + 1),\
"The VR objects are not created"
E AssertionError: The VR objects are not created
vnet_lib.py:863: AssertionError
Check failure on line 1 in test_vnet_orch_5
azure-pipelines / Azure.sonic-swss
test_vnet_orch_5
AssertionError: Wrong number of created entries.
Raw output
self = <test_vnet.TestVnetOrch object at 0x7fa20b80a220>
dvs = <conftest.DockerVirtualSwitch object at 0x7fa20bd126d0>, testlog = None
def test_vnet_orch_5(self, dvs, testlog):
vnet_obj = self.get_vnet_obj()
tunnel_name = 'tunnel_5'
vnet_obj.fetch_exist_entries(dvs)
create_vxlan_tunnel(dvs, tunnel_name, '8.8.8.8')
create_vnet_entry(dvs, 'Vnet_5', tunnel_name, '4789', "", 'default')
vnet_obj.check_default_vnet_entry(dvs, 'Vnet_5')
> vnet_obj.check_vxlan_tunnel_entry(dvs, tunnel_name, 'Vnet_5', '4789')
test_vnet.py:580:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
vnet_lib.py:823: in check_vxlan_tunnel_entry
tunnel_map_id = get_created_entries(asic_db, self.ASIC_TUNNEL_MAP, self.tunnel_map_ids, 4)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
db = <swsscommon.swsscommon.DBConnector; proxy of <Swig Object of type 'swss::DBConnector *' at 0x7fa20b80a570> >
table = 'ASIC_STATE:SAI_OBJECT_TYPE_TUNNEL_MAP'
existed_entries = {'oid:0x29000000000615', 'oid:0x29000000000616', 'oid:0x29000000000617', 'oid:0x29000000000618', 'oid:0x29000000000622', 'oid:0x29000000000623', ...}
count = 4
def get_created_entries(db, table, existed_entries, count):
new_entries = get_all_created_entries(db, table, existed_entries)
> assert len(new_entries) == count, "Wrong number of created entries."
E AssertionError: Wrong number of created entries.
vnet_lib.py:74: AssertionError