2016-04-20 14:07:34.277 DEBUG RyuDFAdapter [-] move onto config mode from (pid=1194) hello_handler /usr/local/lib/python2.7/dist-packages/ryu/controller/ofp_handler.py:185
2016-04-20 14:07:34.278 DEBUG RyuDFAdapter [-] switch features ev version=0x4,msg_type=0x6,msg_len=0x20,xid=0x7b319b5a,OFPSwitchFeatures(auxiliary_id=0,capabilities=79,datapath_id=267145071754569,n_buffers=256,n_tables=254) from (pid=1194) switch_features_handler /usr/local/lib/python2.7/dist-packages/ryu/controller/ofp_handler.py:196
2016-04-20 14:07:34.285 ERROR ryu.controller.controller [-] Error in the datapath 0000f2f78f1afd49 from ('10.100.100.8', 60524)
2016-04-20 14:07:34.285 ERROR ryu.lib.hub [-] 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 402, in datapath_connection_factory
datapath.serve()
File "/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", line 320, in serve
self._recv_loop()
File "/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", line 115, in deactivate
method(self)
File "/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", line 225, in _recv_loop
handler(ev)
File "/opt/stack/dragonflow/dragonflow/controller/ryu_base_app.py", line 151, in switch_features_handler
self.dispatcher.dispatch('switch_features_handler', ev)
File "/opt/stack/dragonflow/dragonflow/controller/dispatcher.py", line 43, in dispatch
handler(*args, **kwargs)
File "/opt/stack/dragonflow/dragonflow/controller/dhcp_app.py", line 75, in switch_features_handler
self._install_flows_on_switch_up()
File "/opt/stack/dragonflow/dragonflow/controller/dhcp_app.py", line 427, in _install_flows_on_switch_up
self.add_local_port(port)
File "/opt/stack/dragonflow/dragonflow/controller/dhcp_app.py", line 343, in add_local_port
if not self._is_dhcp_enabled_on_network(lport, network_id):
File "/opt/stack/dragonflow/dragonflow/controller/dhcp_app.py", line 288, in _is_dhcp_enabled_on_network
subnet = self._get_subnet_by_port(lport)
File "/opt/stack/dragonflow/dragonflow/controller/dhcp_app.py", line 271, in _get_subnet_by_port
subnets = l_switch.get_subnets()
AttributeError: 'NoneType' object has no attribute 'get_subnets'
it turned out that lswitch table is empty
I got another exception related to this problem:
2016-04-20 14:07:34.277 DEBUG RyuDFAdapter [-] move onto config mode from (pid=1194) hello_handler /usr/local/ lib/python2. 7/dist- packages/ ryu/controller/ ofp_handler. py:185 0x4,msg_ type=0x6, msg_len= 0x20,xid= 0x7b319b5a, OFPSwitchFeatur es(auxiliary_ id=0,capabiliti es=79,datapath_ id=267145071754 569,n_buffers= 256,n_tables= 254) from (pid=1194) switch_ features_ handler /usr/local/ lib/python2. 7/dist- packages/ ryu/controller/ ofp_handler. py:196 controller [-] Error in the datapath 0000f2f78f1afd49 from ('10.100.100.8', 60524) lib/python2. 7/dist- packages/ ryu/lib/ hub.py" , line 52, in _launch lib/python2. 7/dist- packages/ ryu/controller/ controller. py", line 402, in datapath_ connection_ factory serve() lib/python2. 7/dist- packages/ ryu/controller/ controller. py", line 320, in serve _recv_loop( ) lib/python2. 7/dist- packages/ ryu/controller/ controller. py", line 115, in deactivate lib/python2. 7/dist- packages/ ryu/controller/ controller. py", line 225, in _recv_loop dragonflow/ dragonflow/ controller/ ryu_base_ app.py" , line 151, in switch_ features_ handler dispatcher. dispatch( 'switch_ features_ handler' , ev) dragonflow/ dragonflow/ controller/ dispatcher. py", line 43, in dispatch dragonflow/ dragonflow/ controller/ dhcp_app. py", line 75, in switch_ features_ handler _install_ flows_on_ switch_ up() dragonflow/ dragonflow/ controller/ dhcp_app. py", line 427, in _install_ flows_on_ switch_ up add_local_ port(port) dragonflow/ dragonflow/ controller/ dhcp_app. py", line 343, in add_local_port dhcp_enabled_ on_network( lport, network_id): dragonflow/ dragonflow/ controller/ dhcp_app. py", line 288, in _is_dhcp_ enabled_ on_network subnet_ by_port( lport) dragonflow/ dragonflow/ controller/ dhcp_app. py", line 271, in _get_subnet_by_port get_subnets( )
2016-04-20 14:07:34.278 DEBUG RyuDFAdapter [-] switch features ev version=
2016-04-20 14:07:34.285 ERROR ryu.controller.
2016-04-20 14:07:34.285 ERROR ryu.lib.hub [-] hub: uncaught exception: Traceback (most recent call last):
File "/usr/local/
func(*args, **kwargs)
File "/usr/local/
datapath.
File "/usr/local/
self.
File "/usr/local/
method(self)
File "/usr/local/
handler(ev)
File "/opt/stack/
self.
File "/opt/stack/
handler(*args, **kwargs)
File "/opt/stack/
self.
File "/opt/stack/
self.
File "/opt/stack/
if not self._is_
File "/opt/stack/
subnet = self._get_
File "/opt/stack/
subnets = l_switch.
AttributeError: 'NoneType' object has no attribute 'get_subnets'