Public bug reported:

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

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1454921

Title:
  OVS DVR: KeyError: 'gateway_mac'

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1454921/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to