[Pacemaker] Pacemaker 1.1: cloned stonith resources require --force to be added to levels

Andrew Beekhof andrew at beekhof.net
Thu Jul 3 22:25:58 EDT 2014


On 4 Jul 2014, at 5:16 am, Giuseppe Ragusa <giuseppe.ragusa at hotmail.com> wrote:

> Hi all,
> while creating a cloned stonith resource

Any particular reason you feel the need to clone it?

> for multi-level STONITH on a fully-up-to-date CentOS 6.5 (pacemaker-1.1.10-14.el6_5.3.x86_64):
> 
> pcs cluster cib stonith_cfg
> pcs -f stonith_cfg stonith create pdu1 fence_apc action="off" \
>     ipaddr="pdu1.verolengo.privatelan" login="cluster" passwd="test" \    pcmk_host_map="cluster1.verolengo.privatelan:3,cluster1.verolengo.privatelan:4,cluster2.verolengo.privatelan:6,cluster2.verolengo.privatelan:7" \
>     pcmk_host_check="static-list" pcmk_host_list="cluster1.verolengo.privatelan,cluster2.verolengo.privatelan" op monitor interval="240s"
> pcs -f stonith_cfg resource clone pdu1 pdu1Clone
> pcs -f stonith_cfg stonith level add 2 cluster1.verolengo.privatelan pdu1Clone
> pcs -f stonith_cfg stonith level add 2 cluster2.verolengo.privatelan pdu1Clone

> 
> the last 2 lines do not succeed unless I add the option "--force" and even so I still get errors when issuing verify:
> 
> [root at cluster1 ~]# pcs stonith level verify
> Error: pdu1Clone is not a stonith id

If you check, I think you'll find there is no such resource as 'pdu1Clone'.
I don't believe pcs lets you decide what the clone name is.

> [root at cluster1 ~]# echo $?
> 1
> 
> Is this a still unimplemented corner case or is my configuration wrong?
> 
> Many thanks in advance.
> 
> Regards,
> Giuseppe
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140704/b13c4aa5/attachment-0003.sig>


More information about the Pacemaker mailing list