@@ -187,17 +187,15 @@ if [[ "$ENABLE_SSL" == "false" ]]; then
187
187
--db-sb-cluster-local-addr=" [${POD_IP} ]" \
188
188
--db-nb-addr=$BIND_LOCAL_ADDR \
189
189
--db-sb-addr=$BIND_LOCAL_ADDR \
190
+ --db-nb-port=$DB_NB_PORT \
191
+ --db-sb-port=$DB_SB_PORT \
190
192
--db-nb-use-remote-in-db=no \
191
193
--db-sb-use-remote-in-db=no \
192
194
--ovn-northd-nb-db=" $( gen_conn_str 6641) " \
193
195
--ovn-northd-sb-db=" $( gen_conn_str 6642) " \
194
196
start_northd
195
- ovn-nbctl --no-leader-only set-connection ptcp:" ${DB_NB_PORT} " :[::]
196
- ovn-nbctl --no-leader-only set Connection . inactivity_probe=180000
197
+ ovn-nbctl --no-leader-only set NB_Global . options:northd_probe_interval=180000
197
198
ovn-nbctl --no-leader-only set NB_Global . options:use_logical_dp_groups=true
198
-
199
- ovn-sbctl --no-leader-only set-connection ptcp:" ${DB_SB_PORT} " :[::]
200
- ovn-sbctl --no-leader-only set Connection . inactivity_probe=180000
201
199
else
202
200
# known leader always first
203
201
set +eo pipefail
@@ -234,6 +232,8 @@ if [[ "$ENABLE_SSL" == "false" ]]; then
234
232
--db-sb-cluster-remote-addr=" [${sb_leader_ip} ]" \
235
233
--db-nb-addr=$BIND_LOCAL_ADDR \
236
234
--db-sb-addr=$BIND_LOCAL_ADDR \
235
+ --db-nb-port=$DB_NB_PORT \
236
+ --db-sb-port=$DB_SB_PORT \
237
237
--db-nb-use-remote-in-db=no \
238
238
--db-sb-use-remote-in-db=no \
239
239
--ovn-northd-nb-db=" $( gen_conn_str 6641) " \
@@ -291,17 +291,15 @@ else
291
291
--db-sb-cluster-local-addr=" [${POD_IP} ]" \
292
292
--db-nb-addr=$BIND_LOCAL_ADDR \
293
293
--db-sb-addr=$BIND_LOCAL_ADDR \
294
+ --db-nb-port=$DB_NB_PORT \
295
+ --db-sb-port=$DB_SB_PORT \
294
296
--db-nb-use-remote-in-db=no \
295
297
--db-sb-use-remote-in-db=no \
296
298
--ovn-northd-nb-db=" $( gen_conn_str 6641) " \
297
299
--ovn-northd-sb-db=" $( gen_conn_str 6642) " \
298
300
start_northd
299
- ovn-nbctl --no-leader-only -p /var/run/tls/key -c /var/run/tls/cert -C /var/run/tls/cacert set-connection pssl:" ${DB_NB_PORT} " :[" ${DB_NB_ADDR} " ]
300
- ovn-nbctl --no-leader-only -p /var/run/tls/key -c /var/run/tls/cert -C /var/run/tls/cacert set Connection . inactivity_probe=180000
301
+ ovn-nbctl --no-leader-only -p /var/run/tls/key -c /var/run/tls/cert -C /var/run/tls/cacert set NB_Global . options:northd_probe_interval=180000
301
302
ovn-nbctl --no-leader-only -p /var/run/tls/key -c /var/run/tls/cert -C /var/run/tls/cacert set NB_Global . options:use_logical_dp_groups=true
302
-
303
- ovn-sbctl --no-leader-only -p /var/run/tls/key -c /var/run/tls/cert -C /var/run/tls/cacert set-connection pssl:" ${DB_SB_PORT} " :[" ${DB_SB_ADDR} " ]
304
- ovn-sbctl --no-leader-only -p /var/run/tls/key -c /var/run/tls/cert -C /var/run/tls/cacert set Connection . inactivity_probe=180000
305
303
else
306
304
# get leader if cluster exists
307
305
set +eo pipefail
344
342
--db-sb-cluster-remote-addr=" [${sb_leader_ip} ]" \
345
343
--db-nb-addr=$BIND_LOCAL_ADDR \
346
344
--db-sb-addr=$BIND_LOCAL_ADDR \
345
+ --db-nb-port=$DB_NB_PORT \
346
+ --db-sb-port=$DB_SB_PORT \
347
347
--db-nb-use-remote-in-db=no \
348
348
--db-sb-use-remote-in-db=no \
349
349
--ovn-northd-nb-db=" $( gen_conn_str 6641) " \
0 commit comments