It turns out that in environments with a big number of VMs, sometimes
the neutron dhcp agent fails to read the dhcp lease file because some
lines with the ipv4/ipv6 entries don't have enough fields and causes the
dhcp agent to fail.
When this happens the agent calls sync_state to
fully resync the agent state, that causes a serious performance problems
in scale environments.
We need to be more robust reading the file to handle these exceptions.
Co-authored-by: stephen-ma
Partial-Bug: #1788556
Change-Id: Ia681a5e929df5bf8c97ae9445876c306c34061b5
(cherry picked from commit 8a3ff8a19ec39630d24b71cec86740b6b9f16bbe)
Reviewed: https:/ /review. openstack. org/604319 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=011d0fbf7c0 85f9f9f24bac67c f74b05ed91bdda
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 011d0fbf7c085f9 f9f24bac67cf74b 05ed91bdda
Author: aojeagarcia <email address hidden>
Date: Wed Aug 22 10:41:14 2018 +0200
Parse dhcp leases file in a more robust way
It turns out that in environments with a big number of VMs, sometimes
the neutron dhcp agent fails to read the dhcp lease file because some
lines with the ipv4/ipv6 entries don't have enough fields and causes the
dhcp agent to fail.
When this happens the agent calls sync_state to
fully resync the agent state, that causes a serious performance problems
in scale environments.
We need to be more robust reading the file to handle these exceptions.
Co-authored-by: stephen-ma
Partial-Bug: #1788556
Change-Id: Ia681a5e929df5b f8c97ae9445876c 306c34061b5 0d24b71cec86740 b6b9f16bbe)
(cherry picked from commit 8a3ff8a19ec3963