[ovs-dev] [PATCH 0/2] Partial cluster support in Python IDL client

nusiddiq at redhat.com nusiddiq at redhat.com
Sun Jul 8 16:02:44 UTC 2018

From: Numan Siddique <nusiddiq at redhat.com>

Python IDL library is lacking the functionality to connect to the
clustered db servers by providing multiple remotes (like -
"tcp:, tcp:, tcp:") in the
connection string.

This patch adds this functionality to the python idl library.
It still lacks the feature to connect to the master of the cluster.
To add this
  - python idl client should monitor and read the '_Server' schema
  - connect to the master of the cluster.

I will submit the patch once that is ready. But for now I think this
is good enough for the clients to connect to the cluster dbs.

Numan Siddique (2):
  ovs python: ovs.stream.open_block() returns success even if the remote
    is unreachable
  python jsonrpc: Allow jsonrpc_session to have more than one remote.

 python/ovs/jsonrpc.py     | 40 ++++++++++++++++-----
 python/ovs/socket_util.py | 34 ++++++++++++++++++
 python/ovs/stream.py      | 18 ++++++++--
 tests/automake.mk         |  1 +
 tests/ovsdb-idl.at        | 75 +++++++++++++++++++++++++++++++++++++++
 tests/test-ovsdb.py       | 22 +++++++++---
 tests/test-stream.py      | 32 +++++++++++++++++
 7 files changed, 207 insertions(+), 15 deletions(-)
 create mode 100644 tests/test-stream.py


More information about the dev mailing list