Hi Han, Can you please take a look at this patch ? Does this change in behavior fine with you ?\
Thanks Numan On Tue, Dec 22, 2020 at 1:24 PM <num...@ovn.org> wrote: > > From: Vladislav Odintsov <odiv...@gmail.com> > > This commit adds capability to start and stop ovsdb-server for OVN > interconnection > when {start,stop}_ic is called. > It changes previous behavior where {start,stop}_ic only started/stopped > ovn-ic daemon without ovn-ic DBs. > > If one wants to save previous behavior, --ovn-manage-ovsdb=no must be passed > to ovn-ctl script. > > Signed-off-by: Vladislav Odintsov <odiv...@gmail.com> > --- > utilities/ovn-ctl | 18 +++++++++++++++++- > 1 file changed, 17 insertions(+), 1 deletion(-) > > diff --git a/utilities/ovn-ctl b/utilities/ovn-ctl > index 1119308860..178cefaa46 100755 > --- a/utilities/ovn-ctl > +++ b/utilities/ovn-ctl > @@ -485,6 +485,19 @@ start_northd () { > > start_ic () { > if [ ! -e $ovn_ic_db_conf_file ]; then > + if test X"$OVN_MANAGE_OVSDB" = Xyes; then > + start_ic_ovsdb > + > + if ! pidfile_is_running $DB_IC_NB_PID; then > + log_failure_msg "OVN IC Northbound DB is not running" > + exit > + fi > + if ! pidfile_is_running $DB_IC_SB_PID; then > + log_failure_msg "OVN IC Southbound DB is not running" > + exit > + fi > + fi > + > ovn_ic_params="--ovnnb-db=$OVN_NORTHD_NB_DB \ > --ovnsb-db=$OVN_NORTHD_SB_DB \ > --ic-nb-db=$OVN_IC_NB_DB \ > @@ -581,6 +594,9 @@ stop_northd () { > } > > stop_ic () { > + if test X"$OVN_MANAGE_OVSDB" = Xyes; then > + stop_ic_ovsdb > + fi > OVS_RUNDIR=${OVS_RUNDIR} stop_ovn_daemon ovn-ic > } > > @@ -906,7 +922,7 @@ Options: > --ovn-northd-ssl-ca-cert=CERT OVN Northd SSL CA certificate file > --ovn-manage-ovsdb=yes|no Whether or not the OVN NB/SB databases > should be > automatically started and stopped along > - with ovn-northd. The default is "yes". If > + with ovn-northd and ovn-ic. The default > is "yes". If > this is set to "no", the "start_ovsdb" and > "stop_ovsdb" commands must be used to > start > and stop the OVN databases. > -- > 2.29.2 > > _______________________________________________ > dev mailing list > d...@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-dev > _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev