Sync neutron db to ovn nb db when neutron-server start

Neutron server default only log warning when ovn north-bound's db
mismatched with neutron's db. This patch enable auto sync neutron
db to ovn nb db when neutron-server start.

Reference code:
https://opendev.org/openstack/neutron/src/branch/master/neutron/conf/plugins/ml2/drivers/ovn/ovn_conf.py#L98

Change-Id: I005425ce533f48b2c25b28b47b22e94d054e68d2
This commit is contained in:
dbcocle-ts 2023-04-23 02:35:23 +00:00
parent a81317569f
commit 63529d7dc0
3 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,7 @@ apiVersion: v1
appVersion: v1.0.0 appVersion: v1.0.0
description: OpenStack-Helm Neutron description: OpenStack-Helm Neutron
name: neutron name: neutron
version: 0.3.6 version: 0.3.7
home: https://docs.openstack.org/neutron/latest/ home: https://docs.openstack.org/neutron/latest/
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Neutron/OpenStack_Project_Neutron_vertical.png icon: https://www.openstack.org/themes/openstack/images/project-mascots/Neutron/OpenStack_Project_Neutron_vertical.png
sources: sources:

View File

@ -31,6 +31,7 @@ conf:
ovn_metadata_enabled: True ovn_metadata_enabled: True
ovn_l3_scheduler: leastloaded ovn_l3_scheduler: leastloaded
dns_servers: 8.8.8.8,1.1.1.1 dns_servers: 8.8.8.8,1.1.1.1
neutron_sync_mode: repair
ovn_metadata_agent: ovn_metadata_agent:
DEFAULT: DEFAULT:
# we cannot change the proxy socket path as it is declared # we cannot change the proxy socket path as it is declared

View File

@ -48,4 +48,5 @@ neutron:
- 0.3.4 Replace node-role.kubernetes.io/master with control-plane - 0.3.4 Replace node-role.kubernetes.io/master with control-plane
- 0.3.5 Fix health probe for OVN metadata agent - 0.3.5 Fix health probe for OVN metadata agent
- 0.3.6 Fix the issue that ovn metadata not work in muti-node enviroment - 0.3.6 Fix the issue that ovn metadata not work in muti-node enviroment
- 0.3.7 Sync neutron db to ovn nb db when neutron-server start
... ...