[Openais] constraint problem

Haussecker, Armin armin.haussecker at ts.fujitsu.com
Thu Mar 4 02:24:36 PST 2010


Hi,

Thank you very much for your help. 
If only one object is supplied in concerned xml file, everything works well.

But using the second form for xml file to be processed by cibadmin command (that is: no tags <constraints> resp. </constraints>), there are no problems processing cibadmin command, if cluster information base (CIB) already contains a constraints section opened by <constraints> and closed by </constraints>;
 in this case cibadmin command using the first form xml file leaded to some problems.   

Regards, 
Armin


-----Original Message-----
From: Andrew Beekhof [mailto:andrew at beekhof.net] 
Sent: Wednesday, February 24, 2010 3:12 PM
To: Haussecker, Armin
Cc: openais at lists.linux-foundation.org
Subject: Re: [Openais] constraint problem

On Wed, Feb 24, 2010 at 3:05 PM, Haussecker, Armin
<armin.haussecker at ts.fujitsu.com> wrote:
> Hi,
>
> calling command cibadmin to create resource constraints in a CIB, the
> following problem occurred:
>
> if file constraints.xml (containing xml snippets) contains more than one
> constraint definition, for example:
>
> <constraints>
>   <rsc_order id="MONITOR_orderconstraints-01"  first="fs-clone"
> score="INFINITY" then="MONITOR"/>
>   <rsc_order id="MONITOR_orderconstraints-02"  first="GSstart"
> score="INFINITY" then="MONITOR"/>
> </constraints>
>
> or only
>
> <rsc_order id="MONITOR_orderconstraints-01"  first="fs-clone"
> score="INFINITY" then="MONITOR"/>
> <rsc_order id="MONITOR_orderconstraints-02"  first="GSstart"
> score="INFINITY" then="MONITOR"/>,
>
> command cibadmin –C –o constraints –x constraints.xml  updates cluster
> information base (CIB) with both constraints.
> But, command cibadmin –D –o constraints –x constraints.xml only deletes
> first of the constraints defined within constraints.xml, second constraint
> remains in CIB.
>
> If only a single constraint definition is given, everything works well.

You can only supply one object at a time to operate on.
Always use the first form, the second should have complained loudly.


More information about the Openais mailing list