[ClusterLabs] are there equivelent restful apis for crm commands

Ken Gaillot kgaillot at redhat.com
Tue Nov 7 10:14:56 EST 2017


On Tue, 2017-11-07 at 16:06 +0800, he.hailong5 at zte.com.cn wrote:
> Hi list,
> 
> For some purpose, I have to acquire some info within the docker
> container that usually can be made by executing crm commands on the
> host. Importing this tool into the container may involve fixing lots
> of dependency issues and you still need to figure out how to connect
> to the server from within the container. So I am wondering if there
> are already equivelent restful apis I can facilitate via network
> tools in the container to achieve this. Or other good ideas?
> 
> Thanks
> 

If you launch the container via Pacemaker's new "bundle" feature
(available in 1.1.17 and later), Pacemaker will set up a Pacemaker
Remote connection to the container, which can proxy the command-line
tools.

At the recent ClusterLabs Summit, RESTful APIs came up as a future
enhancement, but it would be a big project, so I don't know what the
time frame would be.
-- 
Ken Gaillot <kgaillot at redhat.com>




More information about the Users mailing list