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
So from what I can tell, other NApps that use of_multi_table are loading in after this NApp has loaded. of_multi_table uses the list of currently loaded NApps to know which NApps it should wait on before updating their flow tables. However, since these NApps can load in after of_multi_table has already checked the loaded NApps, then of_multi_table, will not wait for them.
In addition to the above, the following error is produced when this occurs:
2024-08-13 20:54:43,938 - INFO [kytos.core.controller] (MainThread) Event handler meta started
2024-08-13 20:54:43,962 - INFO [uvicorn.error] (MainThread) Application startup complete.
2024-08-13 20:54:43,989 - ERROR [kytos.core.helpers] (thread_pool_app_10) listen_to handler: <function Main.on_enable_table at 0x7f11c07c8c20>, args: (<Main(of_multi_table, stopped 139711704090304)>, KytosEvent('kytos/telemetry_int.enable_table', {'group_table': {'evpl': 2, 'epl': 3}}, 0)) traceback: Traceback (most recent call last):, File "/home/ktmi/kytos-project/kytos/kytos/core/helpers.py", line 141, in handler_context, result = handler(*args), ^^^^^^^^^^^^^^, File "/home/ktmi/kytos-project/kenv/var/lib/kytos/napps/kytos/of_multi_table/main.py", line 128, in on_enable_table, self.handle_enable_table(event), File "/home/ktmi/kytos-project/kenv/var/lib/kytos/napps/kytos/of_multi_table/main.py", line 135, in handle_enable_table, self.required_napps.remove(napp), KeyError: 'telemetry_int',
2024-08-13 20:54:43,990 - ERROR [kytos.core.helpers] (thread_pool_app_9) listen_to handler: <function Main.on_enable_table at 0x7f11c07c8c20>, args: (<Main(of_multi_table, stopped 139711704090304)>, KytosEvent('kytos/of_lldp.enable_table', {'group_table': {'base': 0}}, 0)) traceback: Traceback (most recent call last):, File "/home/ktmi/kytos-project/kytos/kytos/core/helpers.py", line 141, in handler_context, result = handler(*args), ^^^^^^^^^^^^^^, File "/home/ktmi/kytos-project/kenv/var/lib/kytos/napps/kytos/of_multi_table/main.py", line 128, in on_enable_table, self.handle_enable_table(event), File "/home/ktmi/kytos-project/kenv/var/lib/kytos/napps/kytos/of_multi_table/main.py", line 135, in handle_enable_table, self.required_napps.remove(napp), KeyError: 'of_lldp',
2024-08-13 20:54:43,990 - ERROR [kytos.core.helpers] (thread_pool_app_9) listen_to handler: <function Main.on_enable_table at 0x7f11c07c8c20>, args: (<Main(of_multi_table, stopped 139711704090304)>, KytosEvent('kytos/coloring.enable_table', {'group_table': {'base': 0}}, 0)) traceback: Traceback (most recent call last):, File "/home/ktmi/kytos-project/kytos/kytos/core/helpers.py", line 141, in handler_context, result = handler(*args), ^^^^^^^^^^^^^^, File "/home/ktmi/kytos-project/kenv/var/lib/kytos/napps/kytos/of_multi_table/main.py", line 128, in on_enable_table, self.handle_enable_table(event), File "/home/ktmi/kytos-project/kenv/var/lib/kytos/napps/kytos/of_multi_table/main.py", line 135, in handle_enable_table, self.required_napps.remove(napp), KeyError: 'coloring',
The text was updated successfully, but these errors were encountered:
Good finding. Yes, it shouldn't crash and handle the self.required_napps.remove(napp) potential KeyError accordingly.
The assumption of this NApp on its current version is that indeed it's always loaded last, if you encountered other errors while still loading it last let us know that it deserves to be prioritized.
@Alopalao assigning this to you, no need for immediate action, keep on with the other higher priority issues you have. But then when you have bandwith let's try to solve this since this NApp is still being maintained and tested. It needs better handling in that part, even though it's expected that mef_eline will load first.
So from what I can tell, other NApps that use
of_multi_table
are loading in after this NApp has loaded.of_multi_table
uses the list of currently loaded NApps to know which NApps it should wait on before updating their flow tables. However, since these NApps can load in afterof_multi_table
has already checked the loaded NApps, thenof_multi_table
, will not wait for them.In addition to the above, the following error is produced when this occurs:
The text was updated successfully, but these errors were encountered: