neutron/neutron/tests/functional
Kevin Benton a86274e8eb Check tap bridge timestamps to detect local changes
During a quick instance rebuild on Nova, it may remove a tap
interface and then plug it in within the agent polling window.
In this scenario the agent will not realize a device has changed
and will therefore not ask the server for info an subsequently
update its status. This will prevent the notification from being
sent back to Nova that the vif plugging has finished so the
VM will never resume state.

This adds a new timestamp collection method to the common agent
manager interface for devices that is used by the common agent
loop to determine if a device has locally changed.

The linux bridge implementation of it checks the timestamps on the
tap interface's 'bridge' directory, which will change whenever
the tap is added to bridge.

Conflicts:
	neutron/agent/linux/bridge_lib.py
	neutron/plugins/ml2/drivers/agent/_agent_manager_base.py
	neutron/plugins/ml2/drivers/agent/_common_agent.py
	neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py
	neutron/plugins/ml2/drivers/macvtap/agent/macvtap_neutron_agent.py
	neutron/tests/functional/agent/linux/test_bridge_lib.py
	neutron/tests/unit/plugins/ml2/drivers/agent/test__common_agent.py

(cherry picked from commit 7afbd3a6b8)
Change-Id: If172470e907848556b6a8aff13520f94245919bb
2016-03-24 10:56:04 +01:00
..
agent Check tap bridge timestamps to detect local changes 2016-03-24 10:56:04 +01:00
api Refactor RESOURCE_ATTRIBUTE_MAP cleanup 2015-04-22 12:02:34 -02:30
cmd Remove unnecessary executable permission 2015-08-01 05:16:32 +00:00
db test_migrations: Avoid returning a filter object for python3 2015-12-18 16:21:17 +00:00
pecan_wsgi Use pecan controllers for routing 2015-09-18 06:00:14 -07:00
plugins Add the rebinding chance in _bind_port_if_needed 2016-02-17 15:52:48 +00:00
sanity Check missed ip6tables utility 2016-01-20 16:13:20 +00:00
scheduler Merge "Fix dhcp autoschedule test assertion logic" 2015-08-06 01:22:52 +00:00
services Remove check on dhcp enabled subnets while scheduling dvr 2016-01-15 13:49:03 +03:00
__init__.py Prepare for full stack CI job 2015-06-22 11:47:54 -04:00
base.py Retain logs for functional test cases 2015-09-03 10:50:38 -04:00
requirements.txt Merge "Handle SIGHUP: neutron-server (multiprocess) and metadata agent" 2015-06-10 20:25:16 +00:00
test_server.py Mock oslo policy HTTPCheck instead of urllib 2015-10-13 17:26:23 +02:00
test_service.py Revert "Revert "Set default of api_workers to number of CPUs"" 2015-06-12 16:43:27 +00:00