Closed viniarck closed 1 year ago
How can I replicate this scenario? I run mininet with OF 1.0 and my result is:
kytos $> 2022-09-21 14:41:56,561 - INFO [kytos.core.atcp_server] (MainThread) New connection from 127.0.0.1:54530
2022-09-21 14:41:56,564 - WARNING [kytos.napps.kytos/of_core] (MainThread) connection ('127.0.0.1', 54530): version 1 negotiation failed
2022-09-21 14:41:56,564 - ERROR [kytos.napps.kytos/of_core] (MainThread) Connection ('127.0.0.1', 54530): Negotiation Failed
2022-09-21 14:41:57,062 - INFO [kytos.core.atcp_server] (MainThread) New connection from 127.0.0.1:35104
2022-09-21 14:41:57,062 - INFO [kytos.core.atcp_server] (MainThread) New connection from 127.0.0.1:35112
2022-09-21 14:41:57,064 - WARNING [kytos.napps.kytos/of_core] (MainThread) connection ('127.0.0.1', 35112): version 1 negotiation failed
2022-09-21 14:41:57,065 - ERROR [kytos.napps.kytos/of_core] (MainThread) Connection ('127.0.0.1', 35112): Negotiation Failed
Without ERROR
from kytos.core.helper
How can I replicate this scenario? I run mininet with OF 1.0 and my result is:
kytos $> 2022-09-21 14:41:56,561 - INFO [kytos.core.atcp_server] (MainThread) New connection from 127.0.0.1:54530 2022-09-21 14:41:56,564 - WARNING [kytos.napps.kytos/of_core] (MainThread) connection ('127.0.0.1', 54530): version 1 negotiation failed 2022-09-21 14:41:56,564 - ERROR [kytos.napps.kytos/of_core] (MainThread) Connection ('127.0.0.1', 54530): Negotiation Failed 2022-09-21 14:41:57,062 - INFO [kytos.core.atcp_server] (MainThread) New connection from 127.0.0.1:35104 2022-09-21 14:41:57,062 - INFO [kytos.core.atcp_server] (MainThread) New connection from 127.0.0.1:35112 2022-09-21 14:41:57,064 - WARNING [kytos.napps.kytos/of_core] (MainThread) connection ('127.0.0.1', 35112): version 1 negotiation failed 2022-09-21 14:41:57,065 - ERROR [kytos.napps.kytos/of_core] (MainThread) Connection ('127.0.0.1', 35112): Negotiation Failed
Without
ERROR
fromkytos.core.helper
Hi, @Alopalao. Double check if you have kytos/flow_manager:2022.2.0
installed and enabled. If you do, when you run mininet with any topology on OF1.0 when the negotiatoin fails you should hit this issue since this method will be called, and it'll crash with an unhanded exception.
As highlighted on OF spec, an
OFPT_ERROR
with typeOFPET_HELLO_FAILED
will be sent if the negotiation fails,flow_manager
shouldn't try to process it otherwise it can crash since the connection will be missing and it's not responsible for handling it:I encountered this when exploring PR https://github.com/kytos-ng/of_core/pull/82 that's dropping OF 1.0 support