[Pacemaker] An error occurs by a crm command.

Andrew Beekhof andrew at beekhof.net
Tue Jul 28 07:42:31 UTC 2009


On Tue, Jul 28, 2009 at 9:12 AM, <renayama19661014 at ybb.ne.jp> wrote:
> Hi,
>
> I tested addition of monitor by a crm command.
> I tried it in environment of Pacemaker(Pacemaker-1-0-c0a1d730fe44) and Corosync(1.00).
>
> ------Operation ----------------------------------------------------------------
> [root at node01 ~]# crm
> crm(live)# configure
> crm(live)configure# monitor prmDummy1:Stopped 10s:60s
> crm(live)configure# commit
> element op: Relax-NG validity error : Expecting an element meta_attributes, got nothing
> Relax-NG validity error : Extra element operations in interleave
> element operations: Relax-NG validity error : Element primitive failed to validate content
> element primitive: Relax-NG validity error : Element resources has extra content: primitive
> element configuration: Relax-NG validity error : Invalid sequence in interleave
> element cib: Relax-NG validity error : Element cib failed to validate content
> crm_verify[21371]: 2009/07/28_16:02:06 ERROR: main: CIB did not pass DTD/schema validation
> Errors found during check: config not valid
> WARNING: crm_verify(8) found errors in the CIB
> INFO: use commit force if you know what you are doing
> crm(live)configure# show
> node node01
> primitive prmDummy1 ocf:heartbeat:Dummy \
>        params $id="instance_attributes.id2380645" \
>        op start interval="0" timeout="60s" on-fail="restart" \
>        op stop interval="0" timeout="60s" on-fail="block" \
>        op monitor interval="10s" role="Stopped" timeout="60s" \
>        meta migration-threshold="1"
> location rsc_location prmDummy1 200: ais-1
> location rsc_location2 prmDummy1 100: ais-2
> property $id="cib-bootstrap-options" \
>        no-quorum-policy="ignore" \
>        stonith-enabled="false" \
>        default-resource-stickiness="INFINITY" \
>        start-failure-is-fatal="false" \
>        last-lrm-refresh="1229322188" \
>        is-managed-default="true" \
>        dc-version="1.0.4-c0a1d730fe44af8115a4f8b959acba6a28e3e348" \
>        cluster-infrastructure="openais" \
>        expected-quorum-votes="2"
> op_defaults $id="op_defaults-options"
>
> ----------------------------------------------------------------------
>
> When I do not appoint target_role, an error does not occur.
> Is my operation wrong?

role=Stopped needs to occur after the meta keyword, not as part of the operation




More information about the Pacemaker mailing list