pcs icon indicating copy to clipboard operation
pcs copied to clipboard

usage as library

Open h5rdly opened this issue 7 years ago • 2 comments

I wanted to ask whether it would be possible to add library functionality to pcs, eg importing it and using some of its functions as api, to control pacemaker directly from Python

Thanks, Eli

h5rdly avatar Oct 31 '18 18:10 h5rdly

This is one of our long term goals. We have been working on it for quite some time now. However, there are always other priorities, features to be added and bugs to be fixed. And this basically requires most of the pcs code base to be overhauled. So I cannot make any promises about when this would be finished. Most of the recently added features can be used as a library (e.g. qdevice, bundles and so on), while most of the more basic stuff (e.g. resources management) are still in the old architecture.

If you are interested, take a look at pcs.lib.commands package, which is a planned interface of the library. Going through that you can see which features are already in the library. Bear in mind this has not been released yet as a public API and therefore it may change at any time.

tomjelinek avatar Nov 02 '18 08:11 tomjelinek

Thank you

h5rdly avatar Nov 04 '18 06:11 h5rdly