Comment 2 for bug 1686887

Revision history for this message
John A Meinel (jameinel) wrote :

Juju itself does not determine what machines will use what tags or do any prioritization based on it. We simply hand the information off to MaaS to provide us with machines based on the constraints that a user passed in.

I think it is fair that if you see a request for "foo" and you have some machines with "foo" and some with "foo" and "bar", that it might be possible to give preference for the machines that only have "foo" tag. I'm not sure if this is taking it too far.

I think you're reading a *lot* of user intended semantics into tags, when really it is just a list of fields that apply to specific machines.

It may also be a factor that you're creating a bundle and assuming it is going to exactly match the hardware you have available. And we suffer a bit because
a) MAAS does the actual mapping of requested machine characteristics (like tags) to what machine to use
b) Juju only requests the machines one at a time, so there isn't anywhere that can do a "ok, you're going to need 3 of these, and 2 of these, so lets makes sure not to use X so that it is available for Y".

eg, Juju knows the set that you're asking for, but doesn't do the mapping, and only asks MAAS for them one-by-one so it can't work out the set.

That said, if you have machines which *must be used for neutron* then why are you also marking those nodes as possible nodes for "compute"?