On Tue, Sep 22, 2009 at 10:09:30AM +0100, Michael Hanselmann wrote:
> 2009/9/22 Iustin Pop <[email protected]>:
> > Here's the interdiff (with a realisation that an FQDN cannot be an UUID, so 
> > no
> > issue about namespace conflicts):
> 
> Except that Ganeti allows the user to specify only the part before the
> first, second, third, etc dot. Anyway LGTM.

Hmm... I was only thinking about RAPI, and I was under the wrong impression it
requires FQDNs.

Hmm, we are under the same issue as having two instances, one named
instance1.example and the other instance1.example.com, which ganeti allows at
create time but it completely breaks:

>>> from ganeti.utils import MatchNameComponent
>>> MatchNameComponent("a", ["a", "a.b"])
>>> MatchNameComponent("a.b", ["a", "a.b"])
'a.b'

So here we would: a) ignore it the same way we ignore today's breakage, or b)
fix MatchNameComponent at which point the UUID (by itself) would select the
UUID and the UUID.domain would select the instance.

We could also add a note in the man page and in the install/admin guide that
it's not recommended to have such instances. Would that suffice?

iustin

Reply via email to