ovn: Add ovn-ctl to assist with OVN daemon lifecycle.
authorRussell Bryant <rbryant@redhat.com>
Fri, 12 Jun 2015 16:51:23 +0000 (12:51 -0400)
committerBen Pfaff <blp@nicira.com>
Mon, 15 Jun 2015 21:21:02 +0000 (14:21 -0700)
commit43d3e694152cb34f65b941a97b3741dd4d42462d
treec487a3c59cf56b90e9daa7b2be80706cd8040445
parent6ad8ce88c31fde2d2938add9611205eef62a4141
ovn: Add ovn-ctl to assist with OVN daemon lifecycle.

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@redhat.com>
CC: Flavio Leitner <fbl@redhat.com>
CC: Ben Pfaff <blp@nicira.com>
[blp@nicira.com added configure.ac code to create ovn/utilities builddir]
Signed-off-by: Ben Pfaff <blp@nicira.com>
configure.ac
ovn/automake.mk
ovn/utilities/.gitignore [new file with mode: 0644]
ovn/utilities/automake.mk [new file with mode: 0644]
ovn/utilities/ovn-ctl [new file with mode: 0755]
ovn/utilities/ovn-ctl.8.xml [new file with mode: 0644]