I am seeing the following error when controller receives and attempts to parse 
a multipart reply for a port_desc_stats_request.  This was working until 
recently, I would appreciate any suggestions for a fix/workaround to this issue.

Trace:
[0x1000082e5f694c00] ('143.0.1.211', 56538): OFPGetConfigReply received:
        flags=NORMAL miss_send_len=1518
Error in the datapath 1000082e5f694c00 from ('143.0.1.211', 56538)
hub: uncaught exception: Traceback (most recent call last):
  File 
"/usr/local/lib/python2.6/dist-packages/ryu-2.1-py2.6.egg/ryu/lib/hub.py", line 
48, in _launch
    func(*args, **kwargs)
 File 
"/usr/local/lib/python2.6/dist-packages/ryu-2.1-py2.6.egg/ryu/controller/controller.py",
 line 312, in datapath_connection_factory
    datapath.serve()
  File 
"/usr/local/lib/python2.6/dist-packages/ryu-2.1-py2.6.egg/ryu/controller/controller.py",
 line 232, in serve
    self._recv_loop()
  File 
"/usr/local/lib/python2.6/dist-packages/ryu-2.1-py2.6.egg/ryu/controller/controller.py",
 line 97, in deactivate
    method(self)
  File 
"/usr/local/lib/python2.6/dist-packages/ryu-2.1-py2.6.egg/ryu/controller/controller.py",
 line 165, in _recv_loop
    version, msg_type, msg_len, xid, buf)
  File 
"/usr/local/lib/python2.6/dist-packages/ryu-2.1-py2.6.egg/ryu/ofproto/ofproto_parser.py",
 line 54, in msg
    return msg_parser(datapath, version, msg_type, msg_len, xid, buf)
  File 
"/usr/local/lib/python2.6/dist-packages/ryu-2.1-py2.6.egg/ryu/ofproto/ofproto_v1_3_parser.py",
 line 50, in msg_parser
    return parser(datapath, version, msg_type, msg_len, xid, buf)
  File 
"/usr/local/lib/python2.6/dist-packages/ryu-2.1-py2.6.egg/ryu/ofproto/ofproto_v1_3_parser.py",
 line 2192, in parser
    offset += b._length
AttributeError: 'OFPPort' object has no attribute '_length'


Code:
...
                self.send_get_config_request(datapath)
self.send_port_desc_stats_request(datapath)
...
                def send_port_desc_stats_request(self, datapath):
                                self.printme("SENT port_desc_stats_request", 
datapath, 3)
                                ofp_parser = datapath.ofproto_parser
                                req = 
ofp_parser.OFPPortDescStatsRequest(datapath, 0)
                                datapath.send_msg(req)
...


Thanks,
--Matt

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to