Commit d64769a8 authored by Iustin Pop's avatar Iustin Pop
Browse files

Include node name in hypervisor validation errors



The current validation routine just says "failed", without specifying
the node name. This is very confusing, and we should log the node name
too.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarAlexander Schreiber <als@google.com>
parent 8eb148ae
......@@ -4234,8 +4234,8 @@ def _CheckHVParams(lu, nodenames, hvname, hvparams):
continue
msg = info.RemoteFailMsg()
if msg:
raise errors.OpPrereqError("Hypervisor parameter validation failed:"
" %s" % msg)
raise errors.OpPrereqError("Hypervisor parameter validation"
" failed on node %s: %s" % (node, msg))
class LUCreateInstance(LogicalUnit):
......
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