[ovs-dev] db

2016-08-31 Thread Umangkumar Patel
___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] db

2016-08-30 Thread Dominic Lyffas Kangachepe
___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [db-ctl-base v2 1/3] db-ctl-base: do not expose get_table() API

2015-07-13 Thread Andy Zhou
> nitpick, could we move this deletion to next commit? Make sense. I moved it. > > > Acked-by: Alex Wang > Thanks for the review. Pushed to master. > > >> >> /* ctl_fatal() also logs the error, so it is preferred in this file. */ >> @@ -250,9 +247,8 @@ struct ctl_table_class { >> * entry. */ >>

Re: [ovs-dev] [db-ctl-base v2 3/3] db-ctl-base: group static functions together

2015-07-10 Thread Alex Wang
Acked-by: Alex Wang On Thu, Jul 9, 2015 at 1:27 PM, Andy Zhou wrote: > This file follows a convention that all static functions are grouped > towards the beginning, ahead of public functions. Re-arrange the code > to confirm to this convention. No functional changes. > > Signed-off-by: Andy Zh

Re: [ovs-dev] [db-ctl-base v2 1/3] db-ctl-base: do not expose get_table() API

2015-07-10 Thread Alex Wang
On Thu, Jul 9, 2015 at 1:27 PM, Andy Zhou wrote: > Both get_table() and set_cloum() APIs are mostly used within db-ctl-base > library. This patch makes both private to the library. > > Add a new ctl_set_colum() API for library client. > > The changes are cleanups. No functional changes. > > Signe

Re: [ovs-dev] [db-ctl-base v2 2/3] db-ctl-base: do not require client to expose the "tables" variable

2015-07-10 Thread Alex Wang
Acked-by: Alex Wang On Thu, Jul 9, 2015 at 1:27 PM, Andy Zhou wrote: > Instead, client now pass it via the modified ctl_init() API. > > Siigned-off-by: Andy Zhou > --- > lib/db-ctl-base.c | 8 +++- > lib/db-ctl-base.h | 8 ++-- > utilities/ovs-vsctl.c | 4 ++-- > vtep/vtep-ctl

[ovs-dev] [db-ctl-base v2 2/3] db-ctl-base: do not require client to expose the "tables" variable

2015-07-09 Thread Andy Zhou
Instead, client now pass it via the modified ctl_init() API. Siigned-off-by: Andy Zhou --- lib/db-ctl-base.c | 8 +++- lib/db-ctl-base.h | 8 ++-- utilities/ovs-vsctl.c | 4 ++-- vtep/vtep-ctl.c | 4 ++-- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/lib/

[ovs-dev] [db-ctl-base v2 3/3] db-ctl-base: group static functions together

2015-07-09 Thread Andy Zhou
This file follows a convention that all static functions are grouped towards the beginning, ahead of public functions. Re-arrange the code to confirm to this convention. No functional changes. Signed-off-by: Andy Zhou --- lib/db-ctl-base.c | 166 +++--

[ovs-dev] [db-ctl-base v2 0/3] db-ctl-base cleanup

2015-07-09 Thread Andy Zhou
Minor cleanups in db-ctl-base library, and in prepare for ovsdb join related changes in the library. v1->v2: Drop the first patch that has been committed. group static functions together Fix comments Andy Zhou (3): db-ctl-base: do not expose get_table() API db-ctl-base: do not r

[ovs-dev] [db-ctl-base v2 1/3] db-ctl-base: do not expose get_table() API

2015-07-09 Thread Andy Zhou
Both get_table() and set_cloum() APIs are mostly used within db-ctl-base library. This patch makes both private to the library. Add a new ctl_set_colum() API for library client. The changes are cleanups. No functional changes. Signed-off-by: Andy Zhou --- lib/db-ctl-base.c | 15 +++

Re: [ovs-dev] [db-backup 5/5] Avoid unneeded database compaction at startup, and improve backups.

2011-02-15 Thread Ben Pfaff
Thanks for looking again. I pushed this series without further changes. On Tue, Feb 15, 2011 at 12:22:16PM -0800, Ethan Jackson wrote: > Ohh oops, now that I look at it again I misread the code. My bad. > > Ethan > > > On Tue, Feb 15, 2011 at 12:17 PM, Ben Pfaff wrote: > > On Tue, Feb 15, 20

Re: [ovs-dev] [db-backup 5/5] Avoid unneeded database compaction at startup, and improve backups.

2011-02-15 Thread Ethan Jackson
Ohh oops, now that I look at it again I misread the code. My bad. Ethan On Tue, Feb 15, 2011 at 12:17 PM, Ben Pfaff wrote: > On Tue, Feb 15, 2011 at 11:33:42AM -0800, Ethan Jackson wrote: >> This looks fine to me. However I'm certainty not the worlds best shell >> programmer. >> >> > +        

Re: [ovs-dev] [db-backup 5/5] Avoid unneeded database compaction at startup, and improve backups.

2011-02-15 Thread Ben Pfaff
On Tue, Feb 15, 2011 at 11:33:42AM -0800, Ethan Jackson wrote: > This looks fine to me. However I'm certainty not the worlds best shell > programmer. > > > +        elif test "X`ovsdb-tool needs-conversion $conf_file $schema_file`" > > != Xno; then > > +            # Back up the old version. > >

Re: [ovs-dev] [db-backup 5/5] Avoid unneeded database compaction at startup, and improve backups.

2011-02-15 Thread Ethan Jackson
This looks fine to me. However I'm certainty not the worlds best shell programmer. > +        elif test "X`ovsdb-tool needs-conversion $conf_file $schema_file`" > != Xno; then > +            # Back up the old version. > +            version=`ovsdb-tool db-version "$conf_file"` > +            cksu

Re: [ovs-dev] [db-backup 5/5] Avoid unneeded database compaction at startup, and improve backups.

2011-02-15 Thread Ben Pfaff
On Mon, Feb 14, 2011 at 04:19:42PM -0800, Ethan Jackson wrote: > I think this is fine. However, we could alternatively always use the > db-version and the checksum in the backup file name saving the need to > check if it exists and having the added benefit of consistency. At > any rate, looks goo

Re: [ovs-dev] [db-backup 5/5] Avoid unneeded database compaction at startup, and improve backups.

2011-02-14 Thread Ethan Jackson
> > I tested the xenserver version but not the Debian version. > --- >  debian/openvswitch-switch.init   |   13 - >  xenserver/etc_init.d_openvswitch |   15 --- >  2 files changed, 16 insertions(+), 12 deletions(-) > > diff --git a/debian/openvswitch-switch.init b/debian/ope

Re: [ovs-dev] [db-backup 4/5] ovsdb-tool: New command "needs-conversion".

2011-02-14 Thread Ethan Jackson
Looks Good. On Tue, Feb 8, 2011 at 4:00 PM, Ben Pfaff wrote: > --- >  ovsdb/ovsdb-tool.1.in |    7 +++ >  ovsdb/ovsdb-tool.c    |   15 +++ >  ovsdb/ovsdb.c         |   17 + >  ovsdb/ovsdb.h         |    3 +++ >  tests/ovsdb-tool.at   |   22 ++ >

Re: [ovs-dev] [db-backup 3/5] ovsdb-tool: Add commands for printing the database checksum.

2011-02-14 Thread Ethan Jackson
Looks Good. On Tue, Feb 8, 2011 at 4:00 PM, Ben Pfaff wrote: > --- >  ovsdb/SPECS              |    4 >  ovsdb/ovsdb-tool.1.in    |   31 +++ >  ovsdb/ovsdb-tool.c       |   26 ++ >  ovsdb/ovsdb.c            |   18 -- >  ovsd

Re: [ovs-dev] [db-backup 2/5] ovsdb: New function ovsdb_file_read_schema() for reading schema from db.

2011-02-14 Thread Ethan Jackson
Looks Good. On Tue, Feb 8, 2011 at 4:00 PM, Ben Pfaff wrote: > This new function saves reading the whole database when only the schema is > of interest.  This commit adapts ovsdb-tool to use it for the "db-version" > command.  Upcoming commits will introduce another caller. > --- >  ovsdb/file.c

Re: [ovs-dev] [db-backup 1/5] ovs-vsctl: Improve documentation and --help output.

2011-02-10 Thread Ben Pfaff
On Wed, Feb 09, 2011 at 12:29:12PM -0800, Ethan Jackson wrote: > Looks good. Couple of minor comments. > > > -\fBca\-cert\fR > > +\fica-cert\fR > > ?Specifies a PEM file containing the CA certificate used to verify that > > ?the virtual switch is connected to a trustworthy controller. > > ?.PP >

Re: [ovs-dev] [db-backup 1/5] ovs-vsctl: Improve documentation and --help output.

2011-02-09 Thread Ethan Jackson
Looks good. Couple of minor comments. > -\fBca\-cert\fR > +\fica-cert\fR >  Specifies a PEM file containing the CA certificate used to verify that >  the virtual switch is connected to a trustworthy controller. >  .PP \fi should be \fI here. > -Port commands:\n\ > +Port commands (a bond is con

Re: [ovs-dev] [db-backup 0/5] avoid unneeded db compaction and improve backups

2011-02-08 Thread Ben Pfaff
On Tue, Feb 8, 2011 at 4:02 PM, Ethan Jackson wrote: > I'll review this series unless someone else really wants to. But Justin is so *fond* of the database... -- "I don't normally do acked-by's.  I think it's my way of avoiding getting blamed when it all blows up."               Andrew Morton _

Re: [ovs-dev] [db-backup 0/5] avoid unneeded db compaction and improve backups

2011-02-08 Thread Ethan Jackson
I'll review this series unless someone else really wants to. Ethan On Tue, Feb 8, 2011 at 4:00 PM, Ben Pfaff wrote: > OVSDB has some really nice features for debugging databases, but they > only work when the database doesn't get compacted before the > investigation gets started.  Until now ever

[ovs-dev] [db-backup 3/5] ovsdb-tool: Add commands for printing the database checksum.

2011-02-08 Thread Ben Pfaff
--- ovsdb/SPECS |4 ovsdb/ovsdb-tool.1.in| 31 +++ ovsdb/ovsdb-tool.c | 26 ++ ovsdb/ovsdb.c| 18 -- ovsdb/ovsdb.h|6 -- tests/ovsdb-execution.at |3 ++- te

[ovs-dev] [db-backup 5/5] Avoid unneeded database compaction at startup, and improve backups.

2011-02-08 Thread Ben Pfaff
Until now, Open vSwitch "start" has always converted the database to the current database schema. This compacts the database, which as a side effect throws away useful information about the transactions that were executed to bring the database into its current state. This can make debugging datab

[ovs-dev] [db-backup 2/5] ovsdb: New function ovsdb_file_read_schema() for reading schema from db.

2011-02-08 Thread Ben Pfaff
This new function saves reading the whole database when only the schema is of interest. This commit adapts ovsdb-tool to use it for the "db-version" command. Upcoming commits will introduce another caller. --- ovsdb/file.c | 86 ovsdb/

[ovs-dev] [db-backup 4/5] ovsdb-tool: New command "needs-conversion".

2011-02-08 Thread Ben Pfaff
--- ovsdb/ovsdb-tool.1.in |7 +++ ovsdb/ovsdb-tool.c| 15 +++ ovsdb/ovsdb.c | 17 + ovsdb/ovsdb.h |3 +++ tests/ovsdb-tool.at | 22 ++ 5 files changed, 64 insertions(+), 0 deletions(-) diff --git a/ovsdb/ovsdb

[ovs-dev] [db-backup 0/5] avoid unneeded db compaction and improve backups

2011-02-08 Thread Ben Pfaff
OVSDB has some really nice features for debugging databases, but they only work when the database doesn't get compacted before the investigation gets started. Until now every restart or reboot has compacted the database; this series of patches improves on that. Ben Pfaff (5): ovs-vsctl: Improve

[ovs-dev] [db-backup 1/5] ovs-vsctl: Improve documentation and --help output.

2011-02-08 Thread Ben Pfaff
--- utilities/ovs-vsctl.8.in |8 utilities/ovs-vsctl.c| 17 ++--- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/utilities/ovs-vsctl.8.in b/utilities/ovs-vsctl.8.in index 5e3ab39..cec7159 100644 --- a/utilities/ovs-vsctl.8.in +++ b/utilities/ovs-vsct