Skip to content

Commit

Permalink
Bug #1004584
Browse files Browse the repository at this point in the history
When running ovs_quantum_agent in tunneling mode and a new tunnel_ip is added while
an agent is running the following exception below occurs. This causes the agent to
no longer function since it becomes caught in a loop.

ERROR:__main__:Main-loop Exception:
Traceback (most recent call last):
  File "ovs_quantum_agent.py", line 583, in daemon_loop
    self.manage_tunnels(tunnel_ips, old_tunnel_ips, db)
  File "ovs_quantum_agent.py", line 550, in manage_tunnels
    self.add_tun_br_flows_for_local_vlan(lv_obj)
AttributeError: 'OVSQuantumTunnelAgent' object has no attribute 'add_tun_br_flows_for_local_vlan'

Change-Id: Id03dc4a12a0114c8597cb90f4eabcdd3dc9b3f5c
  • Loading branch information
aaronorosen committed May 25, 2012
1 parent 6869821 commit 8713c49
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions quantum/plugins/openvswitch/agent/ovs_quantum_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,12 +543,6 @@ def manage_tunnels(self, tunnel_ips, old_tunnel_ips, db):
self.tun_br.add_tunnel_port(tun_name, ip)
self.tunnel_count += 1

# adding new ports can void flows, so reset flows
self.tun_br.remove_all_flows()
self.tun_br.add_flow(priority=1, actions="drop")
for lv_ojb in self.local_vlan_map.values():
self.add_tun_br_flows_for_local_vlan(lv_obj)

def rollback_until_success(self, db):
while True:
time.sleep(self.reconnect_interval)
Expand Down

0 comments on commit 8713c49

Please sign in to comment.