Open monstery opened 10 years ago
Thank you for bug report. Your report seems to be same issue #22 . Please apply the following patch.
---
src/dataplane/ofproto/comm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/dataplane/ofproto/comm.c b/src/dataplane/ofproto/comm.c
index b02564d..ae0f563 100644
--- a/src/dataplane/ofproto/comm.c
+++ b/src/dataplane/ofproto/comm.c
@@ -168,6 +168,7 @@ process_event_dataq_entry(struct dpmgr *dpmgr,
reply->free = ofp_barrier_free;
reply->barrier.req = NULL;
reply->barrier.xid = data->barrier.xid;
+ reply->barrier.channel_id = data->barrier.channel_id;
(void) ofp_handler_eventq_data_put(dpid, &reply, PUT_TIMEOUT);
break;
default:
--
lagopus run on 4-core atom CPU and 8-core atom CPU We start lagopus with the following command:
lagopus -d -- -cff -n2 -- -p3f
We will set 6 flows to our lagopus softswitch by Ryu controller. The flows are as follows:
port 1 connect our traffic generator port 16 port 2 connect our traffic generator port 17 port 3 connect our traffic generator port 18 port 4 connect our traffic generator port 19
we do Ryu test. The ryu test will always report barrier-reply time out error.
ryu-manager --test-switch-target 0dae4829047d5d02 --test-switch-tester bab59e78f --test-switch-dir of13/action/00_OUTPUT.json tester.py loading app tester.py loading app ryu.controller.ofp_handler instantiating app tester.py of OfTester target_dpid=0dae4829047d5d02 tester_dpid=0000000bab59e78f Test files directory = of13/action/00_OUTPUT.json instantiating app ryu.controller.ofp_handler of OFPHandler --- Test start --- waiting for switches connection... dpid=0000000bab59e78f : Join tester SW. dpid=0dae4829047d5d02 : Join target SW. action: 00_OUTPUT ethernet/ipv4/tcp-->'actions=output:2' ERROR Failed to add flows: barrier request timeout. ethernet/ipv6/tcp-->'actions=output:2' ERROR Failed to add flows: barrier request timeout. ethernet/arp-->'actions=output:2' ERROR Failed to add flows: barrier request timeout. --- Test end --- --- Test report --- Failed to add flows(3) action: 00_OUTPUT ethernet/ipv4/tcp-->'actions=output:2' action: 00_OUTPUT ethernet/ipv6/tcp-->'actions=output:2' action: 00_OUTPUT ethernet/arp-->'actions=output:2'
OK(0) / ERROR(3) Terminated
======= messages in syslog ========== Sep 5 09:58:58 localhost /usr/sbin/lagopus[3322]: [Fri Sep 05 09:58:58 UTC 2014][INFO ][3322:0x00007fb160335700:agent]:./channel.c:515:channel_start: Connecting to OpenFlow controller (null):6633 Sep 5 09:58:58 localhost /usr/sbin/lagopus[3322]: [Fri Sep 05 09:58:58 UTC 2014][INFO ][3322:0x00007fb160335700:agent]:./session.c:95:bind_default: host:0.0.0.0, service:0 Sep 5 09:58:58 localhost /usr/sbin/lagopus[3322]: [Fri Sep 05 09:58:58 UTC 2014][INFO ][3322:0x00007fb160335700:agent]:./session.c:57:socket_buffer_size_set: SO_SNDBUF buffer size is 131070 Sep 5 09:58:58 localhost /usr/sbin/lagopus[3322]: [Fri Sep 05 09:58:58 UTC 2014][INFO ][3322:0x00007fb160335700:agent]:./session.c:59:socket_buffer_size_set: SO_RCVBUF buffer size is 131070 Sep 5 09:58:58 localhost /usr/sbin/lagopus[3322]: [Fri Sep 05 09:58:58 UTC 2014][INFO ][3322:0x00007fb160335700:agent]:./session.c:131:connect_default: host:10.0.119.2, service:6633 Sep 5 09:58:58 localhost /usr/sbin/lagopus[3322]: [Fri Sep 05 09:58:58 UTC 2014][INFO ][3322:0x00007fb15fb34700:ofp_handler]:./channel.c:668:channel_hello_confirm: channel_hello_confirm in Sep 5 09:58:59 localhost /usr/sbin/lagopus[3322]: [Fri Sep 05 09:58:59 UTC 2014][WARN ][3322:0x00007fb15fb34700:ofp_handler]:./ofp_barrier_handler.c:227:ofp_barrier_reply_handle: Not found channel. Sep 5 09:58:59 localhost /usr/sbin/lagopus[3322]: [Fri Sep 05 09:58:59 UTC 2014][ERROR][3322:0x00007fb15fb34700:ofp_handler]:./ofp_handler.c:790:s_dequeue: Not found. Sep 5 09:58:59 localhost /usr/sbin/lagopus[3322]: [Fri Sep 05 09:58:59 UTC 2014][ERROR][3322:0x00007fb15fb34700:ofp_handler]:./ofp_handler.c:932:s_ofph_thread_main: Not found. Sep 5 09:59:02 localhost /usr/sbin/lagopus[3322]: [Fri Sep 05 09:59:02 UTC 2014][WARN ][3322:0x00007fb15fb34700:ofp_handler]:./ofp_barrier_handler.c:227:ofp_barrier_reply_handle: Not found channel. Sep 5 09:59:02 localhost /usr/sbin/lagopus[3322]: [Fri Sep 05 09:59:02 UTC 2014][ERROR][3322:0x00007fb15fb34700:ofp_handler]:./ofp_handler.c:790:s_dequeue: Not found. Sep 5 09:59:02 localhost /usr/sbin/lagopus[3322]: [Fri Sep 05 09:59:02 UTC 2014][ERROR][3322:0x00007fb15fb34700:ofp_handler]:./ofp_handler.c:932:s_ofph_thread_main: Not found. Sep 5 09:59:06 localhost /usr/sbin/lagopus[3322]: [Fri Sep 05 09:59:06 UTC 2014][WARN ][3322:0x00007fb15fb34700:ofp_handler]:./ofp_barrier_handler.c:227:ofp_barrier_reply_handle: Not found channel. Sep 5 09:59:06 localhost /usr/sbin/lagopus[3322]: [Fri Sep 05 09:59:06 UTC 2014][ERROR][3322:0x00007fb15fb34700:ofp_handler]:./ofp_handler.c:790:s_dequeue: Not found. Sep 5 09:59:06 localhost /usr/sbin/lagopus[3322]: [Fri Sep 05 09:59:06 UTC 2014][ERROR][3322:0x00007fb15fb34700:ofp_handler]:./ofp_handler.c:932:s_ofph_thread_main: Not found. Sep 5 09:59:08 localhost /usr/sbin/lagopus[3322]: [Fri Sep 05 09:59:08 UTC 2014][INFO ][3322:0x00007fb160335700:agent]:./channel.c:540:channel_stop: channel_stop() is called Sep 5 09:59:08 localhost /usr/sbin/lagopus[3322]: [Fri Sep 05 09:59:08 UTC 2014][INFO ][3322:0x00007fb160335700:agent]:./channel.c:544:channel_stop: closing the socket 49 Sep 5 09:59:08 localhost /usr/sbin/lagopus[3322]: [Fri Sep 05 09:59:08 UTC 2014][INFO ][3322:0x00007fb160335700:agent]:./channel.c:560:channel_stop: switch to SWITCH_MODE_STANDALONE