[ovs-git] Open vSwitch: ovsdb: Monitor support. (db)

dev at openvswitch.org dev at openvswitch.org
Wed Nov 18 01:17:44 UTC 2009


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, db has been updated
       via  a8425c53c5785856cabe80295f0cea0135febdb6 (commit)
       via  1fd13cde12973420d573af8d161c612a9203b1cd (commit)
       via  aa78de9dcb0cdd34cc57358fe236c563006eeb74 (commit)
       via  4d0101a0323397fbb4aa9f5bea4946a55880e045 (commit)
       via  22f156fd06afb565c90ac9346d35a30612ba88e5 (commit)
       via  21ff1aee1b186405c2471bf83a3e8a016a1d2256 (commit)
       via  6d65eee8b1f4d96b9c925d3b31758268345a4636 (commit)
       via  eb077b264f0801971e02f1fdcd62241388c7448e (commit)
       via  b93d3b6cb28a925f530aef2009602c06f2f5ae60 (commit)
       via  bd06962ad334fa4631b67905fc9f43f96a908915 (commit)
       via  41709cccb8099972f9c6c3faf583b1286cb92e8a (commit)
       via  6e79e2104c95e005e81a070053a3dc99a2bfde09 (commit)
       via  124f9671b7c1bfed36836a98723f565bb55a116a (commit)
      from  1b0f0f17b3c0c6762d6289b1bf7e0e65292f6348 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a8425c53c5785856cabe80295f0cea0135febdb6
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=a8425c53c5785856cabe80295f0cea0135febdb6
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb: Monitor support.
		


commit 1fd13cde12973420d573af8d161c612a9203b1cd
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=1fd13cde12973420d573af8d161c612a9203b1cd
Author: Ben Pfaff <blp at nicira.com>
		
jsonrpc: Add logging for messages sent and received, at DBG level.
		
This made it much easier to see problems while developing some
ovsdb-server features.


commit aa78de9dcb0cdd34cc57358fe236c563006eeb74
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=aa78de9dcb0cdd34cc57358fe236c563006eeb74
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb-server: Add "exit" unixctl command and --unixctl option.
		
This makes writing predictable test scripts easier.


commit 4d0101a0323397fbb4aa9f5bea4946a55880e045
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=4d0101a0323397fbb4aa9f5bea4946a55880e045
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb-parser: Fix logic in ovsdb_parser_member().
		
I don't know why this test was written as it was.  The new test makes more
sense, and may be more correct as well.


commit 22f156fd06afb565c90ac9346d35a30612ba88e5
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=22f156fd06afb565c90ac9346d35a30612ba88e5
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb-server: Ignore replies to echo requests.
		
Until this commit, ovsdb-server would send off echo requests when the
connection became idle, but then it would terminate the connection when
the reply arrived, because it didn't recognize that it was a reply to its
own request (!).


commit 21ff1aee1b186405c2471bf83a3e8a016a1d2256
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=21ff1aee1b186405c2471bf83a3e8a016a1d2256
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb: Add tests for file storage and for ovsdb-server.
		


commit 6d65eee8b1f4d96b9c925d3b31758268345a4636
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=6d65eee8b1f4d96b9c925d3b31758268345a4636
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb-client: New command "transact".
		


commit eb077b264f0801971e02f1fdcd62241388c7448e
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=eb077b264f0801971e02f1fdcd62241388c7448e
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb-server: Maintain the database lock with --detach.
		
