Re: [ovs-dev] [PATCH] ovn-test: Fix 'test-ovn composition' crash

2016-10-20 Thread Andy Zhou
On Wed, Oct 19, 2016 at 12:58 PM, Ben Pfaff wrote: > On Tue, Oct 11, 2016 at 12:33:22PM -0700, Andy Zhou wrote: > > Without this fix, the added test will core dump. > > > > Signed-off-by: Andy Zhou > > Thanks! > > Acked-by: Ben Pfaff > Thanks for the rev

Re: [ovs-dev] [PATCH 15/15] ovsdb-idl: Check internal graph in OVSDB tests.

2016-10-17 Thread Andy Zhou
r all 15 patches in the series, Acked-by: Andy Zhou ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v3 1/4] ovn: ovn-ctl support for HA ovn DB servers

2016-10-14 Thread Andy Zhou
On Fri, Oct 14, 2016 at 2:52 AM, Babu Shanmugam wrote: > > > On Friday 14 October 2016 04:00 AM, Andy Zhou wrote: > > > > Done. Now it shows the following. > > [root@h2 ovs]# crm configure show >> >> node 1: h1 \ >> >> attributes >> >&

Re: [ovs-dev] [PATCH] stream-ssl: Fix memory leak on error path.

2016-10-14 Thread Andy Zhou
On Fri, Oct 14, 2016 at 11:12 AM, Ben Pfaff wrote: > The commit that this fixes is from 2009. > > Reported-by: Kai-Wei Fan > Fixes: 9467fe624698 ("Add SSL support to "stream" library and OVSDB.") > Signed-off-by: Ben

Re: [ovs-dev] [PATCH v3 1/4] ovn: ovn-ctl support for HA ovn DB servers

2016-10-13 Thread Andy Zhou
On Wed, Oct 12, 2016 at 10:57 PM, Babu Shanmugam wrote: > > > On Thursday 13 October 2016 07:26 AM, Andy Zhou wrote: > > > > On Sun, Oct 9, 2016 at 12:02 AM, Babu Shanmugam > wrote: > >> >> >> On Friday 07 October 2016 05:33 AM, Andy Zhou wrote: >

Re: [ovs-dev] ovn: Improving southbound database security

2016-10-13 Thread Andy Zhou
On Thu, Oct 13, 2016 at 11:26 AM, Ben Pfaff wrote: > On Wed, Oct 12, 2016 at 01:51:39PM -0400, Russell Bryant wrote: > > 1) Add support to ovsdb-server for read-only remotes. The port reachable > > by ovn-controller would only accept read-only connections. > > Andy, is this something that you ca

Re: [ovs-dev] [PATCH v3 1/4] ovn: ovn-ctl support for HA ovn DB servers

2016-10-12 Thread Andy Zhou
On Sun, Oct 9, 2016 at 12:02 AM, Babu Shanmugam wrote: > > > On Friday 07 October 2016 05:33 AM, Andy Zhou wrote: > >> Babu, Thank you for working on this. At a high level, it is not clear >> to me the boundary between ocf scripts and the ovn-ctl script -- i.e. which

Re: [ovs-dev] [PATCH] tests: Get rid of overly specific --pidfile and --unixctl options.

2016-10-12 Thread Andy Zhou
manual intervention. > However, a long time ago we introduced the "on_exit" mechanism that > obsoletes this. This commit eliminates a lot of the old litter of kill > invocations, which also makes those tests easier to read. > > Signed-off-by: Ben Pfaff Acked-by: Andy Zhou

Re: [ovs-dev] [PATCH] tests: Fix double-rebuild of testsuite for "check-valgrind".

2016-10-11 Thread Andy Zhou
her why the race happened, but the change looks good to me. Acked-by: Andy Zhou There are two additional targets that have the similar pattern, wonder if we should change them as well... diff --git a/tests/automake.mk b/tests/automake.mk index f022feb..c170ae7 100644 --- a/tests/automake.

Re: [ovs-dev] [PATCH] lex: Treat formfeeds as white space.

2016-10-11 Thread Andy Zhou
On Fri, Oct 7, 2016 at 10:04 AM, Ben Pfaff wrote: > Also vertical tabs, whatever those are. > > Signed-off-by: Ben Pfaff > Acked-by: Andy Zhou ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH] ovn-test: Fix 'test-ovn composition' crash

2016-10-11 Thread Andy Zhou
Without this fix, the added test will core dump. Signed-off-by: Andy Zhou --- tests/ovn.at | 4 tests/test-ovn.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/ovn.at b/tests/ovn.at index caf9f98..1f65e75 100644 --- a/tests/ovn.at +++ b/tests/ovn.at

Re: [ovs-dev] [PATCH 4/4] expr: Better simplify some special cases of expressions.

2016-10-10 Thread Andy Zhou
On Thu, Oct 6, 2016 at 8:30 PM, Ben Pfaff wrote: > It's pretty unlikely that a human would write expressions like these, but > they can come up in machine-generated expressions and it seems best to > simplify them in an efficient way. > > Signed-off-by: Ben Pfaff &

Re: [ovs-dev] [PATCH 3/4] expr: Improve test so that it would have found the bugs I just fixed.

2016-10-10 Thread Andy Zhou
On Thu, Oct 6, 2016 at 8:30 PM, Ben Pfaff wrote: > The test didn't check for x == 0/0 or x != 0/0 cases, and thus they were > buggy. > > Also, add "expression" as a keyword for tests that only had "expressions" > (plural). > > S

