When planing on where to evacuate the non-redundant instances
of the nodes to be rebooted, it doesn't make sense to consider
offline nodes. So add this restriction to hroller.
Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>
colorings = map (\(v,a) -> (v,(colorVertMap.a) nodeGraph)) colorAlgorithms
smallestColoring = IntMap.elems $
(snd . minimumBy (comparing (IntMap.size . snd))) colorings
- allNdx = map Node.idx $ Container.elems nlf
+ allNdx = map Node.idx . filter (not . Node.offline) . Container.elems
+ $ nlf
splitted = mapM (\ grp -> partitionNonRedundant grp allNdx (nlf,ilf))
smallestColoring
rebootGroups <- if optIgnoreNonRedundant opts