]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Test HA router failover
authorJohn Schwarz <jschwarz@redhat.com>
Mon, 29 Sep 2014 13:53:00 +0000 (16:53 +0300)
committerJohn Schwarz <jschwarz@redhat.com>
Mon, 24 Nov 2014 10:05:09 +0000 (12:05 +0200)
commita8edfc6e6d159aa5ac937c824aa0786a60eda53f
tree460d766f315c12c180cd124d314eb9c1ab0b618f
parent2f8ec46314ea414c0594d3f2102a1bcc3524f3de
Test HA router failover

HA failover testing requires the ability for two L3 agents to
co-exist on the same machine. The following changes were made
to support this:

* Add l3 agent ability to simulate nested namespaces by suffixing
  each router namespace with '@host'. For example, if a router
  with id '1' is created, its namespace will be:
  'qrouter-1@host'
* Added test.common submodule which will hold common code which is
  shared between the different kind of tests (unit and funtional).
* Added tests.common.agents submodule which holds test-only agents, and
  added a test L3NAT agent to be used in the HA functional testings.

Co-Authored-By: Assaf Muller <amuller@redhat.com>
Closes-bug: #1374946
Change-Id: I2185fe276d9d32b34c407396e7ed5d6e2801340c
neutron/agent/l3_agent.py
neutron/tests/common/__init__.py [new file with mode: 0644]
neutron/tests/common/agents/__init__.py [new file with mode: 0644]
neutron/tests/common/agents/l3_agent.py [new file with mode: 0644]
neutron/tests/functional/agent/linux/base.py
neutron/tests/functional/agent/linux/test_ip_lib.py
neutron/tests/functional/agent/test_l3_agent.py
neutron/tests/unit/test_l3_agent.py