Re: [ovs-dev] [PATCH 2/4] expr: Fix abort when simplifying "x != 0/0".

2016-10-10 Thread Andy Zhou
On Thu, Oct 6, 2016 at 8:30 PM, Ben Pfaff wrote: > The test added by this commit is very specific to the particular problem, > whereas a more general test would be better. A later commit adds the > general test. > > Signed-off-by: Ben Pfaff > A

Re: [ovs-dev] [PATCH 1/4] expr: Simplify "x == 0/0" into 1.

2016-10-10 Thread Andy Zhou
ch/list.h:245: assertion > !ovs_list_is_empty(list) failed in ovs_list_front() > Aborted (core dumped) > > This commit fixes this and related problems. > > The test added by this commit is very specific to the particular problem, > whereas a more general test would be better. A l

Re: [ovs-dev] [PATCH] ovn: Fix "trace" test to wait for synchronization of southbound ports.

2016-10-07 Thread Andy Zhou
On Fri, Oct 7, 2016 at 9:23 AM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff Acked-by: Andy Zhou ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 2/2] ovn-trace: Include source file and line number reference in output.

2016-10-07 Thread Andy Zhou
On Fri, Oct 7, 2016 at 10:02 AM, Ben Pfaff wrote: > This should make it that much easier to track down the code that emitted > a particular flow. > > Signed-off-by: Ben Pfaff > Acked-by: Andy Zhou Also tested in the OVN sandbox.

Re: [ovs-dev] [PATCH 1/2] smap: New macro SMAP_CONST2 for an immutable map of 2 key-value pairs.

2016-10-07 Thread Andy Zhou
On Fri, Oct 7, 2016 at 10:02 AM, Ben Pfaff wrote: > Future commits will add a user. > > Signed-off-by: Ben Pfaff > Acked-by: Andy Zhou This is the first time I encountered a linked-list being built statically. Very cool trick! ___ dev

Re: [ovs-dev] [PATCH v3 1/4] ovn: ovn-ctl support for HA ovn DB servers

2016-10-06 Thread Andy Zhou
Babu, Thank you for working on this. At a high level, it is not clear to me the boundary between ocf scripts and the ovn-ctl script -- i.e. which aspect is managed by which entity. For example, 1) which scripts are responsible for starting the ovsdb servers. 2) Which script should manage the fai

Re: [ovs-dev] [PATCH v3 0/4] High availability support for OVN DB servers using pacemaker

2016-10-05 Thread Andy Zhou
On Tue, Oct 4, 2016 at 1:37 PM, Ben Pfaff wrote: > On Wed, Sep 28, 2016 at 10:00:19AM +0530, bscha...@redhat.com wrote: > > v2 -> v3: > > - Handling few edged cases in the OCF script as suggested by > > Andrew Beekhof > > > > This patch contains changes required to run a pacemaker resou

Re: [ovs-dev] Status on etcd?

2016-10-03 Thread Andy Zhou
On Mon, Oct 3, 2016 at 12:51 PM, Russell Bryant wrote: > > > On Sun, Oct 2, 2016 at 3:34 AM, Frederick Kautz wrote: > >> I recall hearing that someone was adding etcd v3 support to OVN. Does >> anyone have any info on whether this is still happening? >> > >

Re: [ovs-dev] [PATCH] OVSDB: Fix segfalut during replication.

2016-09-27 Thread Andy Zhou
On Mon, Sep 26, 2016 at 8:30 PM, Ben Pfaff wrote: > On Tue, Sep 20, 2016 at 01:27:08PM -0700, Andy Zhou wrote: > > The newly added replication logic makes it possible for a monitor to > > receive delete and insertion of the same row back to back, which > > was not possible b

Re: [ovs-dev] [PATCH] ovsdb: Fix memory leak when disposing 'replication_dbs'

2016-09-27 Thread Andy Zhou
On Mon, Sep 26, 2016 at 8:32 PM, Ben Pfaff wrote: > On Tue, Sep 20, 2016 at 05:49:47PM -0700, Andy Zhou wrote: > > Found by inspection. > > > > The 'replication_dbs' structure was not freed after use. > > Fix by adding a new function replication_dbs_destr

[ovs-dev] [PATCH] ovsdb: Fix memory leak when disposing 'replication_dbs'

2016-09-20 Thread Andy Zhou
Found by inspection. The 'replication_dbs' structure was not freed after use. Fix by adding a new function replication_dbs_destroy(). Also remove unnecessary global pointer variables initializer. Signed-off-by: Andy Zhou --- ovsdb/replication.c | 21 ++--- 1 file c

Re: [ovs-dev] [PATCH] OVSDB: Fix segfalut during replication.

2016-09-20 Thread Andy Zhou
On Tue, Sep 20, 2016 at 4:39 PM, Joe Stringer wrote: > On 20 September 2016 at 13:27, Andy Zhou wrote: > > The newly added replication logic makes it possible for a monitor to > > receive delete and insertion of the same row back to back, which > > was not possible b

[ovs-dev] [PATCH] OVSDB: Fix segfalut during replication.

