I've been hunting around trying to figure this out but no success yet.
Is it possible to specify a node group when adding an instance so the
IAllocator selects nodes within that group? Or better than that, is it
possible to tie OS images to a node group?
Thanks in advance,
Damien
Not directly, but if you mark all other node groups as last_resort, then
the instance will be allocated in the single preferred group.
> Or better than that, is it
> possible to tie OS images to a node group?
It is not, but this is indeed how (long-term) ganeti should behave.
thanks,
iustin
Okay good to know, thanks.
>
>> Or better than that, is it
>> possible to tie OS images to a node group?
>
> It is not, but this is indeed how (long-term) ganeti should behave.
>
Presumably I could write my own IAllocator to achieve this now though?
> >> Or better than that, is it
> >> possible to tie OS images to a node group?
> >
> > It is not, but this is indeed how (long-term) ganeti should behave.
> >
>
> Presumably I could write my own IAllocator to achieve this now though?
You could, indeed, to keep a static map (requested OS = foo, use group
X), but I was talking about a more general problem: ganeti should
support separate OS lists per group, but right now it still wants to
have uniform OS names per the entire cluster.
iustin
Ah I get you. I'm wanting the grouping primarily to allow for ksm to
share more memory, grouping windows with windows and linux with linux
mostly. Per group OS images would be handy though.