[ovs-dev] [PATCH ovn 1/2 v5] Add ovn-ctl to assist with OVN daemon lifecycle.

Ben Pfaff blp at nicira.com
Mon Jun 15 21:21:17 UTC 2015


On Fri, Jun 12, 2015 at 12:51:23PM -0400, Russell Bryant wrote:
> This patch introduces ovn-ctl, which is similar to ovs-ctl.  I opted
> for a new script as everything in OVN so far is nicely isolated, so a
> new script seemed to make the most sense.
> 
> If you'd like to run ovn-controller on a host already running ovs:
> 
>     # ovn-ctl start_controller
> 
> If you'd like to run ovn-northd:
> 
>     # ovn-ctl start_northd
> 
> Note that ovn-ctl assumes that ovn-northd is running on the same
> server as ovsdb-server hosting the OVN databases.  Based on the
> current architecture this seems like a completely reasonable
> assumption.  This can be improved later when needed.
> 
> There's some additional stuff happening in start_northd to make the
> experience nicer and not require additional steps by the
> administrator.  It creates the OVN dbs if they don't exist.  If
> ovsdb-server hasn't loaded them, it tells it to load them, as well.
> 
> ovn-ctl also supports running everything on the same host.  This would
> be common in a test environment with a single host or small set of
> hosts.  That would simply be:
> 
>     # ovs-ctl start --system-id=random
>     # ovn-ctl start_northd
>     # ovn-ctl start_controller
> 
> Signed-off-by: Russell Bryant <rbryant at redhat.com>
> CC: Flavio Leitner <fbl at redhat.com>
> CC: Ben Pfaff <blp at nicira.com>

Thanks!  I had to fold this in to get ovn/utilities created in the build
directory:

diff --git a/configure.ac b/configure.ac
index 666ab8f..c19c7c4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -186,6 +186,7 @@ AC_CONFIG_COMMANDS([include/openflow/openflow.h.stamp])
 
 AC_CONFIG_COMMANDS([utilities/bugtool/dummy], [:])
 AC_CONFIG_COMMANDS([ovn/dummy], [:])
+AC_CONFIG_COMMANDS([ovn/utilities/dummy], [:])
 
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
 
With that change, I applied this to the ovn branch.



More information about the dev mailing list