mirror of
https://github.com/openvswitch/ovs
synced 2025-08-29 05:18:13 +00:00
ovs-sandbox: Support starting multiple ovn-northds.
This allows testing ovn-northd behavior when it is run in an HA configuration. Signed-off-by: Ben Pfaff <blp@ovn.org> Reviewed-by: aginwala <aginwala@asu.edu>
This commit is contained in:
parent
71dc2eef9c
commit
1e8eeb66db
@ -71,6 +71,7 @@ ovn=false
|
|||||||
ovnsb_schema=
|
ovnsb_schema=
|
||||||
ovnnb_schema=
|
ovnnb_schema=
|
||||||
ovn_rbac=true
|
ovn_rbac=true
|
||||||
|
n_northds=1
|
||||||
nbdb_model=standalone
|
nbdb_model=standalone
|
||||||
nbdb_servers=3
|
nbdb_servers=3
|
||||||
sbdb_model=backup
|
sbdb_model=backup
|
||||||
@ -129,6 +130,7 @@ General options:
|
|||||||
OVN options:
|
OVN options:
|
||||||
-o, --ovn enable OVN
|
-o, --ovn enable OVN
|
||||||
--no-ovn-rbac disable role-based access control for OVN
|
--no-ovn-rbac disable role-based access control for OVN
|
||||||
|
--n-northds=NUMBER run NUMBER copies of northd (default: 1)
|
||||||
--nbdb-model=standalone|backup|clustered northbound database model
|
--nbdb-model=standalone|backup|clustered northbound database model
|
||||||
--nbdb-servers=N number of servers in nbdb cluster (default: 3)
|
--nbdb-servers=N number of servers in nbdb cluster (default: 3)
|
||||||
--sbdb-model=standalone|backup|clustered southbound database model
|
--sbdb-model=standalone|backup|clustered southbound database model
|
||||||
@ -204,6 +206,12 @@ EOF
|
|||||||
--no-ovn-rbac)
|
--no-ovn-rbac)
|
||||||
ovn_rbac=false
|
ovn_rbac=false
|
||||||
;;
|
;;
|
||||||
|
--n-northd*=*)
|
||||||
|
n_northds=$optarg
|
||||||
|
;;
|
||||||
|
--n-northd*)
|
||||||
|
prev=n_northds
|
||||||
|
;;
|
||||||
--nbdb-s*=*)
|
--nbdb-s*=*)
|
||||||
nbdb_servers=$optarg
|
nbdb_servers=$optarg
|
||||||
nbdb_model=clustered
|
nbdb_model=clustered
|
||||||
@ -508,9 +516,12 @@ if $ovn; then
|
|||||||
ovs-vsctl set open . external-ids:ovn-remote=$OVN_SB_DB
|
ovs-vsctl set open . external-ids:ovn-remote=$OVN_SB_DB
|
||||||
OVN_CTRLR_PKI=""
|
OVN_CTRLR_PKI=""
|
||||||
fi
|
fi
|
||||||
|
for i in $(seq $n_northds); do
|
||||||
rungdb $gdb_ovn_northd $gdb_ovn_northd_ex ovn-northd --detach \
|
rungdb $gdb_ovn_northd $gdb_ovn_northd_ex ovn-northd --detach \
|
||||||
--no-chdir --pidfile -vconsole:off --log-file \
|
--no-chdir --pidfile=ovn-northd$i.pid -vconsole:off \
|
||||||
|
--log-file=ovn-northd$i.log \
|
||||||
--ovnsb-db="$OVN_SB_DB" --ovnnb-db="$OVN_NB_DB"
|
--ovnsb-db="$OVN_SB_DB" --ovnnb-db="$OVN_NB_DB"
|
||||||
|
done
|
||||||
rungdb $gdb_ovn_controller $gdb_ovn_controller_ex ovn-controller \
|
rungdb $gdb_ovn_controller $gdb_ovn_controller_ex ovn-controller \
|
||||||
$OVN_CTRLR_PKI --detach --no-chdir --pidfile -vconsole:off --log-file
|
$OVN_CTRLR_PKI --detach --no-chdir --pidfile -vconsole:off --log-file
|
||||||
rungdb $gdb_ovn_controller_vtep $gdb_ovn_controller_vtep_ex \
|
rungdb $gdb_ovn_controller_vtep $gdb_ovn_controller_vtep_ex \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user