2016-09-20 Thread Andy Zhou
://openvswitch.org/pipermail/dev/2016-September/079315.html Reported-by: Alin Serdean Reported-at: http://openvswitch.org/pipermail/dev/2016-September/079586.html Co-authored-by: Joe Stringer Signed-off-by: Andy Zhou --- ovsdb/monitor.c | 41 - 1 file

Re: [ovs-dev] [PATCH] replication: Be more careful about JSON parsing and simplify code.

2016-09-11 Thread Andy Zhou
ut this new implementation > leaves me more confident due to its simplicity. > > Reported-by: Joe Stringer > Reported-at: http://openvswitch.org/pipermail/dev/2016-September/ > 079315.html > Fixes: 60e0cd041958 ("ovsdb: Replication usability improvements") > Sign

Re: [ovs-dev] [PATCH] ovsdb-server: Fix memory leak in ovsdb_server_get_sync_exclude_tables().

2016-09-09 Thread Andy Zhou
void *arg_ OVS_UNUSED) > { > -unixctl_command_reply(conn, get_blacklist_tables()); > +char *reply = get_blacklist_tables(); > +unixctl_command_reply(conn, reply); > +free(reply); > } >

Re: [ovs-dev] [PATCH v2] ovsdb-server: Add ovsdb-server/is-backup-server command in unixctl

2016-09-03 Thread Andy Zhou
On Fri, Aug 19, 2016 at 9:32 AM, Numan Siddique wrote: > This command will be useful to query if the ovsdb-server > instance is active or backup. > > Signed-off-by: Numan Siddique > --- > ovsdb/ovsdb-server.1.in | 4 > ovsdb/ovsdb-server.c| 17 + > tests/ovsdb-server.a

Re: [ovs-dev] [v3] ovsdb: Replication usability improvements

2016-09-03 Thread Andy Zhou
On Fri, Sep 2, 2016 at 1:55 PM, Ben Pfaff wrote: > On Wed, Aug 31, 2016 at 07:32:41PM -0700, Andy Zhou wrote: > > Added the '--no-sync' option base on feedbacks of current > > implementation. > > > > Added appctl command "ovsdb-server/sync-status" b

Re: [ovs-dev] [replication SMv2 7/7] ovsdb: Replication usability improvements

2016-09-01 Thread Andy Zhou
> > I tested the v3 version pulling from your github, and I am not seeing an >> crashes. >> > > > Thanks for testing. I added your name to tested-by in the V3 patch. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [v3] ovsdb: Replication usability improvements

2016-08-31 Thread Andy Zhou
state variable is updated from replication_run(). Added a test to simulate the integration of HA manager with OVSDB server using replication. Other documentation and API improvements. Tested-by: Numan Siddique Signed-off-by: Andy Zhou --- Documentation/OVSDB-replication.md | 2 +- ovsdb/json

Re: [ovs-dev] [replication SMv2 6/7] OVSDB: Reimplement replication. Using a state machine.

2016-08-31 Thread Andy Zhou
On Tue, Aug 30, 2016 at 2:35 PM, Ben Pfaff wrote: > On Fri, Aug 26, 2016 at 04:15:53PM -0700, Andy Zhou wrote: > > Current replication uses blocking transactions, which are error prone > > in practice, especially in handling RPC connection flapping to the > > active server.

Re: [ovs-dev] [PATCH] ovn: ovn-ctl support to start ovn db servers in standby mode

2016-08-30 Thread Andy Zhou
On Thu, Aug 25, 2016 at 6:48 AM, wrote: > This patch adds support to start_ovsdb() function in ovn-ctl to start the > ovn db servers in standby mode. This can be done in the following ways > 1. Use parameters --ovn-nb-sync-from-addr and --ovn-sb-sync-from-addr to >set the addresses of the mas

Re: [ovs-dev] [replication SMv2 7/7] ovsdb: Replication usability improvements

2016-08-30 Thread Andy Zhou
On Tue, Aug 30, 2016 at 4:17 AM, Numan Siddique wrote: > > > On Tue, Aug 30, 2016 at 1:11 AM, Andy Zhou wrote: > >> >> >> On Mon, Aug 29, 2016 at 3:14 AM, Numan Siddique >> wrote: >> >>> >>> >>> On Sat, Aug 27, 2016 at 4:4

Re: [ovs-dev] [replication SMv2 7/7] ovsdb: Replication usability improvements

2016-08-29 Thread Andy Zhou
On Mon, Aug 29, 2016 at 3:14 AM, Numan Siddique wrote: > > > On Sat, Aug 27, 2016 at 4:45 AM, Andy Zhou wrote: > >> Added the '--no-sync' option base on feedbacks of current >> implementation. >> >> Added appctl command "ovsdb-server/sync-stat

Re: [ovs-dev] [Replication SM 0/7] Replication SM

2016-08-26 Thread Andy Zhou
On Thu, Aug 25, 2016 at 10:38 PM, Numan Siddique wrote: > > > On Thu, Aug 25, 2016 at 5:37 AM, Andy Zhou wrote: > >> The main purpose of this series patch 6 (OVSDB: Reimplement >> replication. Using a state machine). Patch 7 includes >> a few replication usabil

[ovs-dev] [replication SMv2 7/7] ovsdb: Replication usability improvements

2016-08-26 Thread Andy Zhou
ocumentation and API improvements. Signed-off-by: Andy Zhou -- I hope to get some review comments on the command line and appctl interfaces for replication. Since 2.6 is the first release of those interfaces, it is easier to making changes, compare to future releases. v1->v2: Fix cre

