Bug 2215407
Summary: | neutron should forbid configuring agent_down_time that is known to crash due to CPython epoll limitation | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Ihar Hrachyshka <ihrachys> |
Component: | openstack-neutron | Assignee: | ldenny |
Status: | CLOSED EOL | QA Contact: | Eran Kuris <ekuris> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 16.2 (Train) | CC: | averdagu, chrisw, ldenny, scohen |
Target Milestone: | z6 | Keywords: | Triaged |
Target Release: | 16.2 (Train on RHEL 8.4) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2024-12-03 15:56:57 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ihar Hrachyshka
2023-06-15 20:25:27 UTC
One method is setting a max value for the config option: ``` diff --git a/neutron/conf/agent/database/agents_db.py b/neutron/conf/agent/database/agents_db.py --- a/neutron/conf/agent/database/agents_db.py (revision 84f5a0a47714e05d5f9c649d7ee71b9d46d1e706) +++ b/neutron/conf/agent/database/agents_db.py (date 1689767431916) @@ -16,7 +16,7 @@ from neutron.common import _constants AGENT_OPTS = [ - cfg.IntOpt('agent_down_time', default=75, + cfg.IntOpt('agent_down_time', default=75, max=2147483, help=_("Seconds to regard the agent as down; should be at " "least twice report_interval, to be sure the " "agent is down for good.")), ``` This may not be good from a user experience, this throws a very nice traceback but I guess it depends how much we want the user to care about the value entered. The other method mentioned by Ihar of just truncating the value would be nice but the user would likely not notice even if we logged it, maybe that behaviour could be added to the Opt help. Still continuing to look into this :) This should be backported to d/s 16 branch to fix this issue: https://review.opendev.org/c/openstack/neutron/+/905332 |