]> git.proxmox.com Git - mirror_ovs.git/commit - ovn/northd/ovn-northd.c
ovn: Make it possible for CMS to detect when the OVN system is up-to-date.
authorBen Pfaff <blp@ovn.org>
Sun, 24 Jul 2016 20:14:59 +0000 (13:14 -0700)
committerBen Pfaff <blp@ovn.org>
Wed, 27 Jul 2016 06:59:53 +0000 (23:59 -0700)
commitfa183acc654f7e5da17cd70fc91d6b5b02782183
tree9dc2236c8f5cd5e66e74914a56b091befa069d0f
parent763f638b7f34953ccae8b494c63d0dab7f326b41
ovn: Make it possible for CMS to detect when the OVN system is up-to-date.

Until now, there has been no reliable for the CMS (or ovn-nbctl, or
anything else) to detect when changes made to the northbound configuration
have been passed through to the southbound database or to the hypervisors.
This commit adds this feature to the system, by adding sequence numbers
to the northbound and southbound databases and adding code in ovn-nbctl,
ovn-northd, and ovn-controller to keep those sequence numbers up-to-date.

The biggest user-visible change from this commit is new a new option
--wait to ovn-nbctl.  With --wait=sb, ovn-nbctl now waits for ovn-northd
to update the southbound database; with --wait=hv, it waits for the
changes to make their way to Open vSwitch on every hypervisor.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Russell Bryant <russell@ovn.org>
22 files changed:
include/openvswitch/list.h
lib/ovsdb-idl.c
lib/ovsdb-idl.h
ovn/controller/chassis.c
ovn/controller/chassis.h
ovn/controller/ofctrl.c
ovn/controller/ofctrl.h
ovn/controller/ovn-controller.c
ovn/northd/ovn-northd.c
ovn/ovn-architecture.7.xml
ovn/ovn-nb.ovsschema
ovn/ovn-nb.xml
ovn/ovn-sb.ovsschema
ovn/ovn-sb.xml
ovn/utilities/ovn-nbctl.8.xml
ovn/utilities/ovn-nbctl.c
ovn/utilities/ovn-sbctl.8.in
ovn/utilities/ovn-sbctl.c
tests/ofproto-macros.at
tests/ovn-nbctl.at
tutorial/ovs-sandbox
utilities/ovs-sim.in