kytos-ng / flow_manager

Kytos NApp that manages OpenFlow 1.3 entries
https://kytos-ng.github.io/api/flow_manager.html
MIT License
0 stars 7 forks source link

hotfix 2024.1.1: handled flow xid key error on barrier reply and logged error #199

Closed viniarck closed 2 months ago

viniarck commented 2 months ago

Closes #198

Summary

Local Tests

2024-08-30 15:51:02,208 - INFO [uvicorn.access] (MainThread) 127.0.0.1:56276 - "POST /api/kytos/pathfinder/v3/ HTTP/1.1" 200
2024-08-30 15:51:02,222 - INFO [kytos.napps.kytos/flow_manager] (AnyIO worker thread) Send FlowMod from request dpid: 00:00:00:00:00:00:00:02, command: add, force: False, total_length: 2
,  flows[0, 2]: [{'match': {'in_port': 2, 'dl_vlan': 1}, 'cookie': 12257185549601114702, 'actions': [{'action_type': 'set_vlan', 'vlan_id': 1}, {'action_type': 'output', 'port': 3}], 'ow
ner': 'mef_eline', 'table_group': 'evpl', 'table_id': 0, 'priority': 20000}, {'match': {'in_port': 3, 'dl_vlan': 1}, 'cookie': 12257185549601114702, 'actions': [{'action_type': 'set_vlan
', 'vlan_id': 1}, {'action_type': 'output', 'port': 2}], 'owner': 'mef_eline', 'table_group': 'evpl', 'table_id': 0, 'priority': 20000}]
2024-08-30 15:51:02,230 - INFO [uvicorn.access] (MainThread) 127.0.0.1:56280 - "POST /api/kytos/flow_manager/v2/flows/00%3A00%3A00%3A00%3A00%3A00%3A00%3A02 HTTP/1.1" 202
2024-08-30 15:51:02,241 - INFO [kytos.napps.kytos/flow_manager] (AnyIO worker thread) Send FlowMod from request dpid: 00:00:00:00:00:00:00:01, command: add, force: False, total_length: 1
,  flows[0, 1]: [{'match': {'in_port': 3, 'dl_vlan': 1}, 'cookie': 12257185549601114702, 'actions': [{'action_type': 'pop_vlan'}, {'action_type': 'output', 'port': 1}], 'owner': 'mef_eli
ne', 'table_group': 'evpl', 'table_id': 0, 'priority': 20000}]
2024-08-30 15:51:02,246 - INFO [uvicorn.access] (MainThread) 127.0.0.1:56296 - "POST /api/kytos/flow_manager/v2/flows/00%3A00%3A00%3A00%3A00%3A00%3A00%3A01 HTTP/1.1" 202
2024-08-30 15:51:02,256 - INFO [kytos.napps.kytos/flow_manager] (AnyIO worker thread) Send FlowMod from request dpid: 00:00:00:00:00:00:00:03, command: add, force: False, total_length: 1
,  flows[0, 1]: [{'match': {'in_port': 2, 'dl_vlan': 1}, 'cookie': 12257185549601114702, 'actions': [{'action_type': 'pop_vlan'}, {'action_type': 'output', 'port': 1}], 'owner': 'mef_eli
ne', 'table_group': 'evpl', 'table_id': 0, 'priority': 20000}]
2024-08-30 15:51:02,263 - INFO [uvicorn.access] (MainThread) 127.0.0.1:56308 - "POST /api/kytos/flow_manager/v2/flows/00%3A00%3A00%3A00%3A00%3A00%3A00%3A03 HTTP/1.1" 202
2024-08-30 15:51:02,267 - INFO [kytos.napps.kytos/mef_eline] (thread_pool_app_3) Failover path for EVC(1a4550e6068a4e, evpl) was deployed.
2024-08-30 15:51:03,495 - INFO [uvicorn.access] (MainThread) 127.0.0.1:56236 - "GET /api/kytos/topology/v3/switches HTTP/1.1" 200
2024-08-30 15:51:03,509 - INFO [uvicorn.access] (MainThread) 127.0.0.1:56236 - "GET /api/kytos/mef_eline/v2/evc/ HTTP/1.1" 200
kytos $> 

kytos $> 

kytos $> 

kytos $> 

kytos $> 

kytos $> controller.napps[('kytos', 'flow_manager')]._flow_mods_sent_max_size
Out[1]: 70000

End-to-End Tests

with this branch:

============================= test session starts ==============================
platform linux -- Python 3.11.2, pytest-8.1.1, pluggy-1.5.0
rootdir: /builds/amlight/kytos-end-to-end-tester/kytos-end-to-end-tests
plugins: rerunfailures-13.0, timeout-2.2.0, anyio-4.3.0
collected 267 items
tests/test_e2e_01_kytos_startup.py ..                                    [  0%]
tests/test_e2e_05_topology.py ..................                         [  7%]
tests/test_e2e_06_topology.py ....                                       [  8%]
tests/test_e2e_10_mef_eline.py ..........ss.....x.....x................  [ 23%]
tests/test_e2e_11_mef_eline.py ......                                    [ 26%]
tests/test_e2e_12_mef_eline.py .....Xx.                                  [ 29%]
tests/test_e2e_13_mef_eline.py ....Xs.s.....Xs.s.XXxX.xxxx..X........... [ 44%]
.                                                                        [ 44%]
tests/test_e2e_14_mef_eline.py x                                         [ 45%]
tests/test_e2e_15_mef_eline.py .....                                     [ 47%]
tests/test_e2e_16_mef_eline.py ..                                        [ 47%]
tests/test_e2e_20_flow_manager.py ......................                 [ 56%]
tests/test_e2e_21_flow_manager.py ...                                    [ 57%]
tests/test_e2e_22_flow_manager.py ...............                        [ 62%]
tests/test_e2e_23_flow_manager.py ..............                         [ 68%]
tests/test_e2e_30_of_lldp.py ....                                        [ 69%]
tests/test_e2e_31_of_lldp.py ...                                         [ 70%]
tests/test_e2e_32_of_lldp.py ...                                         [ 71%]
tests/test_e2e_40_sdntrace.py ................                           [ 77%]
tests/test_e2e_41_kytos_auth.py ........                                 [ 80%]
tests/test_e2e_42_sdntrace.py ..                                         [ 81%]
tests/test_e2e_50_maintenance.py ............................            [ 92%]
tests/test_e2e_60_of_multi_table.py .....                                [ 94%]
tests/test_e2e_70_kytos_stats.py ........                                [ 97%]
tests/test_e2e_80_pathfinder.py ss......                                 [100%]
=============================== warnings summary ===============================
= 243 passed, 8 skipped, 9 xfailed, 7 xpassed, 1295 warnings in 12640.48s (3:30:40) =