The following exception is seen in the log: (Taken from tempest log for patch https://review.openstack.org/#/c/503965/ (DHCP port per lswitch))
For instance:
Oct 29 15:25:26.331040 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.controller.topology [-] Exception occurred when handling ovs port offline event: AttributeError: 'OvsLportMapping' object has no attribute 'id'
Oct 29 15:25:26.331157 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.controller.topology Traceback (most recent call last):
Oct 29 15:25:26.331269 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.controller.topology File "/opt/stack/new/dragonflow/dragonflow/controller/topology.py", line 120, in ovs_port_deleted
Oct 29 15:25:26.331379 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.controller.topology handler(ovs_port)
Oct 29 15:25:26.331489 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.controller.topology File "/opt/stack/new/dragonflow/dragonflow/controller/topology.py", line 236, in _vm_port_deleted
Oct 29 15:25:26.331592 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.controller.topology self._del_from_topic_subscribed(topic, lport.id)
Oct 29 15:25:26.331739 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.controller.topology AttributeError: 'OvsLportMapping' object has no attribute 'id'
Oct 29 15:25:26.331859 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.controller.topology
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Oct 29 15:31:16.678222 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework [-] Error while calling %(func)r(*%(_args)r, **%(kw)r): AttributeError: 'NoneType' object has no attribute 'version'
Oct 29 15:31:16.678420 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework Traceback (most recent call last):
Oct 29 15:31:16.678578 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework File "/opt/stack/new/dragonflow/dragonflow/db/model_framework.py", line 108, in _emit
Oct 29 15:31:16.678762 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework cb(self, *args, **kwargs)
Oct 29 15:31:16.678926 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework File "/opt/stack/new/dragonflow/dragonflow/controller/apps/l3_base.py", line 628, in _add_port_event_handler
Oct 29 15:31:16.679094 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework self._add_port(lport)
Oct 29 15:31:16.679239 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework File "/opt/stack/new/dragonflow/dragonflow/controller/apps/l3_proactive.py", line 92, in _add_port
Oct 29 15:31:16.679384 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework self._add_forward_to_port_flow(dst_ip, dst_mac, network_key, port_key)
Oct 29 15:31:16.679528 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework File "/opt/stack/new/dragonflow/dragonflow/controller/apps/l3_proactive.py", line 122, in _add_forward_to_port_flow
Oct 29 15:31:16.679689 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework if dst_ip.version == n_const.IP_VERSION_4:
Oct 29 15:31:16.679846 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework AttributeError: 'NoneType' object has no attribute 'version'
Oct 29 15:31:16.679999 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Oct 29 15:31:21.121518 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework [-] Error while calling %(func)r(*%(_args)r, **%(kw)r): AttributeError: 'NoneType' object has no attribute 'version'
Oct 29 15:31:21.121684 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework Traceback (most recent call last):
Oct 29 15:31:21.121832 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework File "/opt/stack/new/dragonflow/dragonflow/db/model_framework.py", line 108, in _emit
Oct 29 15:31:21.121977 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework cb(self, *args, **kwargs)
Oct 29 15:31:21.122121 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework File "/opt/stack/new/dragonflow/dragonflow/controller/apps/l3_base.py", line 771, in _remove_port_event_handler
Oct 29 15:31:21.122272 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework self._remove_port(lport)
Oct 29 15:31:21.122414 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework File "/opt/stack/new/dragonflow/dragonflow/controller/apps/l3_proactive.py", line 151, in _remove_port
Oct 29 15:31:21.122564 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework self._remove_forward_to_port_flow(dst_ip, network_key)
Oct 29 15:31:21.122739 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework File "/opt/stack/new/dragonflow/dragonflow/controller/apps/l3_proactive.py", line 173, in _remove_forward_to_port_flow
Oct 29 15:31:21.122893 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework if dst_ip.version == n_const.IP_VERSION_4:
Oct 29 15:31:21.123038 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework AttributeError: 'NoneType' object has no attribute 'version'
Oct 29 15:31:21.123193 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Oct 29 15:31:40.004350 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework [-] Error while calling %(func)r(*%(_args)r, **%(kw)r): KeyError: u'1c4a265c-2884-4fab-b8f3-745ac717adef'
Oct 29 15:31:40.004490 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework Traceback (most recent call last):
Oct 29 15:31:40.004637 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework File "/opt/stack/new/dragonflow/dragonflow/db/model_framework.py", line 108, in _emit
Oct 29 15:31:40.004765 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework cb(self, *args, **kwargs)
Oct 29 15:31:40.004911 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework File "/opt/stack/new/dragonflow/dragonflow/controller/apps/dnat.py", line 540, in _local_port_unbound
Oct 29 15:31:40.005052 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework self._uninstall_local_floatingip(floatingip, emit_unbind=False)
Oct 29 15:31:40.005181 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework File "/opt/stack/new/dragonflow/dragonflow/controller/apps/dnat.py", line 499, in _uninstall_local_floatingip
Oct 29 15:31:40.005312 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework port_locator.clear_port_binding(floatingip.floating_lport)
Oct 29 15:31:40.005444 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework File "/opt/stack/new/dragonflow/dragonflow/controller/port_locator.py", line 40, in clear_port_binding
Oct 29 15:31:40.005567 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework _locations.pop(lport.id)
Oct 29 15:31:40.005699 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework KeyError: u'1c4a265c-2884-4fab-b8f3-745ac717adef'
Oct 29 15:31:40.005833 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Oct 29 15:31:50.437750 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework [-] Error while calling %(func)r(*%(_args)r, **%(kw)r): ReferencedObjectNotFound: Referenced object not found. proxy=LogicalPortProxy(id=a8f5027b-77fe-4d69-9948-91eea8d14e99)
Oct 29 15:31:50.437887 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework Traceback (most recent call last):
Oct 29 15:31:50.438005 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework File "/opt/stack/new/dragonflow/dragonflow/db/model_framework.py", line 108, in _emit
Oct 29 15:31:50.438122 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework cb(self, *args, **kwargs)
Oct 29 15:31:50.438230 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework File "/opt/stack/new/dragonflow/dragonflow/controller/apps/dnat.py", line 453, in _update_floatingip
Oct 29 15:31:50.438377 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework self._uninstall_floatingip(orig_floatingip)
Oct 29 15:31:50.438484 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework File "/opt/stack/new/dragonflow/dragonflow/controller/apps/dnat.py", line 477, in _uninstall_floatingip
Oct 29 15:31:50.438601 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework if floatingip.lport.is_local:
Oct 29 15:31:50.438746 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework File "/opt/stack/new/dragonflow/dragonflow/db/model_proxy.py", line 87, in __getattr__
Oct 29 15:31:50.438865 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework raise exceptions.ReferencedObjectNotFound(proxy=self)
Oct 29 15:31:50.438987 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework ReferencedObjectNotFound: Referenced object not found. proxy=LogicalPortProxy(id=a8f5027b-77fe-4d69-9948-91eea8d14e99)
Oct 29 15:31:50.439120 ubuntu-xenial-inap-mtl01-0000565193 df-local-controller[17324]: ERROR dragonflow.db.model_framework
Fix proposed to branch: master /review. openstack. org/517814
Review: https:/