2016-05-10 06:31:15.969 22733 INFO dragonflow.db.api_nb [-] Pushing Update to Queue: Action:delete, Table:lswitch, Key:0c615b33-d58f-4f19-8c29-e40289a3578a Value:None Topic:D
2016-05-10 06:31:15.969 22733 DEBUG dragonflow.db.api_nb [-] Event update: Action:delete, Table:lswitch, Key:0c615b33-d58f-4f19-8c29-e40289a3578a Value:None Topic:D _read_db_changes_from_queue /opt/stack/new/dragonflow/dragonflow/db/api_nb.py:163
2016-05-10 06:31:15.969 22733 INFO dragonflow.controller.df_local_controller [-] Removing Logical Switch = {u'topic': u'2e78560195214d5b91579fb928e52f74', u'router_external': False, u'external_ids': {u'neutron:network_name': u'mynetwork1'}, u'name': u'0c615b33-d58f-4f19-8c29-e40289a3578a', u'subnets': []}
2016-05-10 06:31:15.984 22733 INFO dragonflow.db.api_nb [-] Pushing Update to Queue: Action:delete, Table:lswitch, Key:0c615b33-d58f-4f19-8c29-e40289a3578a Value:None Topic:D
2016-05-10 06:31:15.985 22733 DEBUG dragonflow.db.api_nb [-] Event update: Action:delete, Table:lswitch, Key:0c615b33-d58f-4f19-8c29-e40289a3578a Value:None Topic:D _read_db_changes_from_queue /opt/stack/new/dragonflow/dragonflow/db/api_nb.py:163
2016-05-10 06:31:15.985 22733 INFO dragonflow.controller.df_local_controller [-] Removing Logical Switch = None
2016-05-10 06:31:15.985 22733 ERROR dragonflow.db.api_nb [-] 'NoneType' object has no attribute 'get_id'
2016-05-10 06:31:15.985 22733 ERROR dragonflow.db.api_nb Traceback (most recent call last):
2016-05-10 06:31:15.985 22733 ERROR dragonflow.db.api_nb File "/opt/stack/new/dragonflow/dragonflow/db/api_nb.py", line 175, in _read_db_changes_from_queue
2016-05-10 06:31:15.985 22733 ERROR dragonflow.db.api_nb value)
2016-05-10 06:31:15.985 22733 ERROR dragonflow.db.api_nb File "/opt/stack/new/dragonflow/dragonflow/db/api_nb.py", line 227, in apply_db_change
2016-05-10 06:31:15.985 22733 ERROR dragonflow.db.api_nb self.controller.logical_switch_deleted(lswitch_id)
2016-05-10 06:31:15.985 22733 ERROR dragonflow.db.api_nb File "/opt/stack/new/dragonflow/dragonflow/controller/df_local_controller.py", line 187, in logical_switch_deleted
2016-05-10 06:31:15.985 22733 ERROR dragonflow.db.api_nb self.open_flow_app.notify_remove_logical_switch(lswitch)
2016-05-10 06:31:15.985 22733 ERROR dragonflow.db.api_nb File "/opt/stack/new/dragonflow/dragonflow/controller/ryu_base_app.py", line 84, in notify_remove_logical_switch
2016-05-10 06:31:15.985 22733 ERROR dragonflow.db.api_nb self.dispatcher.dispatch('remove_logical_switch', lswitch=lswitch)
2016-05-10 06:31:15.985 22733 ERROR dragonflow.db.api_nb File "/opt/stack/new/dragonflow/dragonflow/controller/dispatcher.py", line 43, in dispatch
2016-05-10 06:31:15.985 22733 ERROR dragonflow.db.api_nb handler(*args, **kwargs)
2016-05-10 06:31:15.985 22733 ERROR dragonflow.db.api_nb File "/opt/stack/new/dragonflow/dragonflow/controller/l2_app.py", line 327, in remove_logical_switch
2016-05-10 06:31:15.985 22733 ERROR dragonflow.db.api_nb lswitch.get_id(),
2016-05-10 06:31:15.985 22733 ERROR dragonflow.db.api_nb AttributeError: 'NoneType' object has no attribute 'get_id'
2016-05-10 06:31:15.985 22733 ERROR dragonflow.db.api_nb
http://logs.openstack.org/02/306702/3/check/gate-dragonflow-dsvm-fullstack-nv/aaed8c8/logs/screen-df-controller.txt.gz
It has something related with db consistency. The local cache of lswitch is None when we want to read it.