Revision 234d8af0
b/Ganeti/HTools/Cluster.hs | ||
---|---|---|
203 | 203 |
computeBadItems :: NodeList -> InstanceList -> |
204 | 204 |
([Node.Node], [Instance.Instance]) |
205 | 205 |
computeBadItems nl il = |
206 |
let bad_nodes = verifyN1 $ Container.elems nl |
|
206 |
let bad_nodes = verifyN1 $ filter (not . Node.offline) $ Container.elems nl
|
|
207 | 207 |
bad_instances = map (\idx -> Container.find idx il) $ |
208 | 208 |
sort $ nub $ concat $ |
209 | 209 |
map (\ n -> (Node.slist n) ++ (Node.plist n)) bad_nodes |
Also available in: Unified diff