Persist Neutron agent state files in volume

The Neutron L3 agent stores state at state_path (/var/lib/neutron by
default) and it is expected that these files persist across restarts.

This change updates the Neutron state_path value to
/var/lib/neutron/kolla (which is where the neutron_metadata_socket
volume is mounted) so that these state files are stored there.

Change-Id: I739aaf9e2d0b2b2e7f7b8f60ef8c2111d6873cef
Signed-off-by: Adam Oswick <adam@adamoswick.co.uk>
Closes-Bug: #2009884
This commit is contained in:
Adam Oswick 2023-09-26 11:40:52 +01:00
parent f64c86de1d
commit 25244517e1
2 changed files with 6 additions and 4 deletions

View File

@ -21,10 +21,7 @@ api_workers = {{ neutron_api_workers }}
rpc_workers = {{ openstack_service_rpc_workers }}
rpc_state_report_workers = {{ openstack_service_rpc_workers }}
# NOTE(SamYaple): We must specify this value here rather than the metadata conf
# because it is used by the l3 and dhcp agents. The reason the path has 'kolla'
# in it is because we are sharing this socket in a volume which is it's own dir
metadata_proxy_socket = /var/lib/neutron/kolla/metadata_proxy
state_path = /var/lib/neutron/kolla
{% if neutron_plugin_agent == "openvswitch" or (neutron_plugin_agent == "ovn" and neutron_ovn_dhcp_agent | bool) %}
interface_driver = openvswitch

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes non-persistent Neutron agent state data.
`LP2009884 <https://launchpad.net/bugs/2009884>`__