On Thu, Dec 13, 2012 at 13:32 +0100, Iustin Pop <[email protected]> wrote: > > --- a/htools/Ganeti/HTools/Instance.hs > > +++ b/htools/Ganeti/HTools/Instance.hs > > @@ -83,6 +83,7 @@ data Instance = Instance > > , spindleUse :: Int -- ^ The numbers of used spindles > > , allTags :: [String] -- ^ List of all instance tags > > , exclTags :: [String] -- ^ List of instance exclusion tags > > + , arPolicy :: T.AutoRepairPolicy -- ^ Instance's auto-repair policy > > } deriving (Show, Eq)
> > instance T.Element Instance where > > @@ -181,6 +182,7 @@ create name_init mem_init dsk_init vcpus_init run_init > > tags_init > > , spindleUse = su > > , allTags = tags_init > > , exclTags = [] > > + , arPolicy = T.ArNotEnabled > Does this need to be read from cluster? Saved/load in the Text backend? With the current version of the patches, I would say no: it will always be computed from the available tags, which the backends already make available. That's how I see it, at least. Thanks, -- Dato Simó | [email protected] Corp Fleet Management / Ganeti SRE (Dublin)
