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 <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
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 = [node.name
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