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:[email protected]] 
Sent: Wednesday, February 24, 2010 3:12 PM
To: Haussecker, Armin
Cc: [email protected]
Subject: Re: [Openais] constraint problem

On Wed, Feb 24, 2010 at 3:05 PM, Haussecker, Armin
<[email protected]> 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.
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to