Commit f5677ab3 authored by René Nussbaumer's avatar René Nussbaumer
Browse files

out of band verification in gnt-cluster verify

This adds the verify tests for out of band management
Signed-off-by: default avatarRené Nussbaumer <>
Reviewed-by: default avatarMichael Hanselmann <>
parent 16f41f24
......@@ -1235,6 +1235,7 @@ class LUVerifyCluster(LogicalUnit):
ETYPE_FIELD = "code"
......@@ -1825,6 +1826,22 @@ class LUVerifyCluster(LogicalUnit):
"OSes present on reference node %s but missing on this node: %s",, utils.CommaJoin(missing))
def _VerifyOob(self, ninfo, nresult):
"""Verifies out of band functionality of a node.
@type ninfo: L{objects.Node}
@param ninfo: the node to check
@param nresult: the remote results for the node
node =
# We just have to verify the paths on master and/or master candidates
# as the oob helper is invoked on the master
if ((ninfo.master_candidate or ninfo.master) and
constants.NV_OOB_PATHS in nresult):
for path_result in nresult[constants.NV_OOB_PATHS]:
self._ErrorIf(path_result, self.ENODEOOBPATH, node, path_result)
def _UpdateNodeVolumes(self, ninfo, nresult, nimg, vg_name):
"""Verifies and updates the node volume data.
......@@ -2107,6 +2124,16 @@ class LUVerifyCluster(LogicalUnit):
for node in nodeinfo)
# Gather OOB paths
oob_paths = []
for node in nodeinfo:
path = _SupportsOob(self.cfg, node)
if path and path not in oob_paths:
if oob_paths:
node_verify_param[constants.NV_OOB_PATHS] = oob_paths
for instance in instancelist:
inst_config = instanceinfo[instance]
......@@ -2186,6 +2213,8 @@ class LUVerifyCluster(LogicalUnit):
self._VerifyNodeFiles(node_i, nresult, file_names, local_checksums,
self._VerifyOob(node_i, nresult)
if nimg.vm_capable:
self._VerifyNodeLVM(node_i, nresult, vg_name)
self._VerifyNodeDrbd(node_i, nresult, instanceinfo, drbd_helper,
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