get_subnet_for_dvr RPC returns {} on error.
OVS agent, namely _bind_centralized_snat_port_on_dvr_subnet, doesn't handle the case gracefully.
eyJzZWFyY2giOiJtZXNzYWdlOiBcIktleUVycm9yOiAnZ2F0ZXdheV9tYWMnXCIiLCJmaWVsZHMiOltdLCJvZmZzZXQiOjAsInRpbWVmcmFtZSI6Ijg2NDAwIiwiZ3JhcGhtb2RlIjoiY291bnQiLCJ0aW1lIjp7InVzZXJfaW50ZXJ2YWwiOjB9LCJzdGFtcCI6MTQzMTU3MzExODcxNH0
[req-4c481831-bcb8-47db-9487-e29eb396e871 None None] Error while processing VIF ports
2015-05-13 15:46:44.026 5536 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent Traceback (most recent call last):
2015-05-13 15:46:44.026 5536 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/opt/stack/new/neutron/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 1641, in rpc_loop
2015-05-13 15:46:44.026 5536 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent ovs_restarted)
2015-05-13 15:46:44.026 5536 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/opt/stack/new/neutron/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 1411, in process_network_ports
2015-05-13 15:46:44.026 5536 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent devices_added_updated, ovs_restarted))
2015-05-13 15:46:44.026 5536 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/opt/stack/new/neutron/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 1318, in treat_devices_added_or_updated
2015-05-13 15:46:44.026 5536 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/opt/stack/new/neutron/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 1220, in treat_vif_port
2015-05-13 15:46:44.026 5536 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent fixed_ips, device_owner, ovs_restarted)
2015-05-13 15:46:44.026 5536 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/opt/stack/new/neutron/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 723, in port_bound
2015-05-13 15:46:44.026 5536 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent device_owner)
2015-05-13 15:46:44.026 5536 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/opt/stack/new/neutron/neutron/plugins/openvswitch/agent/ovs_dvr_neutron_agent.py", line 671, in bind_port_to_dvr
2015-05-13 15:46:44.026 5536 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/opt/stack/new/neutron/neutron/plugins/openvswitch/agent/ovs_dvr_neutron_agent.py", line 641, in _bind_centralized_snat_port_on_dvr_subnet
2015-05-13 15:46:44.026 5536 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent (subnet_info['gateway_mac'],
2015-05-13 15:46:44.026 5536 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent KeyError: 'gateway_mac'
2015-05-13 15:46:44.026 5536 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent
Fix proposed to branch: master /review. openstack. org/272025
Review: https:/