[ClusterLabs Developers] Coming in Pacemaker 2.1.6: Python API
Ken Gaillot
kgaillot at redhat.com
Tue Mar 7 21:52:10 UTC 2023
Hi all,
The first release candidate for Pacemaker 2.1.6 is expected to be
released next month.
A new feature will be Pacemaker's first formal Python API. Initially,
the pacemaker module will just be a stub with two constant classes. The
upstream RPM package will be python3-pacemaker.
The pacemaker.BuildOptions class will have constants for the local
deployment's build options such as where the Corosync config file is
located and where CIB files will be saved.
The pacemaker.ExitStatus class will have symbolic constants for the
standard exit codes used by Pacemaker command-line tools.
The Python API will not be a high priority, but over time it could
become the home of Python-native equivalents of the high-level C
interfaces in libpacemaker (which themselves are intended to be
equivalents of the command-line tools).
It may not be very useful yet, but it gives Python developers something
to play with and provides a framework for future additions.
--
Ken Gaillot <kgaillot at redhat.com>
More information about the Developers
mailing list