[ovs-dev] [replication SMv2 6/7] OVSDB: Reimplement replication. Using a state machine.

2016-08-26 Thread Andy Zhou
Current replication uses blocking transactions, which are error prone in practice, especially in handling RPC connection flapping to the active server. Signed-off-by: Andy Zhou --- ovsdb/ovsdb-server.c | 17 +- ovsdb/replication.c | 608

[ovs-dev] [replication SMv2 1/7] ovsdb: Properly handle error returned from from reset_database()

2016-08-26 Thread Andy Zhou
Fix a memory leak in case of error. The error object was not properly disposed. Since the error to reset DB is not expected, log it and exit. Signed-off-by: Andy Zhou --- ovsdb/replication.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ovsdb/replication.c b

[ovs-dev] [replication SMv2 4/7] ovsdb: (Re)hide struct db in ovsdb-server.c

2016-08-26 Thread Andy Zhou
It seems odd that the currently replication implementation moves the struct db from ovsdb-server.c (file private) to replication.h (global). This patch moves the 'struct db' defintion back into ovsdb-server.c, Signed-off-by: Andy Zhou --- ovsdb/ovsdb-serv

[ovs-dev] [replication SMv2 0/7] replication SMv2

2016-08-26 Thread Andy Zhou
591.html Only the last patch (7) is changed from v1->v2 Andy Zhou (7): ovsdb: Properly handle error returned from from reset_database() ovsdb: Add blacklist_tables ovsdb: Add request_ids ovsdb: (Re)hide struct db in ovsdb-server.c test: Improve replication unit tests OVSDB: Reimp

[ovs-dev] [replication SMv2 5/7] test: Improve replication unit tests

2016-08-26 Thread Andy Zhou
Replication test currently uses many sleeps that slowes the test down and may not be reliable. Remove those sleeps when possible. OVSDB servers needs to be killed on test failure. Use on_exit() to ensure cleanup happens, so they don't have to be handled for each testing step. Signed-off-by:

[ovs-dev] [replication SMv2 3/7] ovsdb: Add request_ids

2016-08-26 Thread Andy Zhou
re patches will make use of this facility. Signed-off-by: Andy Zhou --- ovsdb/replication.c | 84 ++--- 1 file changed, 80 insertions(+), 4 deletions(-) diff --git a/ovsdb/replication.c b/ovsdb/replication.c index ebd348c..815730d 100644 -

[ovs-dev] [replication SMv2 2/7] ovsdb: Add blacklist_tables

2016-08-26 Thread Andy Zhou
yrun' option to set_blacklist_tables() API to make this feature available to the command line option parsing and unixctl command parsing. Signed-off-by: Andy Zhou --- ovsdb/ovsdb-server.c | 47 ovsdb/replication.c | 153 +-

[ovs-dev] [Replication SM 4/7] ovsdb: (Re)hide struct db in ovsdb-server.c

2016-08-24 Thread Andy Zhou
It seems odd that the currently replication implementation moves the struct db from ovsdb-server.c (file private) to replication.h (global). This patch moves the 'struct db' defintion back into ovsdb-server.c, Signed-off-by: Andy Zhou --- ovsdb/ovsdb-serv

[ovs-dev] [Replication SM 7/7] ovsdb: Replication usability improvements

2016-08-24 Thread Andy Zhou
ocumentation and API improvements. Signed-off-by: Andy Zhou -- I hope to get some review comments on the command line and appctl interfaces for replication. Since 2.6 is the first release of those interfaces, it is easier to making changes, compare to future releases. --- Documentation/OVSDB-

[ovs-dev] [Replication SM 2/7] ovsdb: Add blacklist_tables

2016-08-24 Thread Andy Zhou
yrun' option to set_blacklist_tables() API to make this feature available to the command line option parsing and unixctl command parsing. Signed-off-by: Andy Zhou --- ovsdb/ovsdb-server.c | 47 ovsdb/replication.c | 153 +-

[ovs-dev] [Replication SM 0/7] Replication SM

2016-08-24 Thread Andy Zhou
The main purpose of this series patch 6 (OVSDB: Reimplement replication. Using a state machine). Patch 7 includes a few replication usability enhancements that has been requested on the mailing list. Andy Zhou (7): ovsdb: Properly handle error returned from from reset_database() ovsdb: Add

[ovs-dev] [Replication SM 5/7] test: Improve replication unit tests

2016-08-24 Thread Andy Zhou
Replication test currently uses many sleeps that slowes the test down and may not be reliable. Remove those sleeps when possible. OVSDB servers needs to be killed on test failure. Use on_exit() to ensure cleanup happens, so they don't have to be handled for each testing step. Signed-off-by:

[ovs-dev] [Replication SM 6/7] OVSDB: Reimplement replication. Using a state machine.

2016-08-24 Thread Andy Zhou
Current replication uses blocking transactions, which are error prone in practice, especially in handling RPC connection flapping to the active server. Signed-off-by: Andy Zhou --- ovsdb/ovsdb-server.c | 17 +- ovsdb/replication.c | 608

[ovs-dev] [Replication SM 3/7] ovsdb: Add request_ids

2016-08-24 Thread Andy Zhou
re patches will make use of this facility. Signed-off-by: Andy Zhou --- ovsdb/replication.c | 84 ++--- 1 file changed, 80 insertions(+), 4 deletions(-) diff --git a/ovsdb/replication.c b/ovsdb/replication.c index ebd348c..815730d 100644 -

