neutron/neutron/tests/fullstack
Assaf Muller b661698224 Fix l2pop regression
Patch https://review.openstack.org/#/c/236970/ introduced an issue
where get_agent_by_host can return a random host (Including L3,
DHCP or metadata agents), not only L2 agents. The caller then
tries to get tunneling_ip, which might not exist on the returned
agent, causing l2pop code to bail out with a WARNING:
'Unable to retrieve the agent ip...'.

The issue was found by manual introspection of the code, and
verified by modifying the l2pop fullstack test to register L3
agents. Both a unit test was added, as well as modifying the
fullstack connectivity test to register L3 agents if l2pop
is enabled.

The code will now check for agents with a tunneling_ip key
in their configurations dict, which is required for l2pop
to work correctly, essentially a form of duck typing.

(Cherry-picked from commit 204eb2af17)

Change-Id: Ib3072966140b7f6ca954d7847ad9835aa1191998
Closes-Bug: #1508205
2015-10-21 21:28:05 -07:00
..
resources Add QoS fullstack test 2015-09-15 15:42:26 +00:00
__init__.py Add full-stack tests framework 2015-03-26 20:21:40 +02:00
base.py Merge "fullstack: use migration scripts to create db schema" 2015-08-21 03:48:33 +00:00
README Add devref that explains fullstack testing and its direction 2015-06-02 16:23:08 -04:00
test_connectivity.py Fix l2pop regression 2015-10-21 21:28:05 -07:00
test_l3_agent.py Add l2pop support to full stack tests 2015-09-10 14:31:35 +00:00
test_qos.py ml2: don't consider drivers with no bind_port for qos supported rule types 2015-09-22 14:38:59 +02:00

Please see neutron/doc/source/devref/fullstack_testing.rst.