When creating new VM I got the next exception
(I am using the latest code of everything):
2016-05-01 14:21:09.490 INFO dragonflow.db.api_nb [-] Pushing Update to Queue: Action:create, Table:ovsinterface, Key:38acccdf-1861-4b21-bdaa-b592a6c7ca37 Value:uuid:38acccdf-1861-4b21-bdaa-b592a6c7ca37, ofport:-1, name:qr-f504c807-6f, admin_state:, type:vm, iface_id:f504c807-6f97-4db0-891f-d23a3b3ba875, peer:, attached_mac:fa:16:3e:bc:5c:ef, remote_ip:, tunnel_type: Topic:None
2016-05-01 14:21:09.491 DEBUG dragonflow.db.api_nb [-] Event update: Action:create, Table:ovsinterface, Key:38acccdf-1861-4b21-bdaa-b592a6c7ca37 Value:uuid:38acccdf-1861-4b21-bdaa-b592a6c7ca37, ofport:-1, name:qr-f504c807-6f, admin_state:, type:vm, iface_id:f504c807-6f97-4db0-891f-d23a3b3ba875, peer:, attached_mac:fa:16:3e:bc:5c:ef, remote_ip:, tunnel_type: Topic:None from (pid=19819) _read_db_changes_from_queue /opt/stack/dragonflow/dragonflow/db/api_nb.py:160
2016-05-01 14:21:09.491 INFO dragonflow.controller.topology [-] Ovs port updated: uuid:38acccdf-1861-4b21-bdaa-b592a6c7ca37, ofport:-1, name:qr-f504c807-6f, admin_state:, type:vm, iface_id:f504c807-6f97-4db0-891f-d23a3b3ba875, peer:, attached_mac:fa:16:3e:bc:5c:ef, remote_ip:, tunnel_type:
2016-05-01 14:21:09.493 INFO dragonflow.db.api_nb [-] Pushing Update to Queue: Action:set, Table:ovsinterface, Key:38acccdf-1861-4b21-bdaa-b592a6c7ca37 Value:uuid:38acccdf-1861-4b21-bdaa-b592a6c7ca37, ofport:3, name:qr-f504c807-6f, admin_state:down, type:vm, iface_id:f504c807-6f97-4db0-891f-d23a3b3ba875, peer:, attached_mac:fa:16:3e:bc:5c:ef, remote_ip:, tunnel_type: Topic:None
2016-05-01 14:21:09.493 INFO dragonflow.controller.ryu_base_app [-] port added 3
2016-05-01 14:21:09.495 DEBUG dragonflow.db.api_nb [-] Event update: Action:set, Table:ovsinterface, Key:38acccdf-1861-4b21-bdaa-b592a6c7ca37 Value:uuid:38acccdf-1861-4b21-bdaa-b592a6c7ca37, ofport:3, name:qr-f504c807-6f, admin_state:down, type:vm, iface_id:f504c807-6f97-4db0-891f-d23a3b3ba875, peer:, attached_mac:fa:16:3e:bc:5c:ef, remote_ip:, tunnel_type: Topic:None from (pid=19819) _read_db_changes_from_queue /opt/stack/dragonflow/dragonflow/db/api_nb.py:160
2016-05-01 14:21:09.495 INFO dragonflow.controller.topology [-] Ovs port updated: uuid:38acccdf-1861-4b21-bdaa-b592a6c7ca37, ofport:3, name:qr-f504c807-6f, admin_state:down, type:vm, iface_id:f504c807-6f97-4db0-891f-d23a3b3ba875, peer:, attached_mac:fa:16:3e:bc:5c:ef, remote_ip:, tunnel_type:
2016-05-01 14:21:09.495 INFO dragonflow.controller.topology [-] A local logical port({u'parent_name': None, u'macs': [u'fa:16:3e:bc:5c:ef'], u'name': u'f504c807-6f97-4db0-891f-d23a3b3ba875', u'chassis': u'ubuntu', u'lswitch': u'392437a3-1d52-4602-b337-07a8584b62d8', u'enabled': True, u'topic': u'114e55f843964b8fa08d1230130c6986', u'ips': [u'10.0.0.1'], u'device_owner': u'network:router_interface', u'port_security': [u'fa:16:3e:bc:5c:ef'], u'tunnel_key': 6, u'external_ids': {u'neutron:port_name': u''}, u'tag': None, u'security_groups': None}{'is_local': True, 'ofport': 3, 'local_network_id': 1}) is online
2016-05-01 14:21:09.496 INFO dragonflow.controller.df_local_controller [-] Updating local logical port = {u'parent_name': None, u'macs': [u'fa:16:3e:bc:5c:ef'], u'name': u'f504c807-6f97-4db0-891f-d23a3b3ba875', u'chassis': u'ubuntu', u'lswitch': u'392437a3-1d52-4602-b337-07a8584b62d8', u'enabled': True, u'topic': u'114e55f843964b8fa08d1230130c6986', u'ips': [u'10.0.0.1'], u'device_owner': u'network:router_interface', u'port_security': [u'fa:16:3e:bc:5c:ef'], u'tunnel_key': 6, u'external_ids': {u'neutron:port_name': u''}, u'tag': None, u'security_groups': None}{'is_local': True, 'ofport': 3, 'local_network_id': 1}, original port = {u'parent_name': None, u'macs': [u'fa:16:3e:bc:5c:ef'], u'name': u'f504c807-6f97-4db0-891f-d23a3b3ba875', u'chassis': u'ubuntu', u'lswitch': u'392437a3-1d52-4602-b337-07a8584b62d8', u'enabled': True, u'topic': u'114e55f843964b8fa08d1230130c6986', u'ips': [u'10.0.0.1'], u'device_owner': u'network:router_interface', u'port_security': [u'fa:16:3e:bc:5c:ef'], u'tunnel_key': 6, u'external_ids': {u'neutron:port_name': u''}, u'tag': None, u'security_groups': None}{'is_local': True, 'ofport': 3, 'local_network_id': 1}
2016-05-01 14:21:09.497 ERROR dragonflow.controller.topology [-] Failed to process logical port online event: {u'parent_name': None, u'macs': [u'fa:16:3e:bc:5c:ef'], u'name': u'f504c807-6f97-4db0-891f-d23a3b3ba875', u'chassis': u'ubuntu', u'lswitch': u'392437a3-1d52-4602-b337-07a8584b62d8', u'enabled': True, u'topic': u'114e55f843964b8fa08d1230130c6986', u'ips': [u'10.0.0.1'], u'device_owner': u'network:router_interface', u'port_security': [u'fa:16:3e:bc:5c:ef'], u'tunnel_key': 6, u'external_ids': {u'neutron:port_name': u''}, u'tag': None, u'security_groups': None}{'is_local': True, 'ofport': 3, 'local_network_id': 1}
2016-05-01 14:21:09.497 TRACE dragonflow.controller.topology Traceback (most recent call last):
2016-05-01 14:21:09.497 TRACE dragonflow.controller.topology File "/opt/stack/dragonflow/dragonflow/controller/topology.py", line 154, in _vm_port_updated
2016-05-01 14:21:09.497 TRACE dragonflow.controller.topology self.controller.logical_port_updated(lport)
2016-05-01 14:21:09.497 TRACE dragonflow.controller.topology File "/opt/stack/dragonflow/dragonflow/controller/df_local_controller.py", line 252, in logical_port_updated
2016-05-01 14:21:09.497 TRACE dragonflow.controller.topology self._logical_port_process(lport, original_lport)
2016-05-01 14:21:09.497 TRACE dragonflow.controller.topology File "/opt/stack/dragonflow/dragonflow/controller/df_local_controller.py", line 218, in _logical_port_process
2016-05-01 14:21:09.497 TRACE dragonflow.controller.topology original_lport)
2016-05-01 14:21:09.497 TRACE dragonflow.controller.topology File "/opt/stack/dragonflow/dragonflow/controller/ryu_base_app.py", line 90, in notify_update_local_port
2016-05-01 14:21:09.497 TRACE dragonflow.controller.topology original_lport=original_lport)
2016-05-01 14:21:09.497 TRACE dragonflow.controller.topology File "/opt/stack/dragonflow/dragonflow/controller/dispatcher.py", line 43, in dispatch
2016-05-01 14:21:09.497 TRACE dragonflow.controller.topology handler(*args, **kwargs)
2016-05-01 14:21:09.497 TRACE dragonflow.controller.topology File "/opt/stack/dragonflow/dragonflow/controller/sg_app.py", line 1014, in update_local_port
2016-05-01 14:21:09.497 TRACE dragonflow.controller.topology original_secgroups)
2016-05-01 14:21:09.497 TRACE dragonflow.controller.topology File "/opt/stack/dragonflow/dragonflow/controller/sg_app.py", line 959, in _get_added_and_removed_secgroups
2016-05-01 14:21:09.497 TRACE dragonflow.controller.topology removed_secgroups = list(original_secgroups)
2016-05-01 14:21:09.497 TRACE dragonflow.controller.topology TypeError: 'NoneType' object is not iterable
2016-05-01 14:21:09.497 TRACE dragonflow.controller.topology
This bug has been fixed in the patch latest update: https:/ /review. openstack. org/#/c/ 307628. I tested in my environment, and found this bug disappeared. please check, thanks