Hi RYU team,

I am seeing following issue with RYU.  I am testing flow stats request with 
vendor hardware switch using OF1.3.1

Step 1 : Pushed the below flow from RYU to switch. The flow gets installed 
rightly.


curl -X POST -d '{"dpid": "71145865295808","priority":"1","match": {"in_port": 
"2","dl_type":"34525","ipv6_src":"2001::/64","ipv6_dst": 
"1001::1","nw_proto":"6","tcp_src":"1"},"actions": [{"type": "OUTPUT", "port": 
"1"}]}' http://localhost:8080/stats/flowentry/add


This can be any type of flow for this matter.


Step2: Using the below curl command requested for flow stats.


curl -X GET http://localhost:8080/stats/flow/71145865295808


At this point, RYU cored with traceback and reseted the controller connection. 
Attached the PCAP as well.  Can you help troubleshoot or fix this issue w.r.t 
to RYU?


127.0.0.1 - - [11/Nov/2014 20:11:15] "GET /stats/flow/110533271024824 HTTP/1.1" 
404 122 0.000394
(1968) accepted ('127.0.0.1', 48296)
Error in the datapath 000040b4f00737c0 from ('10.102.143.26', 54049)
EVENT ofp_event->dpset EventOFPStateChange
hub: uncaught exception: Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 52, in 
_launch
    func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", 
line 306, in datapath_connection_factory
    datapath.serve()
  File "/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", 
line 226, in serve
    self._recv_loop()
  File "/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", 
line 102, in deactivate
    method(self)
  File "/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", 
line 157, in _recv_loop
    version, msg_type, msg_len, xid, buf)
  File "/usr/local/lib/python2.7/dist-packages/ryu/ofproto/ofproto_parser.py", 
line 63, in msg
    version, msg_type, msg_len, xid, utils.bytearray_to_hex(buf))
  File "/usr/local/lib/python2.7/dist-packages/ryu/utils.py", line 103, in 
bytearray_to_hex
    return ' '.join(hex(ord(byte)) for byte in data)
  File "/usr/local/lib/python2.7/dist-packages/ryu/utils.py", line 103, in 
<genexpr>
    return ' '.join(hex(ord(byte)) for byte in data)
TypeError: ord() expected string of length 1, but int found




Attachment: ryu_switch_side_flow_stats.cap
Description: ryu_switch_side_flow_stats.cap

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to