[ovs-dev] [Replication SM 1/7] ovsdb: Properly handle error returned from from reset_database()

2016-08-24 Thread Andy Zhou
Fix a memory leak in case of error. The error object was not properly disposed. Since the error to reset DB is not expected, log it and exit. Signed-off-by: Andy Zhou --- ovsdb/replication.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ovsdb/replication.c b

Re: [ovs-dev] ovsdb active backup deployment

2016-08-19 Thread Andy Zhou
On Fri, Aug 19, 2016 at 11:48 AM, Numan Siddique wrote: > > > On Wed, Aug 17, 2016 at 11:24 PM, Andy Zhou wrote: > >> >> >> On Wed, Aug 17, 2016 at 8:30 AM, Numan Siddique >> wrote: >> >>> ​Hi Andy, >>> I have started working on int

Re: [ovs-dev] [PATCH] pinctrl: Fix memory leak for NAT IPs in send_garp_run().

2016-08-19 Thread Andy Zhou
t; > CC: Chandra S Vejendla > > Reported-by: Ramu Ramamurthy > > Fixes: 8439c2ebd823 ("ovn: Support for GARP for NAT IPs via localnet") > > Signed-off-by: Ben Pfaff > Acked-by: Andy Zhou > > ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] ovsdb active backup deployment

2016-08-19 Thread Andy Zhou
On Fri, Aug 19, 2016 at 1:40 AM, Valentine Sinitsyn < valentine.sinit...@gmail.com> wrote: > On 19.08.2016 02:44, Andy Zhou wrote: > >> >> >> On Thu, Aug 18, 2016 at 1:41 PM, Valentine Sinitsyn >> mailto:valentine.sinit...@gmail.com>> >> wrote

Re: [ovs-dev] ovsdb active backup deployment

2016-08-18 Thread Andy Zhou
On Thu, Aug 18, 2016 at 1:41 PM, Valentine Sinitsyn < valentine.sinit...@gmail.com> wrote: > On 18.08.2016 23:49, Andy Zhou wrote: > >> >> >> On Thu, Aug 18, 2016 at 8:34 AM, Valentine Sinitsyn >> mailto:valentine.sinit...@gmail.com>> >> wrote: >

Re: [ovs-dev] ovsdb active backup deployment

2016-08-18 Thread Andy Zhou
On Thu, Aug 18, 2016 at 8:34 AM, Valentine Sinitsyn < valentine.sinit...@gmail.com> wrote: > On 18.08.2016 17:42, Russell Bryant wrote: > >> >> On Thu, Aug 18, 2016 at 2:30 AM, Valentine Sinitsyn >> mailto:valentine.sinit...@gmail.com>> >> wrote: >> >> Hi everyone, >> >> Russel

Re: [ovs-dev] ovsdb active backup deployment

2016-08-17 Thread Andy Zhou
On Wed, Aug 17, 2016 at 8:30 AM, Numan Siddique wrote: > ​Hi Andy, > I have started working on integrating ovsdb-server HA support with > pacemaker (via OCF heartbeat, i.e ocf:heartbeat). > Thanks for working on it. > > Few comments below. > > > >> >> >>> Thanks for helping out. >> >>> >> >>> G

Re: [ovs-dev] [PATCH] sandbox: launch SB backup server when running in OVN mode

2016-08-15 Thread Andy Zhou
On Mon, Aug 15, 2016 at 1:50 PM, Russell Bryant wrote: > > > On Mon, Aug 15, 2016 at 4:45 PM, Andy Zhou wrote: > >> >> >> On Mon, Aug 15, 2016 at 1:36 PM, Russell Bryant wrote: >> >>> >>> >>> On Mon, Aug 15, 2016 at 2:54 PM, Andy

Re: [ovs-dev] [PATCH] sandbox: launch SB backup server when running in OVN mode

2016-08-15 Thread Andy Zhou
On Mon, Aug 15, 2016 at 1:36 PM, Russell Bryant wrote: > > > On Mon, Aug 15, 2016 at 2:54 PM, Andy Zhou wrote: > >> >> >> On Thu, Aug 11, 2016 at 1:22 PM, Russell Bryant wrote: >> >>> >>> >>> On Tue, Aug 9, 2016 at 7:49 PM, Andy Z

Re: [ovs-dev] [PATCH] ovsdb-idl: Fix double-remove in ovsdb_idl_condition_reset().

2016-08-15 Thread Andy Zhou
On Sat, Aug 13, 2016 at 5:37 PM, Ben Pfaff wrote: > Both ovsdb_idl_condition_reset() and ovsdb_idl_clause_free() call > ovs_list_remove() on the clause's 'node' member, but it should only be > called once. > > Signed-off-by: Ben

Re: [ovs-dev] [PATCH] sandbox: launch SB backup server when running in OVN mode

2016-08-15 Thread Andy Zhou
On Thu, Aug 11, 2016 at 1:22 PM, Russell Bryant wrote: > > > On Tue, Aug 9, 2016 at 7:49 PM, Andy Zhou wrote: > >> Automatically launch backup server for OVN SB database that replicates >> all transactions of the active server. This can be handy for >> expe

Re: [ovs-dev] [PATCH 4/4] ovsdb: Make OVSDB backup sever read only

