Re: [ClusterLabs] are there equivelent restful apis for crm commands

2017-11-07 Thread Ken Gaillot
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 

___
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


Re: [ClusterLabs] are there equivelent restful apis for crm commands

2017-11-07 Thread Larry Chen

Hi hailong

If possible, using ssh in container to log in your host,
and then run crm shell to get your job done.
Crm shell is designed to run on HA stack,
I don't think it's a good idea to separate crm from HA stack.

Thanks,
Larry Chen

On 11/7/2017 5:35 PM, he.hailo...@zte.com.cn wrote:


Can you elaborate it a little bit?

Are you suggesting install the crm in the container? I understand the 
crm is just a client tool, how to connect to the server running on the 
host?


原始邮件
*发件人:*<lc...@suse.com>;
*收件人:*何海龙10164561;
*日 期 :*2017年11月07日 17:26
*主 题 :**Re: [ClusterLabs] are there equivelent restful apis for crm 
commands*



Hi haillong

    Unfortunately, there are not restful apis for crm.
    Using ssh may help you.
    For further steps, you may use the same underlying libs  as crm   
  does.


    Thanks,
    Larry Chen

On 11/7/2017 4:06 PM, 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











___ 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  





___
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


[ClusterLabs] are there equivelent restful apis for crm commands

2017-11-07 Thread he.hailong5
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___
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