[ClusterLabs] location constraint for all resources?
Andrew Beekhof
andrew at beekhof.net
Wed May 20 00:05:18 EDT 2015
> On 15 May 2015, at 3:24 am, Matthew Vernon <mcv21 at cam.ac.uk> wrote:
>
> Hi,
>
> I have a requirement that my resources all run on hosts of a particular
> type (xenhost) and not on hosts of another type (quorum).
>
> For a particular resource ("foo"), I can do
>
> configure location xenhosts foo rule -inf: type ne xenhost
>
> ...but I'd like to do this with a pattern instead, say:
>
> configure location xenhosts /.*/ rule -inf: type ne xenhost
>
> but if I try that, I get errors:
>
> rule (1): Element rsc_location failed to validate attributes
> rule (1): Expecting element resource_set, got rule
> rule (1): Element rsc_location failed to validate content
> rsc_location (5): Element constraints has extra content: rsc_location
>
> Is it possible to achieve what I want here?
Not at this time.
> Or do I have to add a
> location constraint for each resource I configure?
Correct. Sorry.
>
> Thanks,
>
> Matthew
>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
More information about the Users
mailing list