Merge "Add max limit to agent_down_time" into stable/wallaby

This commit is contained in:
Zuul 2024-03-01 05:41:56 +00:00 committed by Gerrit Code Review
commit 3ef44ac244
2 changed files with 11 additions and 0 deletions

View File

@ -15,7 +15,12 @@ from oslo_config import cfg
from neutron._i18n import _
AGENT_OPTS = [
# The agent_down_time value can only be a max of INT_MAX (as defined in C),
# where int is usually 32 bits. The agent_down_time will be passed to
# eventlet in milliseconds and any number higher will produce an OverFlow
# error. More details here: https://bugs.launchpad.net/neutron/+bug/2028724
cfg.IntOpt('agent_down_time', default=75,
max=((2**32 / 2 - 1) // 1000),
help=_("Seconds to regard the agent is down; should be at "
"least twice report_interval, to be sure the "
"agent is down for good.")),

View File

@ -0,0 +1,6 @@
---
fixes:
- |
The config option ``agent_down_time`` is now limited to a maximum value of
`2147483`, as neutron-server will fail to start if it is configured higher.
See bug `2028724 <https://bugs.launchpad.net/neutron/+bug/2028724>`_ for more information.