[Pacemaker] not able to configure operations(op) using pcs command

Frank Brendel Frank.Brendel at eurolog.com
Thu Jan 23 08:20:03 EST 2014

Hi Parveen,

specify 'op' only once.

pcs resource create app-prim ocf:appprim:appmmra apigw_health_check_port=55000 appmm_instance_name=appgw op stop interval=0 timeout=60s monitor interval=1s timeout=5s start interval=0 timeout=60s

see 'pcs resource help'

create <resource id> <standard:provider:type|type> [resource options]
           [op <operation action> <operation options> [<operation action>
           <operation options>]...] [meta <meta options>...]
           [--clone <clone options> | --master <master options> |
           --group <group name>]


Am 23.01.2014 14:05, schrieb Parveen Jain:
Hi All,
  I am new to pacemaker and trying to port some of the CRM commands to PCS(for RHEL6.4). Getting following issue:

original command:

primitive app-prim ocf:appprim:appmm-ra \
        params appmm_health_check_port="55000" appmm_instance_name="INSTANCE_NAME" \
        op start interval="0" timeout="60s" \
        op stop interval="0" timeout="60s" \
        op monitor interval="1s" timeout="5s"

to following PCs command:

pcs resource create app-prim_ocf:appprim:appmmra apigw_health_check_port=55000 appmm_instance_name=appgw op stop interval=0 timeout=60s op monitor interval=1s timeout=5s op start interval=0 timeout=60s

but somehow this converted command is not working.

The main issue is use of "op" parameter with pcs command.
only the first command i.e. "op stop interval=0 timeout=60s" is effective. rest of the operations(op) are not effective at all.

whenever I do "pcs resource show app-prim" , following is output:

Resource: app-prim
   appmm_health_check_port: 65000
   appmm_instance_name: appgw
  op monitor interval=0s timeout=60s

Can anyone please help ?

my version of pcs is - Version: 1.1.8-7.el6-394e906

on RHEL 6.4

Thanks in advance for any help.


Pacemaker mailing list: Pacemaker at oss.clusterlabs.org<mailto:Pacemaker at oss.clusterlabs.org>

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140123/167357c7/attachment-0003.html>

More information about the Pacemaker mailing list