2016-08-15 Thread Andy Zhou
On Sat, Aug 13, 2016 at 10:23 PM, Ben Pfaff wrote: > On Wed, Aug 03, 2016 at 04:57:05PM -0700, Andy Zhou wrote: > > When ovsdb-sever is running in the backup state, it would be nice to > > make sure there is no un-intended changes to the backup database. > > > > This p

Re: [ovs-dev] [PATCH 3/4] ovsdb: Fix bug, set rpc to NULL after freeing.

2016-08-14 Thread Andy Zhou
On Sat, Aug 13, 2016 at 10:14 PM, Ben Pfaff wrote: > On Wed, Aug 03, 2016 at 04:57:04PM -0700, Andy Zhou wrote: > > Found by inspection > > > > Signed-off-by: Andy Zhou > > It's not obvious from the context that this can cause a problem, but I > think it&#x

Re: [ovs-dev] [v2] ovs-vsctl: simply vsctl_parent_process_info()

2016-08-10 Thread Andy Zhou
On Wed, Aug 10, 2016 at 9:51 AM, Ben Pfaff wrote: > On Tue, Aug 09, 2016 at 12:50:31PM -0700, Andy Zhou wrote: > > Use ds_get_line() instead of hand rolling it. Rearrange the logic > > to removes some duplication. > > > > Signed-off-by: Andy Zhou > > >

[ovs-dev] [PATCH] sandbox: launch SB backup server when running in OVN mode

2016-08-09 Thread Andy Zhou
Automatically launch backup server for OVN SB database that replicates all transactions of the active server. This can be handy for experimenting with the newly added replication feature. Signed-off-by: Andy Zhou --- tutorial/ovs-sandbox | 15 +++ 1 file changed, 15 insertions

[ovs-dev] [v2] ovs-vsctl: simply vsctl_parent_process_info()

2016-08-09 Thread Andy Zhou
Use ds_get_line() instead of hand rolling it. Rearrange the logic to removes some duplication. Signed-off-by: Andy Zhou --- v1->v2: rebase to current master. --- utilities/ovs-vsctl.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/utilities/ovs-vsctl.

Re: [ovs-dev] [PATCH] ovs-vsctl: Change log level of vsctl_parent_process_info

2016-08-08 Thread Andy Zhou
option. > > [1] https://github.com/openvswitch/ovn-scale-test > [2] https://github.com/openvswitch/ovn-scale-test/ > blob/master/rally_ovs/plugins/ovs/scenarios/ovn.py#L255 > > Signed-off-by: Kyle Mestery > > Thanks for the v2. Acked-by: Andy Zhou Since one aspect of

Re: [ovs-dev] [ovs-dev, 3/4] ovsdb: Fix bug, set rpc to NULL after freeing.

2016-08-05 Thread Andy Zhou
On Fri, Aug 5, 2016 at 9:08 AM, Daniel Levy wrote: > Tested this and it works, however it needs a rebase. > The rebase may be caused by patches ahead of this one in the series. Thanks for testing and reporting. > > -- > Sincerely, > Daniel Levy > ___

Re: [ovs-dev] [PATCH 3/3] check-kernel: Remove '-d' from TESTSUITEFLAGS.

2016-08-05 Thread Andy Zhou
xplicitly. This is > more in line with other test make target ('check', > 'check-system-userspace'). > > CC: Andy Zhou > Signed-off-by: Daniele Di Proietto > --- > tests/automake.mk | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > d

Re: [ovs-dev] ovsdb active backup deployment

2016-08-04 Thread Andy Zhou
On Thu, Aug 4, 2016 at 11:14 PM, Russell Bryant wrote: > > > On Thu, Aug 4, 2016 at 8:17 PM, Andy Zhou wrote: > >> >> On Wed, Jul 27, 2016 at 1:04 PM, Andy Zhou wrote: >> >>> >>> >>> On Tue, Jul 26, 2016 at 6:20 PM, Russell Bryant

Re: [ovs-dev] ovsdb active backup deployment

2016-08-04 Thread Andy Zhou
On Wed, Jul 27, 2016 at 1:04 PM, Andy Zhou wrote: > > > On Tue, Jul 26, 2016 at 6:20 PM, Russell Bryant wrote: > >> >> >> On Tue, Jul 26, 2016 at 3:48 PM, Andy Zhou wrote: >> >>> >>> >>> On Tue, Jul 26, 2016 at 11:59 AM, Russell

Re: [ovs-dev] [PATCH] ovs-vsctl: Change log level of vsctl_parent_process_info

2016-08-04 Thread Andy Zhou
On Thu, Aug 4, 2016 at 11:39 AM, Kyle Mestery wrote: > On Thu, Aug 4, 2016 at 12:56 PM, Andy Zhou wrote: > > > > > > On Thu, Aug 4, 2016 at 6:54 AM, Kyle Mestery > wrote: > >> > >> While running the ovn-scale-test [1] port-binding tests [2], I notice a

[ovs-dev] [PATCH] ovs-vsctl: simply vsctl_parent_process_info()

2016-08-04 Thread Andy Zhou
Use ds_get_line() instead of hand rolling it. Rearrange the logic to removes some duplication. Signed-off-by: Andy Zhou --- utilities/ovs-vsctl.c | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/utilities/ovs-vsctl.c b/utilities/ovs-vsctl.c index

Re: [ovs-dev] [PATCH] ovs-vsctl: Change log level of vsctl_parent_process_info