Before this commit, "ovsdb-server --detach" would detach after it opened
the database file, which meant that the child process did not hold the
file lock on the database file (because a forked child process does not
inherit its parents' locks).  This commit fixes the problem by making
ovsdb-server open the database only after it has detached.  This fix, in
turn, required that daemonize() not chdir to /, because this would break
databases whose names are given relative to the current directory, and so
this commit also changes ovsdb-server to do so later.


commit b93d3b6cb28a925f530aef2009602c06f2f5ae60
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=b93d3b6cb28a925f530aef2009602c06f2f5ae60
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb: Refactor JSON-RPC database server implementation.
		
This refactoring breaks up jsonrpc-server.c in a more modular fashion, in
preparation for adding code for table monitors.


commit bd06962ad334fa4631b67905fc9f43f96a908915
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=bd06962ad334fa4631b67905fc9f43f96a908915
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb: Add replication support and refactor files in terms of replication.
		
An upcoming commit will add support for replicating tables across JSON-RPC
connection.  As a prerequisite ovsdb itself must support basic replication.
This commit adds that support and then reimplements the ovsdb file storage
in terms of that replication.


commit 41709cccb8099972f9c6c3faf583b1286cb92e8a
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=41709cccb8099972f9c6c3faf583b1286cb92e8a
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb: Rename ovsdb_file to ovsdb_log.
		
This prepares for introducing a new, higher-level ovsdb_file that
encapsulates ovsdb storage in a file.


commit 6e79e2104c95e005e81a070053a3dc99a2bfde09
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=6e79e2104c95e005e81a070053a3dc99a2bfde09
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb: Fix use of non-array for JSON-RPC parameters.
		
JSON-RPC requires that "params" be an array, but we weren't observing this
properly in the ovsdb specifications or code.

Thanks to Jeremy Stribling for pointing out the problem.


commit 124f9671b7c1bfed36836a98723f565bb55a116a
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=124f9671b7c1bfed36836a98723f565bb55a116a
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb-parser: Fix indentation.
		


-----------------------------------------------------------------------

Summary of changes:
 lib/daemon.c                          |   14 +
 lib/daemon.h                          |    4 +-
 lib/dynamic-string.c                  |    7 +
 lib/dynamic-string.h                  |    1 +
 lib/jsonrpc.c                         |   35 ++
 lib/ovsdb-parser.c                    |    9 +-
 lib/ovsdb-parser.h                    |    2 +-
 lib/vlog-modules.def                  |    2 +-
 ovsdb/SPECS                           |  138 ++++++-
 ovsdb/automake.mk                     |    2 +
 ovsdb/column.c                        |   13 +
 ovsdb/column.h                        |    1 +
 ovsdb/execution.c                     |   36 +--
 ovsdb/file.c                          |  515 ++++++++++-----------
 ovsdb/file.h                          |   16 +-
 ovsdb/jsonrpc-server.c                |  807 ++++++++++++++++++++++++++-------
 ovsdb/jsonrpc-server.h                |   12 +-
 ovsdb/{file.c => log.c}               |   43 +-
 ovsdb/{file.h => log.h}               |   20 +-
 ovsdb/ovsdb-client.1.in               |   28 ++
 ovsdb/ovsdb-client.c                  |  260 +++++++++++-
 ovsdb/ovsdb-server.c                  |   74 +++-
 ovsdb/ovsdb-tool.c                    |   15 +-
 ovsdb/ovsdb.c                         |   98 ++---
 ovsdb/ovsdb.h                         |   28 +-
 ovsdb/transaction.c                   |  207 +--------
 ovsdb/transaction.h                   |   15 +-
 tests/automake.mk                     |    7 +-
 tests/ovsdb-execution.at              |  172 ++++----
 tests/ovsdb-file.at                   |  306 ++------------
 tests/{ovsdb-file.at => ovsdb-log.at} |  102 ++--
 tests/ovsdb-monitor.at                |   46 ++
 tests/ovsdb-server.at                 |   34 ++
 tests/ovsdb-trigger.at                |   10 +-
 tests/ovsdb.at                        |   18 +-
 tests/test-ovsdb.c                    |   31 +-
 36 files changed, 1883 insertions(+), 1245 deletions(-)
 copy ovsdb/{file.c => log.c} (92%)
 copy ovsdb/{file.h => log.h} (60%)
 copy tests/{ovsdb-file.at => ovsdb-log.at} (66%)
 create mode 100644 tests/ovsdb-monitor.at
 create mode 100644 tests/ovsdb-server.at


hooks/post-receive
-- 
Open vSwitch




More information about the git mailing list