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
