In multinode environment - in a CN host.
2016-04-20 13:52:15.867 10907 ERROR dragonflow.controller.df_local_controller
2016-04-20 13:52:16.879 10907 INFO dragonflow.controller.df_local_controller [-] Updating remote logical port = {u'parent_name': None, u'macs': [u'fa:16:3e:dd:27:b5'], u'name': u'b1cb1727-67c9-4745-ab32-e015b9f26ee3', u'chassis': u'ubuntu', u'lswitch': u'df7619e2-678d-4a75-9b28-7a7338377798', u'enabled': True, u'topic': u'b0a58f61de184ae388c3c00d4068082b', u'ips': [u'10.0.0.3', u'fd60:574a:d089:0:f816:3eff:fedd:27b5'], u'device_owner': u'compute:one', u'port_security': [u'fa:16:3e:dd:27:b5'], u'tunnel_key': 1, u'external_ids': {u'neutron:port_name': u''}, u'tag': None, u'security_groups': [u'e6f4233a-7d23-4635-8ea3-db370dd8e5d9']}{'is_local': False, 'ofport': 2, 'local_network_id': 1}, original port = {u'parent_name': None, u'macs': [u'fa:16:3e:dd:27:b5'], u'name': u'b1cb1727-67c9-4745-ab32-e015b9f26ee3', u'chassis': u'ubuntu', u'lswitch': u'df7619e2-678d-4a75-9b28-7a7338377798', u'enabled': True, u'topic': u'b0a58f61de184ae388c3c00d4068082b', u'ips': [u'10.0.0.3', u'fd60:574a:d089:0:f816:3eff:fedd:27b5'], u'device_owner': u'compute:one', u'port_security': [u'fa:16:3e:dd:27:b5'], u'tunnel_key': 1, u'external_ids': {u'neutron:port_name': u''}, u'tag': None, u'security_groups': [u'e6f4233a-7d23-4635-8ea3-db370dd8e5d9']}{'is_local': False, 'ofport': 2, 'local_network_id': 1}
2016-04-20 13:52:16.884 10907 INFO dragonflow.controller.df_local_controller [-] Adding new local logical port = {u'parent_name': None, u'macs': [u'fa:16:3e:ec:59:0c'], u'name': u'a6386045-56e3-4369-b444-db8c3005ab2b', u'chassis': u'dfstack', u'lswitch': u'df7619e2-678d-4a75-9b28-7a7338377798', u'enabled': True, u'topic': u'b0a58f61de184ae388c3c00d4068082b', u'ips': [u'10.0.0.4', u'fd60:574a:d089:0:f816:3eff:feec:590c'], u'device_owner': u'compute:two', u'port_security': [u'fa:16:3e:ec:59:0c'], u'tunnel_key': 2, u'external_ids': {u'neutron:port_name': u''}, u'tag': None, u'security_groups': [u'e6f4233a-7d23-4635-8ea3-db370dd8e5d9']}{'is_local': True, 'ofport': 3, 'local_network_id': 1}
2016-04-20 13:52:16.888 10907 WARNING dragonflow.controller.df_local_controller [-] run_db_poll - suppressing exception
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller [-] 'NoneType' object has no attribute 'get_subnets'
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller Traceback (most recent call last):
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller File "/opt/stack/dragonflow/dragonflow/controller/df_local_controller.py", line 129, in run_db_poll
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller self.port_mappings()
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller File "/opt/stack/dragonflow/dragonflow/controller/df_local_controller.py", line 330, in port_mappings
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller self.logical_port_updated(lport)
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller File "/opt/stack/dragonflow/dragonflow/controller/df_local_controller.py", line 212, in logical_port_updated
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller self.open_flow_app.notify_add_local_port(lport)
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller File "/opt/stack/dragonflow/dragonflow/controller/ryu_base_app.py", line 86, in notify_add_local_port
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller self.dispatcher.dispatch('add_local_port', lport=lport)
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller File "/opt/stack/dragonflow/dragonflow/controller/dispatcher.py", line 43, in dispatch
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller handler(*args, **kwargs)
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller File "/opt/stack/dragonflow/dragonflow/controller/dhcp_app.py", line 343, in add_local_port
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller if not self._is_dhcp_enabled_on_network(lport, network_id):
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller File "/opt/stack/dragonflow/dragonflow/controller/dhcp_app.py", line 288, in _is_dhcp_enabled_on_network
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller subnet = self._get_subnet_by_port(lport)
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller File "/opt/stack/dragonflow/dragonflow/controller/dhcp_app.py", line 271, in _get_subnet_by_port
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller subnets = l_switch.get_subnets()
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller AttributeError: 'NoneType' object has no attribute 'get_subnets'
2016-04-20 13:52:16.889 10907 ERROR dragonflow.controller.df_local_controller
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'