[Linux-ha-dev] Pure Python version of haclient ?
Xinwei Hu
hxinwei at gmail.com
Mon Jun 11 20:03:43 MDT 2007
> On 2007-06-12T03:33:33, Xinwei Hu <hxinwei at gmail.com> wrote:
> > Hi all,
> >
> > I'm trying to run haclient on the Windows platform. The biggest
> > difficulty is to port the C code of lib/mgmt to mingw/cygwin platform.
> >
> > A much eaiser step, which I take now, is to rewrite the client part of
> > lib/mgmt in pure python (ctypes + gnutls binding). The windows version of
> > haclient now works with minimum modification (popen(uuidgen) is replaced
> > with uuid.uuid4()). :)
> >
> > As this change will impose some extra dependencies on python and python
> > libraries, I'd like to know your comments on this :)
> >
> > The source code is under cleaning up, I'll send it out soon.
>
> SWIG should be able to help you quite a bit there.
> Further, Andrew has a gnutls based interface directly to the CIB, just
> in case you want to do away with the mgmtd stuff ;-)
Here attached the pure python version of pymgmt. It can be used to replace
$LIB/heartbeat-gui/pymgmt.py directly without affecting anyone else. :) With
this pymgmt.py, _pymgmt.so is deprecated and can be deleted.
Also, as pure python code, this version can be easily adapted to support
Andrew's remote-cib w/o involve any recompiling things :)
>
> Regards,
> Lars
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pymgmt.py
Type: application/x-python
Size: 3442 bytes
Desc: not available
Url : http://lists.community.tummy.com/pipermail/linux-ha-dev/attachments/20070612/048ebed3/pymgmt.bin
More information about the Linux-HA-Dev
mailing list