From time to time I see this error:
2015-07-07 16:32:03.667 | 2015-07-07 16:32:03.600 | Traceback (most recent call last):
2015-07-07 16:32:03.667 | 2015-07-07 16:32:03.601 | File "neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py", line 1550, in rpc_loop
2015-07-07 16:32:03.667 | 2015-07-07 16:32:03.603 | port_info = self.scan_ports(reg_ports, updated_ports_copy)
2015-07-07 16:32:03.667 | 2015-07-07 16:32:03.604 | File "neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py", line 1075, in scan_ports
2015-07-07 16:32:03.668 | 2015-07-07 16:32:03.605 | cur_ports = self.int_br.get_vif_port_set()
2015-07-07 16:32:03.668 | 2015-07-07 16:32:03.607 | File "neutron/agent/common/ovs_lib.py", line 372, in get_vif_port_set
2015-07-07 16:32:03.668 | 2015-07-07 16:32:03.608 | if result['ofport'] == UNASSIGNED_OFPORT:
2015-07-07 16:32:03.668 | 2015-07-07 16:32:03.609 | KeyError: 'ofport'
2015-07-07 16:32:03.668 | 2015-07-07 16:32:03.610 | 2015-07-07 16:30:31,332 INFO [neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent] Agent out of sync with plugin!
http://logstash.openstack.org/#eyJzZWFyY2giOiJtZXNzYWdlOlwiS2V5RXJyb3I6ICdvZnBvcnQnXCIiLCJmaWVsZHMiOltdLCJvZmZzZXQiOjAsInRpbWVmcmFtZSI6IjE3MjgwMCIsImdyYXBobW9kZSI6ImNvdW50IiwidGltZSI6eyJ1c2VyX2ludGVydmFsIjowfSwic3RhbXAiOjE0MzY0NDQwNTczMDksIm1vZGUiOiIiLCJhbmFseXplX2ZpZWxkIjoiIn0=
It's easy to reproduce if the number of ports create by neutron. tests.functiona l.agent. test_l2_ ovs_agent. TestOVSAgent. test_port_ creation_ and_deletion is increased (e.g. up to 10)