On 19 September 2016 at 11:08, Ben Pfaff <b...@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 <g...@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.
dev mailing list

Reply via email to