2016-08-04 Thread Andy Zhou
On Thu, Aug 4, 2016 at 6:54 AM, Kyle Mestery wrote: > While running the ovn-scale-test [1] port-binding tests [2], I notice a > continual stream of messages such as this: > > 2016-08-04 13:05:28.705 547 INFO rally_ovs.plugins.ovs.scenarios.ovn [-] > bind lport_0996bf_cikzNO to sandbox-172.16.200.

[ovs-dev] [PATCH 1/4] ovsdb: Rename replication related variable names.

2016-08-03 Thread Andy Zhou
-sync-from option. Signed-off-by: Andy Zhou --- ovsdb/ovsdb-server.1.in | 18 +++ ovsdb/ovsdb-server.c| 58 - ovsdb/replication.c | 34 ++--- ovsdb/replication.h | 8 +++ tests/ovsdb-server

[ovs-dev] [PATCH 2/4] ovsdb: add replication wait

2016-08-03 Thread Andy Zhou
Pollblock requires the run() function to be paired with a wait() function. Add one for replication. Signed-off-by: Andy Zhou --- ovsdb/ovsdb-server.c | 3 +++ ovsdb/replication.c | 8 ovsdb/replication.h | 1 + 3 files changed, 12 insertions(+) diff --git a/ovsdb/ovsdb-server.c b

[ovs-dev] [PATCH 4/4] ovsdb: Make OVSDB backup sever read only

2016-08-03 Thread Andy Zhou
ing client connections will be reset. After reconnect, all clinet transactions will then be accepted. Signed-off-by: Andy Zhou --- manpages.mk | 2 ++ ovsdb/active-backup.man | 14 ++ ovsdb/automake.mk| 1 + ovsdb/execution.c

[ovs-dev] [PATCH 3/4] ovsdb: Fix bug, set rpc to NULL after freeing.

2016-08-03 Thread Andy Zhou
Found by inspection Signed-off-by: Andy Zhou --- ovsdb/replication.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ovsdb/replication.c b/ovsdb/replication.c index 19626a5..de6eec1 100644 --- a/ovsdb/replication.c +++ b/ovsdb/replication.c @@ -150,6 +150,7 @@ void

Re: [ovs-dev] Replication feature bug

2016-08-02 Thread Andy Zhou
On Mon, Aug 1, 2016 at 2:44 PM, Andy Zhou wrote: > > > On Mon, Aug 1, 2016 at 10:07 AM, Cabrera Vega, Mario Alberto < > mario.cabr...@hpe.com> wrote: > >> Hi, >> >> The replication_init() function initializes the set that contains the >> names of t

Re: [ovs-dev] [PATCH] ovsdb: Fix memory leak in execute_update.

2016-08-02 Thread Andy Zhou
On Mon, Aug 1, 2016 at 10:08 AM, William Tu wrote: > Thanks, I've submitted v2 which removes the 'const'. > LGTM. Pushed to master. Thanks for working on this. > > ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] ovsdb: Fix OVSDB disconnect replication bug

2016-08-01 Thread Andy Zhou
On Mon, Aug 1, 2016 at 5:00 PM, Andy Zhou wrote: > > > On Mon, Aug 1, 2016 at 2:41 PM, Andy Zhou wrote: > >> From: Mario Cabrera >> >> Currently disconnecting from the replicator server means closing the >> jsonrpc >> connection and destroying the m

Re: [ovs-dev] [PATCH] ovsdb: Fix OVSDB disconnect replication bug

2016-08-01 Thread Andy Zhou
On Mon, Aug 1, 2016 at 2:41 PM, Andy Zhou wrote: > From: Mario Cabrera > > Currently disconnecting from the replicator server means closing the > jsonrpc > connection and destroying the monitored table names and blacklisted table > names. > > This patch makes a distiti

Re: [ovs-dev] Replication feature bug

2016-08-01 Thread Andy Zhou
On Mon, Aug 1, 2016 at 10:07 AM, Cabrera Vega, Mario Alberto < mario.cabr...@hpe.com> wrote: > Hi, > > The replication_init() function initializes the set that contains the > names of the > tables to be monitored and the set that contains the names of the tables > to be > excluded from replication

[ovs-dev] [PATCH] ovsdb: Fix OVSDB disconnect replication bug

2016-08-01 Thread Andy Zhou
From: Mario Cabrera Currently disconnecting from the replicator server means closing the jsonrpc connection and destroying the monitored table names and blacklisted table names. This patch makes a distition between disconnecting from the remote server, applicable when the replication incurs in a

Re: [ovs-dev] [PATCH] travis: Fix flake8 failures from flake8 3.0.

2016-07-29 Thread Andy Zhou
On Fri, Jul 29, 2016 at 12:18 PM, Russell Bryant wrote: > The "hacking" plugin for flake8 is not currently compatible with flake8 > 3.0. Ensure that we install flake8 2.x on travis-ci. Also update the > docs to indicate this incompatibility. > > Signed-off-by: Russell

Re: [ovs-dev] [PATCH 2/3] ovsdb: Fix memory leak in replication logic

2016-07-27 Thread Andy Zhou
On Wed, Jul 27, 2016 at 12:48 PM, Andy Zhou wrote: > > > On Wed, Jul 27, 2016 at 12:43 PM, Ben Pfaff wrote: > >> On Tue, Jul 26, 2016 at 01:08:06PM -0700, Andy Zhou wrote: >> > Release the memory of reply message of the initial "monitor" request. >>

