Commit 5ca09268 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix LUOSDiagnose and non-vm_capable nodes

This skips non-vm_capable nodes in the OS diagnose search, since such
OSes will not be used anyway on those nodes.
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarMichael Hanselmann <>
parent 8b437a6e
......@@ -3199,7 +3199,9 @@ class LUDiagnoseOS(NoHooksLU):
"""Compute the list of OSes.
valid_nodes = [node for node in self.cfg.GetOnlineNodeList()]
valid_nodes = [
for node in self.cfg.GetAllNodesInfo().values()
if not node.offline and node.vm_capable]
node_data = self.rpc.call_os_diagnose(valid_nodes)
pol = self._DiagnoseByOS(node_data)
output = []
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment