On Tue, 2017-11-07 at 16:06 +0800, he.hailo...@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 <kgail...@redhat.com> _______________________________________________ Users mailing list: Users@clusterlabs.org http://lists.clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org