[Pacemaker] crm shell and collocating sets
Dejan Muhamedagic
dejanmm at fastmail.fm
Mon Jan 24 15:41:46 UTC 2011
Hi,
On Sat, Jan 22, 2011 at 01:38:12PM -0500, Vadym Chepkov wrote:
> Hi,
>
> It seems crm shell can't express sequential="true" in collocating sets, which is strange, since, I assume, it's a default.
>
> If you load an example using cibadmin from "Configuration explained"
>
> Example 6.16. Using colocation sets to specify a common peer.
> <constraints>
> <rsc_colocation id="coloc-1" score="INFINITY" >
> <resource_set id="collocated-set-1" sequential="false">
> <resource_ref id="A"/>
> <resource_ref id="B"/>
> <resource_ref id="C"/>
> </resource_set>
> <resource_set id="collocated-set-2" sequential="true">
> <resource_ref id="D"/>
> </resource_set>
> </rsc_colocation>
> </constraints>
>
>
> It will look like this in crm configure show output:
>
> xml <rsc_colocation id="coloc-1" score="INFINITY"> \
> <resource_set id="collocated-set-1" sequential="false"> \
> <resource_ref id="A"/> \
> <resource_ref id="B"/> \
> <resource_ref id="C"/> \
> </resource_set> \
> <resource_set id="collocated-set-2" sequential="true"> \
> <resource_ref id="D"/> \
> </resource_set> \
> </rsc_colocation>
>
> Not exactly a "simplification"
>
> Am I missing something? How one would express the same constraint using shell?
By omitting sequential="true". The problem is that two XML
representation have the same meaning, but look slightly
different, which again makes shell think that it could've done
something wrong while rendering XML from the CLI presentation.
Anyway, that should be fixed somehow.
Thanks,
Dejan
> pacemaker 1.0.10
>
> Thanks,
> Vadym
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
More information about the Pacemaker
mailing list