Brian Haley fab032b426 Retry dhcp_release on failures
Sometimes calls to dhcp_release(6) do not result in removal
of a lease from the leases file, for example, when the release
packet is not received by dnsmasq.  Trying more than once is
recommended in this case.

Instead of blindly trying some number of times, we monitor
the lease file contents, and retry the dhcp_release(6) call
when an entry still remains.  This is possible since
dhcp_release(6) is being run from the DHCP server itself.
We try three times and wait 0.3 seconds between tries.

We also now check for any stale leases in the leases file
that are unknown to neutron, also trying to remove them.

Change-Id: Ic1864f7efbc94db1369ac7f3e2879fda86f95a11
Closes-bug: #1764481
2018-04-27 15:50:47 -04:00
2016-06-28 22:46:19 +02:00
2018-04-27 15:50:47 -04:00
2016-10-17 17:06:19 +05:30
2014-05-16 13:40:04 -04:00
2018-04-11 08:59:14 +00:00
2017-06-13 19:26:49 +00:00
2017-08-31 16:44:51 +02:00
2017-08-03 09:47:25 +08:00
2017-03-04 11:19:58 +00:00

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

Description
OpenStack Networking (Neutron)
Readme 1 GiB
Languages
Python 99.7%
Shell 0.3%