[Pacemaker] Reg. trigger when node failure occurs

Kristoffer Grönlund kgronlund at suse.com
Wed Jan 8 02:59:20 EST 2014


On Wed, 8 Jan 2014 13:33:28 +1100
Andrew Beekhof <andrew at beekhof.net> wrote:

> > # crm configure primitive ClusterMon ocf:pacemaker:ClusterMon
> > params user="root" update="10" extra_options="-E /root/monitor.sh
> > -e 192.168.100.188" op monitor on-fail="restart" interval="60"
> > 
> > Entity: line 24: element nvpair: Relax-NG validity error : Type ID
> > doesn't allow value
> > 'ClusterMon-instance_attributes-/root/monitor.sh'  
> 
> Looks like crmsh is having trouble parsing your command line.

More recent versions of crmsh have a configurable option 'add_quotes'
which, when enabled (and should be enabled by default), works around
bash de-quoting arguments with spaces in them. With this option
enabled, the given command ought to parse correctly.

I'd recommend upgrading to crmsh 1.2.6. It can be downloaded from OBS:

https://build.opensuse.org/package/show/network:ha-clustering:Stable/crmsh

Another option is to circumvent bash completely:

crm configure <<END
primitive ClusterMon ocf:pacemaker:ClusterMon \
  params user="root" update="10" \
  extra_options="-E /root/monitor.sh -e 192.168.100.188" \
  op monitor on-fail="restart" interval="60"
END

-- 
// Kristoffer Grönlund
// kgronlund at suse.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140108/2ae299c5/attachment-0003.sig>


More information about the Pacemaker mailing list