Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usage as library #187

Open
h5rdly opened this issue Oct 31, 2018 · 2 comments
Open

usage as library #187

h5rdly opened this issue Oct 31, 2018 · 2 comments

Comments

@h5rdly
Copy link

h5rdly commented Oct 31, 2018

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

@tomjelinek
Copy link
Member

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.

@h5rdly
Copy link
Author

h5rdly commented Nov 4, 2018

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants