neutron/releasenotes/notes/agent_down_time_max-af3b62763aaa2fe5.yaml
Lewis Denny 6fef1e6525 Add max limit to agent_down_time
The agent_down_time ends up being passed to an eventlet green-thread;
under the hood, this uses a CPython C-types interface with a limitation
of (2^32 / 2 - 1) INT_MAX (as defined in C) where int is usually 32 bits

I have set the max value to (2^32 / 2 - 1)/1000 as agent_down_time
configured in seconds, this ends up being 2147483.

This patch is required as passing a larger number
causes this error: OverflowError: timeout is too large

If a user currently has a value larger than (2^32 / 2 - 1)/1000 set,
Neutron Server will fail to start and will print out a very helpful
error message.

Closes-Bug: #2028724
Change-Id: Ib5b943344cddbd468c00768461ba1ee00a2b4c58
2023-08-08 10:06:29 +10:00

7 lines
271 B
YAML

---
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.