[ovs-discuss] Python: connect to leader in cluster

Ted Elhourani ted.elhourani at nutanix.com
Wed Dec 26 21:24:29 UTC 2018


Numan,

I submitted a python idl patch for the leader-only option.

https://mail.openvswitch.org/pipermail/ovs-dev/2018-December/354605.html

The code that implements the state machine of the IDL can be simplified.  As a first step toward enhancing the implementation, I have only extended the current implementation with the leader-only selection of a cluster node, I haven’t made changes to the existing code or the way it is implemented.

Thanks,
Ted

From: Ted Elhourani <ted.elhourani at nutanix.com>
Date: Tuesday, October 16, 2018 at 11:15 AM
To: Numan Siddique <nusiddiq at redhat.com>
Cc: ovs-discuss <ovs-discuss at openvswitch.org>
Subject: Re: Python: connect to leader in cluster

Hi Numan,

Thanks for letting me know.

Ted

From: Numan Siddique <nusiddiq at redhat.com>
Date: Tuesday, October 16, 2018 at 11:03 AM
To: Ted Elhourani <ted.elhourani at nutanix.com>
Cc: ovs-discuss <ovs-discuss at openvswitch.org>
Subject: Re: Python: connect to leader in cluster


On Tue, Oct 16, 2018 at 4:25 AM Ted Elhourani <ted.elhourani at nutanix.com<mailto:ted.elhourani at nutanix.com>> wrote:
Hi Numan,
There was an earlier patch to allow the Python IDL to connect to one of multiple remotes.
Is an upcoming patch imminent to give the Python IDL the option to connect only to (or become active only when) the leader in an HA cluster?
Thanks,
Ted

Hi Ted,

Yes. We do need a patch in python idl for the option to connect only to the leader. I may not be able to work on this at the moment.
Please feel free if you want to contribute to it.

Thanks
Numan


From: Numan Siddique <nusiddiq at redhat.com<mailto:nusiddiq at redhat.com>>

Python IDL implementation doesn't have the support to connect to the
cluster dbs. This patch adds this support. We are still missing the
support in python idl class to connect to the cluster master. That
support will be added in an upcoming patch.

This patch is similar to the commit 8cf6bbb184 which added multiple remote
support in the C jsonrpc implementation.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20181226/f4719399/attachment.html>


More information about the discuss mailing list