Re: [ovs-dev] [PATCH] ovsdb: Fix memory leak in execute_update.

2016-07-27 Thread Andy Zhou
it removed the memory leak reported. I think declare 'where' as 'struct json' instead of 'const struct json' will make the code easier to read. Acked-by: Andy Zhou > ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] ovsdb active backup deployment

2016-07-27 Thread Andy Zhou
On Tue, Jul 26, 2016 at 6:20 PM, Russell Bryant wrote: > > > On Tue, Jul 26, 2016 at 3:48 PM, Andy Zhou wrote: > >> >> >> On Tue, Jul 26, 2016 at 11:59 AM, Russell Bryant wrote: >> >>> >>> >>> On Tue, Jul 26, 2016 at 2:41 PM, Andy

Re: [ovs-dev] [PATCH 2/3] ovsdb: Fix memory leak in replication logic

2016-07-27 Thread Andy Zhou
On Wed, Jul 27, 2016 at 12:43 PM, Ben Pfaff wrote: > On Tue, Jul 26, 2016 at 01:08:06PM -0700, Andy Zhou wrote: > > Release the memory of reply message of the initial "monitor" request. > > > > Reported-at: http://openvswitch.org/pipermail/dev/2016-July/076075.ht

Re: [ovs-dev] [PATCH 1/3] ovsdb: Properly close replication rpc connection

2016-07-27 Thread Andy Zhou
zes to 0. > Right, I will drop the NULL initializations. > > Acked-by: William Tu > Thanks for the review. I will push to master in a minute. > > On Tue, Jul 26, 2016 at 1:08 PM, Andy Zhou wrote: > > This patch removes rpc related memory leak reported below. > > >

[ovs-dev] [PATCH 3/3] test: Replication tests uses unix domain socket

2016-07-26 Thread Andy Zhou
Fix replication test titles to fit changes committed by 63b35ecc06cbd16bc0e93d1e26021d81c413a485. Signed-off-by: Andy Zhou --- tests/ovsdb-server.at | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ovsdb-server.at b/tests/ovsdb-server.at index e70498d..6c10164 100644

[ovs-dev] [PATCH 2/3] ovsdb: Fix memory leak in replication logic

2016-07-26 Thread Andy Zhou
Release the memory of reply message of the initial "monitor" request. Reported-at: http://openvswitch.org/pipermail/dev/2016-July/076075.html Signed-off-by: Andy Zhou --- ovsdb/replication.c | 4 1 file changed, 4 insertions(+) diff --git a/ovsdb/replication.c b/ovsdb/replicati

[ovs-dev] [PATCH 1/3] ovsdb: Properly close replication rpc connection

2016-07-26 Thread Andy Zhou
This patch removes rpc related memory leak reported below. Reported-at: http://openvswitch.org/pipermail/dev/2016-July/076075.html Signed-off-by: Andy Zhou --- ovsdb/ovsdb-server.c | 1 + ovsdb/replication.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ovsdb/ovsdb

Re: [ovs-dev] ovsdb active backup deployment

2016-07-26 Thread Andy Zhou
On Tue, Jul 26, 2016 at 11:59 AM, Russell Bryant wrote: > > > On Tue, Jul 26, 2016 at 2:41 PM, Andy Zhou wrote: > >> >> >> On Tue, Jul 26, 2016 at 5:37 AM, Russell Bryant wrote: >> >>> >>> >>> On Mon, Jul 25, 2016 at 8:15 PM, Andy

Re: [ovs-dev] ovsdb active backup deployment

2016-07-26 Thread Andy Zhou
On Tue, Jul 26, 2016 at 5:37 AM, Russell Bryant wrote: > > > On Mon, Jul 25, 2016 at 8:15 PM, Andy Zhou wrote: > >> Hi, Rayn and Russell, >> > > Can we move this discussion to the ovs dev mailing list? Feel free to > just add it in a reply if you'd like.

Re: [ovs-dev] OVSDB replication related memory leak

2016-07-25 Thread Andy Zhou
On Mon, Jul 25, 2016 at 8:26 AM, William Tu wrote: > Hi, > > Valgrind reports definitely memory leak in the testcase > 1826: ovsdb-server.at:1081 insert monitored table, update excluded > table > Can someone take at look? Thank you~ > > ==52969== 144 (48 direct, 96 indirect) bytes in 1 blocks

Re: [ovs-dev] [v2] test: change replication test to use unix domain socket

2016-07-23 Thread Andy Zhou
On Fri, Jul 22, 2016 at 5:02 PM, Ben Pfaff wrote: > On Fri, Jul 22, 2016 at 04:37:52PM -0700, Andy Zhou wrote: > > The ovsdb replication feature is not specific to the ovsdb socket types. > > Switching the tests to use Unix domain socket simplifies the tests. > > > &g

[ovs-dev] [v2] test: change replication test to use unix domain socket

2016-07-22 Thread Andy Zhou
The ovsdb replication feature is not specific to the ovsdb socket types. Switching the tests to use Unix domain socket simplifies the tests. Signed-off-by: Andy Zhou --- tests/ovsdb-server.at | 70 ++- 1 file changed, 30 insertions(+), 40

  1   2   3   4   5   6   7   8   9   10   >