OpenStack Networking (Neutron)
Go to file
Jakub Libosvar bc979efdb8 fullstack: Don't let dhcp agents failover
It turned out dhcp tests work only because agents are considered dead
after 10 seconds while they report to server every 60 seconds. This led
to calling network resync after agent revival and hiding the fact dhcp
agent is not capable of receiving any amqp messages.

This patch sets the report interval of agents to the half of
agent_down_time on server side and uses eventlet dhcp agent in order to
trigger eventlet monkey patching code.

Eventlet was behind the failure with messages not getting processed. As
[1] notes: "Note: If the “eventlet” executor is used, the threading and
time library need to be monkeypatched."

Because each port calls dhclient to obtain IP address and each dhclient
instance overwrites /etc/resolv.conf there was added a script that
generates fullstack-dhclient-script from an existing dhclient-script
before starting fulltstack tests. This generated script is passed to
each dhclient process running in fake fullstack machine using -sf
parameter.

[1] https://docs.openstack.org/developer/oslo.messaging/server.html

Related-bug: 1453350

Change-Id: I0336176b9c364fe3a95be5cef9e7a3af1ef9d7e9
2017-04-20 14:04:50 +00:00
api-ref Fix some typos 2016-06-28 22:46:19 +02:00
bin Use os-xenapi for neutron when XenServer as hypervisor 2017-03-30 18:33:37 +00:00
devstack Merge "devstack: switch to new NEUTRON_* variables" 2017-03-21 13:17:11 +00:00
doc Correct the mistake in ../conf.py 2017-04-09 19:32:26 +00:00
etc Deal with port commonly when hypervisor is XenServer 2017-03-30 22:33:14 -07:00
neutron fullstack: Don't let dhcp agents failover 2017-04-20 14:04:50 +00:00
rally-jobs Fixed validation of create_and_list_trunk_subports rally scenario 2017-04-06 12:30:15 -07:00
releasenotes Add Apache License Content in index.rst 2017-04-09 19:33:00 +00:00
tools fullstack: Don't let dhcp agents failover 2017-04-20 14:04:50 +00:00
.coveragerc Cleanup coverage configuration 2016-10-17 17:06:19 +05:30
.gitignore Automatically generate neutron core configuration files 2015-11-27 15:22:59 +00:00
.gitreview Fix .gitreview to not point at a branch 2015-08-17 13:51:51 -06:00
.mailmap Add mailmap entry 2014-05-16 13:40:04 -04:00
.pylintrc Fix typo in .pylintrc file 2017-02-09 01:07:07 +00:00
.testr.conf Allow more time for DB migration tests 2016-09-21 20:54:41 -04:00
CONTRIBUTING.rst Make crystal clear how to contribute/approach the neutron community 2016-10-28 11:49:44 -07:00
HACKING.rst Merge "Replace assertEqual(None, *) with assertIsNone in tests" 2016-11-22 02:15:19 +00:00
LICENSE Adding Apache Version 2.0 license file. This is the official license agreement under which Quantum code is available to 2011-08-08 12:31:04 -07:00
README.rst Show team and repo badges on README 2016-11-25 15:35:21 +01:00
TESTING.rst Fix some grammatical errors in TESTING.rst 2017-04-09 19:31:26 +00:00
babel.cfg Use babel to generate translation file 2013-01-24 00:20:32 +08:00
bindep.txt Switch ns-metadata-proxy to haproxy 2017-03-08 15:20:50 +00:00
requirements.txt Merge "Use os-xenapi for neutron when XenServer as hypervisor" 2017-04-05 11:55:46 +00:00
run_tests.sh Add bashate support 2017-02-25 06:29:55 +00:00
setup.cfg Merge "Let setup.py compile_catalog process all language files" 2017-04-04 22:53:53 +00:00
setup.py Updated from global requirements 2017-03-04 11:19:58 +00:00
test-requirements.txt Updated from global requirements 2017-03-04 11:19:58 +00:00
tox.ini fullstack: Don't let dhcp agents failover 2017-04-20 14:04:50 +00:00

README.rst

Team and repository tags

image

Welcome!

To learn more about neutron:

Get in touch via email. Use [Neutron] in your subject.

To learn how to contribute:

CONTRIBUTING.rst