Merge "Fix OVN system-id check"

This commit is contained in:
Zuul 2023-08-07 06:07:39 +00:00 committed by Gerrit Code Review
commit 4ee839a6e4
3 changed files with 4 additions and 3 deletions

View File

@ -15,7 +15,7 @@ apiVersion: v1
appVersion: v23.3.0 appVersion: v23.3.0
description: OpenStack-Helm OVN description: OpenStack-Helm OVN
name: ovn name: ovn
version: 0.1.2 version: 0.1.3
home: https://www.ovn.org home: https://www.ovn.org
icon: https://www.ovn.org/images/ovn-logo.png icon: https://www.ovn.org/images/ovn-logo.png
sources: sources:

View File

@ -970,8 +970,8 @@ ovn-master() {
} }
add-external-id-configs() { add-external-id-configs() {
ovs-vsctl get open . external-ids:system-id ovs-vsctl get open . external-ids:system-id 2>&1 | grep -q "no key"
if [ $? -eq 1 ]; then if [ $? -eq 0 ]; then
ovs-vsctl set open . external-ids:system-id="$(uuidgen)" ovs-vsctl set open . external-ids:system-id="$(uuidgen)"
fi fi

View File

@ -3,4 +3,5 @@ ovn:
- 0.1.0 Add OVN! - 0.1.0 Add OVN!
- 0.1.1 Fix ovn db persistence issue - 0.1.1 Fix ovn db persistence issue
- 0.1.2 Add bridge-mapping configuration - 0.1.2 Add bridge-mapping configuration
- 0.1.3 Fix system-id reuse
... ...