[ovs-dev] [PATCH] ovn-ctl: Initialize the databases.

Guru Shetty guru at ovn.org
Mon Sep 19 18:18:20 UTC 2016


On 19 September 2016 at 11:08, Ben Pfaff <blp at ovn.org> wrote:

> On Sun, Sep 18, 2016 at 11:26:52PM -0700, Gurucharan Shetty wrote:
> > Without initializing the databases, commands of the form
> > 'ovn-nbctl --wait=sb ls-add ls0' will simply hang.
> >
> > Signed-off-by: Gurucharan Shetty <guru at ovn.org>
>
> It's better if the separate initialization step is optional.

We do this everytime for OVS in do_start_ovsdb of utilities/ovs-ctl.in with:
ovs_vsctl -- init -- set Open_vSwitch . db-version="$schemaver"

Is there a subtlety here?



>   I think
> that ovn-nbctl and ovn-sbctl should be initializing the databases
> automatically when any command runs, if they are not already
> initialized; that's what ovs-vsctl does, at least.  Is that missing?
>

It does initialize when a command is run. But no-one runs ovn-sbctl
commands right (unless for debugging)?. So any ovn-nbctl command that is
run with --wait=sb will hang.



More information about the dev mailing list