ctdb client python bindings

Amitay Isaacs amitay at gmail.com
Thu Apr 28 08:14:07 UTC 2022


Hi Andrew,

On Thu, Apr 28, 2022 at 3:27 AM Andrew Walker via samba-technical
<samba-technical at lists.samba.org> wrote:
>
> Hey all,
>
> I threw together some quick python bindings for a ctdb client. WIP, but any
> feedback would be appreciated (either in-list or direct email to this
> address).
>
> I've currently thrown together
>
> https://gitlab.com/samba-team/devel/samba/-/commits/anodos325-ctdb_python_bindings
>
> below are some basic operations
> * initializing client
> * getting cluster status
> * creating a new persistent ctdb file (if that's your thing)
> * listing current nodes
> * getting pnn0 object and printing its current status

I appreciate the efforts to implement python bindings for ctdb client
interfaces.  However, I fail to understand the motivation behind this
work.  Is there a requirement from some applications to have a python
interface to CTDB?  Or do you have some other plans?

In the past, Martin and I had considered developing python bindings
for client interfaces.  The motivation there was to rewrite the ctdb
tool in python. However, we never got around to doing that.

Without a good motivation for python bindings to ctdb,  I would be
reluctant to add more code to CTDB that needs to be maintained
unnecessarily.

Amitay.



More information about the samba-technical mailing list