Statistics
| Branch: | Tag: | Revision:

root / lib / mcpu.py @ 04864530

History | View | Annotate | Download (11.1 kB)

1 2f31098c Iustin Pop
#
2 a8083063 Iustin Pop
#
3 a8083063 Iustin Pop
4 a8083063 Iustin Pop
# Copyright (C) 2006, 2007 Google Inc.
5 a8083063 Iustin Pop
#
6 a8083063 Iustin Pop
# This program is free software; you can redistribute it and/or modify
7 a8083063 Iustin Pop
# it under the terms of the GNU General Public License as published by
8 a8083063 Iustin Pop
# the Free Software Foundation; either version 2 of the License, or
9 a8083063 Iustin Pop
# (at your option) any later version.
10 a8083063 Iustin Pop
#
11 a8083063 Iustin Pop
# This program is distributed in the hope that it will be useful, but
12 a8083063 Iustin Pop
# WITHOUT ANY WARRANTY; without even the implied warranty of
13 a8083063 Iustin Pop
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 a8083063 Iustin Pop
# General Public License for more details.
15 a8083063 Iustin Pop
#
16 a8083063 Iustin Pop
# You should have received a copy of the GNU General Public License
17 a8083063 Iustin Pop
# along with this program; if not, write to the Free Software
18 a8083063 Iustin Pop
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 a8083063 Iustin Pop
# 02110-1301, USA.
20 a8083063 Iustin Pop
21 a8083063 Iustin Pop
22 a8083063 Iustin Pop
"""Module implementing the logic behind the cluster operations
23 a8083063 Iustin Pop

24 a8083063 Iustin Pop
This module implements the logic for doing operations in the cluster. There
25 a8083063 Iustin Pop
are two kinds of classes defined:
26 a8083063 Iustin Pop
  - logical units, which know how to deal with their specific opcode only
27 a8083063 Iustin Pop
  - the processor, which dispatches the opcodes to their logical units
28 a8083063 Iustin Pop

29 a8083063 Iustin Pop
"""
30 a8083063 Iustin Pop
31 a8083063 Iustin Pop
32 a8083063 Iustin Pop
from ganeti import opcodes
33 a8083063 Iustin Pop
from ganeti import constants
34 a8083063 Iustin Pop
from ganeti import errors
35 a8083063 Iustin Pop
from ganeti import rpc
36 a8083063 Iustin Pop
from ganeti import cmdlib
37 a8083063 Iustin Pop
from ganeti import config
38 a8083063 Iustin Pop
from ganeti import ssconf
39 0fbbf897 Iustin Pop
from ganeti import logger
40 04864530 Guido Trotter
from ganeti import locking
41 a8083063 Iustin Pop
42 7c0d6283 Michael Hanselmann
43 a8083063 Iustin Pop
class Processor(object):
44 a8083063 Iustin Pop
  """Object which runs OpCodes"""
45 a8083063 Iustin Pop
  DISPATCH_TABLE = {
46 a8083063 Iustin Pop
    # Cluster
47 a8083063 Iustin Pop
    opcodes.OpDestroyCluster: cmdlib.LUDestroyCluster,
48 a8083063 Iustin Pop
    opcodes.OpQueryClusterInfo: cmdlib.LUQueryClusterInfo,
49 a8083063 Iustin Pop
    opcodes.OpVerifyCluster: cmdlib.LUVerifyCluster,
50 a8083063 Iustin Pop
    opcodes.OpMasterFailover: cmdlib.LUMasterFailover,
51 a8083063 Iustin Pop
    opcodes.OpDumpClusterConfig: cmdlib.LUDumpClusterConfig,
52 07bd8a51 Iustin Pop
    opcodes.OpRenameCluster: cmdlib.LURenameCluster,
53 f4d4e184 Iustin Pop
    opcodes.OpVerifyDisks: cmdlib.LUVerifyDisks,
54 0cc05d44 Manuel Franceschini
    opcodes.OpSetClusterParams: cmdlib.LUSetClusterParams,
55 a8083063 Iustin Pop
    # node lu
56 a8083063 Iustin Pop
    opcodes.OpAddNode: cmdlib.LUAddNode,
57 a8083063 Iustin Pop
    opcodes.OpQueryNodes: cmdlib.LUQueryNodes,
58 dcb93971 Michael Hanselmann
    opcodes.OpQueryNodeVolumes: cmdlib.LUQueryNodeVolumes,
59 a8083063 Iustin Pop
    opcodes.OpRemoveNode: cmdlib.LURemoveNode,
60 a8083063 Iustin Pop
    # instance lu
61 a8083063 Iustin Pop
    opcodes.OpCreateInstance: cmdlib.LUCreateInstance,
62 fe7b0351 Michael Hanselmann
    opcodes.OpReinstallInstance: cmdlib.LUReinstallInstance,
63 a8083063 Iustin Pop
    opcodes.OpRemoveInstance: cmdlib.LURemoveInstance,
64 decd5f45 Iustin Pop
    opcodes.OpRenameInstance: cmdlib.LURenameInstance,
65 a8083063 Iustin Pop
    opcodes.OpActivateInstanceDisks: cmdlib.LUActivateInstanceDisks,
66 a8083063 Iustin Pop
    opcodes.OpShutdownInstance: cmdlib.LUShutdownInstance,
67 a8083063 Iustin Pop
    opcodes.OpStartupInstance: cmdlib.LUStartupInstance,
68 bf6929a2 Alexander Schreiber
    opcodes.OpRebootInstance: cmdlib.LURebootInstance,
69 a8083063 Iustin Pop
    opcodes.OpDeactivateInstanceDisks: cmdlib.LUDeactivateInstanceDisks,
70 a8083063 Iustin Pop
    opcodes.OpReplaceDisks: cmdlib.LUReplaceDisks,
71 a8083063 Iustin Pop
    opcodes.OpFailoverInstance: cmdlib.LUFailoverInstance,
72 a8083063 Iustin Pop
    opcodes.OpConnectConsole: cmdlib.LUConnectConsole,
73 a8083063 Iustin Pop
    opcodes.OpQueryInstances: cmdlib.LUQueryInstances,
74 a8083063 Iustin Pop
    opcodes.OpQueryInstanceData: cmdlib.LUQueryInstanceData,
75 7767bbf5 Manuel Franceschini
    opcodes.OpSetInstanceParams: cmdlib.LUSetInstanceParams,
76 8729e0d7 Iustin Pop
    opcodes.OpGrowDisk: cmdlib.LUGrowDisk,
77 a8083063 Iustin Pop
    # os lu
78 a8083063 Iustin Pop
    opcodes.OpDiagnoseOS: cmdlib.LUDiagnoseOS,
79 a8083063 Iustin Pop
    # exports lu
80 a8083063 Iustin Pop
    opcodes.OpQueryExports: cmdlib.LUQueryExports,
81 a8083063 Iustin Pop
    opcodes.OpExportInstance: cmdlib.LUExportInstance,
82 9ac99fda Guido Trotter
    opcodes.OpRemoveExport: cmdlib.LURemoveExport,
83 5c947f38 Iustin Pop
    # tags lu
84 5c947f38 Iustin Pop
    opcodes.OpGetTags: cmdlib.LUGetTags,
85 73415719 Iustin Pop
    opcodes.OpSearchTags: cmdlib.LUSearchTags,
86 f27302fa Iustin Pop
    opcodes.OpAddTags: cmdlib.LUAddTags,
87 f27302fa Iustin Pop
    opcodes.OpDelTags: cmdlib.LUDelTags,
88 06009e27 Iustin Pop
    # test lu
89 06009e27 Iustin Pop
    opcodes.OpTestDelay: cmdlib.LUTestDelay,
90 d61df03e Iustin Pop
    opcodes.OpTestAllocator: cmdlib.LUTestAllocator,
91 a8083063 Iustin Pop
    }
92 a8083063 Iustin Pop
93 1c901d13 Guido Trotter
  def __init__(self, context, feedback=None):
94 a8083063 Iustin Pop
    """Constructor for Processor
95 a8083063 Iustin Pop

96 1a8c0ce1 Iustin Pop
    Args:
97 1a8c0ce1 Iustin Pop
     - feedback_fn: the feedback function (taking one string) to be run when
98 1a8c0ce1 Iustin Pop
                    interesting events are happening
99 a8083063 Iustin Pop
    """
100 1c901d13 Guido Trotter
    self.context = context
101 1a8c0ce1 Iustin Pop
    self._feedback_fn = feedback
102 04864530 Guido Trotter
    self.exclusive_BGL = False
103 a8083063 Iustin Pop
104 1a8c0ce1 Iustin Pop
  def ExecOpCode(self, op):
105 a8083063 Iustin Pop
    """Execute an opcode.
106 a8083063 Iustin Pop

107 a8083063 Iustin Pop
    Args:
108 c99a3cc0 Manuel Franceschini
      op: the opcode to be executed
109 a8083063 Iustin Pop

110 a8083063 Iustin Pop
    """
111 a8083063 Iustin Pop
    if not isinstance(op, opcodes.OpCode):
112 3ecf6786 Iustin Pop
      raise errors.ProgrammerError("Non-opcode instance passed"
113 3ecf6786 Iustin Pop
                                   " to ExecOpcode")
114 a8083063 Iustin Pop
115 a8083063 Iustin Pop
    lu_class = self.DISPATCH_TABLE.get(op.__class__, None)
116 a8083063 Iustin Pop
    if lu_class is None:
117 3ecf6786 Iustin Pop
      raise errors.OpCodeUnknown("Unknown opcode")
118 a8083063 Iustin Pop
119 c6868e1d Guido Trotter
    if lu_class.REQ_WSSTORE:
120 c6868e1d Guido Trotter
      sstore = ssconf.WritableSimpleStore()
121 c6868e1d Guido Trotter
    else:
122 c6868e1d Guido Trotter
      sstore = ssconf.SimpleStore()
123 c6868e1d Guido Trotter
124 1c901d13 Guido Trotter
    write_count = self.context.cfg.write_count
125 04864530 Guido Trotter
126 04864530 Guido Trotter
    # Acquire the Big Ganeti Lock exclusively if this LU requires it, and in a
127 04864530 Guido Trotter
    # shared fashion otherwise (to prevent concurrent run with an exclusive LU.
128 04864530 Guido Trotter
    self.context.GLM.acquire(locking.LEVEL_CLUSTER, [locking.BGL],
129 04864530 Guido Trotter
                             shared=not lu_class.REQ_BGL)
130 fe482621 Iustin Pop
    try:
131 04864530 Guido Trotter
      self.exclusive_BGL = lu_class.REQ_BGL
132 04864530 Guido Trotter
      lu = lu_class(self, op, self.context.cfg, sstore)
133 04864530 Guido Trotter
      lu.CheckPrereq()
134 04864530 Guido Trotter
      hm = HooksMaster(rpc.call_hooks_runner, self, lu)
135 04864530 Guido Trotter
      h_results = hm.RunPhase(constants.HOOKS_PHASE_PRE)
136 04864530 Guido Trotter
      lu.HooksCallBack(constants.HOOKS_PHASE_PRE, h_results,
137 04864530 Guido Trotter
                       self._feedback_fn, None)
138 04864530 Guido Trotter
      try:
139 04864530 Guido Trotter
        result = lu.Exec(self._feedback_fn)
140 04864530 Guido Trotter
        h_results = hm.RunPhase(constants.HOOKS_PHASE_POST)
141 04864530 Guido Trotter
        result = lu.HooksCallBack(constants.HOOKS_PHASE_POST, h_results,
142 04864530 Guido Trotter
                                  self._feedback_fn, result)
143 04864530 Guido Trotter
      finally:
144 04864530 Guido Trotter
        # FIXME: This needs locks if not lu_class.REQ_BGL
145 04864530 Guido Trotter
        if write_count != self.context.cfg.write_count:
146 fe482621 Iustin Pop
          hm.RunConfigUpdate()
147 04864530 Guido Trotter
    finally:
148 04864530 Guido Trotter
      self.context.GLM.release(locking.LEVEL_CLUSTER)
149 04864530 Guido Trotter
      self.exclusive_BGL = False
150 6a4aa7c1 Iustin Pop
151 a8083063 Iustin Pop
    return result
152 a8083063 Iustin Pop
153 1a8c0ce1 Iustin Pop
  def ChainOpCode(self, op):
154 a8083063 Iustin Pop
    """Chain and execute an opcode.
155 a8083063 Iustin Pop

156 a8083063 Iustin Pop
    This is used by LUs when they need to execute a child LU.
157 a8083063 Iustin Pop

158 a8083063 Iustin Pop
    Args:
159 a8083063 Iustin Pop
     - opcode: the opcode to be executed
160 a8083063 Iustin Pop

161 a8083063 Iustin Pop
    """
162 a8083063 Iustin Pop
    if not isinstance(op, opcodes.OpCode):
163 3ecf6786 Iustin Pop
      raise errors.ProgrammerError("Non-opcode instance passed"
164 3ecf6786 Iustin Pop
                                   " to ExecOpcode")
165 a8083063 Iustin Pop
166 a8083063 Iustin Pop
    lu_class = self.DISPATCH_TABLE.get(op.__class__, None)
167 a8083063 Iustin Pop
    if lu_class is None:
168 3ecf6786 Iustin Pop
      raise errors.OpCodeUnknown("Unknown opcode")
169 a8083063 Iustin Pop
170 04864530 Guido Trotter
    if lu_class.REQ_BGL and not self.exclusive_BGL:
171 04864530 Guido Trotter
      raise errors.ProgrammerError("LUs which require the BGL cannot"
172 04864530 Guido Trotter
                                   " be chained to granular ones.")
173 04864530 Guido Trotter
174 c6868e1d Guido Trotter
    if lu_class.REQ_WSSTORE:
175 c6868e1d Guido Trotter
      sstore = ssconf.WritableSimpleStore()
176 c6868e1d Guido Trotter
    else:
177 c6868e1d Guido Trotter
      sstore = ssconf.SimpleStore()
178 c6868e1d Guido Trotter
179 f97a6b10 Iustin Pop
    #do_hooks = lu_class.HPATH is not None
180 1c901d13 Guido Trotter
    lu = lu_class(self, op, self.context.cfg, sstore)
181 a8083063 Iustin Pop
    lu.CheckPrereq()
182 a8083063 Iustin Pop
    #if do_hooks:
183 2395c322 Iustin Pop
    #  hm = HooksMaster(rpc.call_hooks_runner, self, lu)
184 1fce5219 Guido Trotter
    #  h_results = hm.RunPhase(constants.HOOKS_PHASE_PRE)
185 1fce5219 Guido Trotter
    #  lu.HooksCallBack(constants.HOOKS_PHASE_PRE,
186 1fce5219 Guido Trotter
    #                   h_results, self._feedback_fn, None)
187 1a8c0ce1 Iustin Pop
    result = lu.Exec(self._feedback_fn)
188 a8083063 Iustin Pop
    #if do_hooks:
189 1fce5219 Guido Trotter
    #  h_results = hm.RunPhase(constants.HOOKS_PHASE_POST)
190 1fce5219 Guido Trotter
    #  result = lu.HooksCallBack(constants.HOOKS_PHASE_POST,
191 1fce5219 Guido Trotter
    #                   h_results, self._feedback_fn, result)
192 a8083063 Iustin Pop
    return result
193 a8083063 Iustin Pop
194 0fbbf897 Iustin Pop
  def LogStep(self, current, total, message):
195 0fbbf897 Iustin Pop
    """Log a change in LU execution progress.
196 0fbbf897 Iustin Pop

197 0fbbf897 Iustin Pop
    """
198 0fbbf897 Iustin Pop
    logger.Debug("Step %d/%d %s" % (current, total, message))
199 0fbbf897 Iustin Pop
    self._feedback_fn("STEP %d/%d %s" % (current, total, message))
200 0fbbf897 Iustin Pop
201 5bfac263 Iustin Pop
  def LogWarning(self, message, hint=None):
202 0fbbf897 Iustin Pop
    """Log a warning to the logs and the user.
203 0fbbf897 Iustin Pop

204 0fbbf897 Iustin Pop
    """
205 0fbbf897 Iustin Pop
    logger.Error(message)
206 0fbbf897 Iustin Pop
    self._feedback_fn(" - WARNING: %s" % message)
207 5bfac263 Iustin Pop
    if hint:
208 5bfac263 Iustin Pop
      self._feedback_fn("      Hint: %s" % hint)
209 0fbbf897 Iustin Pop
210 0fbbf897 Iustin Pop
  def LogInfo(self, message):
211 0fbbf897 Iustin Pop
    """Log an informational message to the logs and the user.
212 0fbbf897 Iustin Pop

213 0fbbf897 Iustin Pop
    """
214 0fbbf897 Iustin Pop
    logger.Info(message)
215 0fbbf897 Iustin Pop
    self._feedback_fn(" - INFO: %s" % message)
216 0fbbf897 Iustin Pop
217 a8083063 Iustin Pop
218 a8083063 Iustin Pop
class HooksMaster(object):
219 a8083063 Iustin Pop
  """Hooks master.
220 a8083063 Iustin Pop

221 a8083063 Iustin Pop
  This class distributes the run commands to the nodes based on the
222 a8083063 Iustin Pop
  specific LU class.
223 a8083063 Iustin Pop

224 a8083063 Iustin Pop
  In order to remove the direct dependency on the rpc module, the
225 a8083063 Iustin Pop
  constructor needs a function which actually does the remote
226 a8083063 Iustin Pop
  call. This will usually be rpc.call_hooks_runner, but any function
227 a8083063 Iustin Pop
  which behaves the same works.
228 a8083063 Iustin Pop

229 a8083063 Iustin Pop
  """
230 2395c322 Iustin Pop
  def __init__(self, callfn, proc, lu):
231 a8083063 Iustin Pop
    self.callfn = callfn
232 2395c322 Iustin Pop
    self.proc = proc
233 a8083063 Iustin Pop
    self.lu = lu
234 a8083063 Iustin Pop
    self.op = lu.op
235 a8083063 Iustin Pop
    self.env, node_list_pre, node_list_post = self._BuildEnv()
236 a8083063 Iustin Pop
    self.node_list = {constants.HOOKS_PHASE_PRE: node_list_pre,
237 a8083063 Iustin Pop
                      constants.HOOKS_PHASE_POST: node_list_post}
238 a8083063 Iustin Pop
239 a8083063 Iustin Pop
  def _BuildEnv(self):
240 a8083063 Iustin Pop
    """Compute the environment and the target nodes.
241 a8083063 Iustin Pop

242 a8083063 Iustin Pop
    Based on the opcode and the current node list, this builds the
243 a8083063 Iustin Pop
    environment for the hooks and the target node list for the run.
244 a8083063 Iustin Pop

245 a8083063 Iustin Pop
    """
246 a8083063 Iustin Pop
    env = {
247 a8083063 Iustin Pop
      "PATH": "/sbin:/bin:/usr/sbin:/usr/bin",
248 a8083063 Iustin Pop
      "GANETI_HOOKS_VERSION": constants.HOOKS_VERSION,
249 a8083063 Iustin Pop
      "GANETI_OP_CODE": self.op.OP_ID,
250 a8083063 Iustin Pop
      "GANETI_OBJECT_TYPE": self.lu.HTYPE,
251 6a4aa7c1 Iustin Pop
      "GANETI_DATA_DIR": constants.DATA_DIR,
252 a8083063 Iustin Pop
      }
253 a8083063 Iustin Pop
254 9a395a76 Iustin Pop
    if self.lu.HPATH is not None:
255 9a395a76 Iustin Pop
      lu_env, lu_nodes_pre, lu_nodes_post = self.lu.BuildHooksEnv()
256 9a395a76 Iustin Pop
      if lu_env:
257 9a395a76 Iustin Pop
        for key in lu_env:
258 9a395a76 Iustin Pop
          env["GANETI_" + key] = lu_env[key]
259 9a395a76 Iustin Pop
    else:
260 9a395a76 Iustin Pop
      lu_nodes_pre = lu_nodes_post = []
261 a8083063 Iustin Pop
262 4167825b Iustin Pop
    return env, frozenset(lu_nodes_pre), frozenset(lu_nodes_post)
263 4167825b Iustin Pop
264 4167825b Iustin Pop
  def _RunWrapper(self, node_list, hpath, phase):
265 4167825b Iustin Pop
    """Simple wrapper over self.callfn.
266 4167825b Iustin Pop

267 4167825b Iustin Pop
    This method fixes the environment before doing the rpc call.
268 4167825b Iustin Pop

269 4167825b Iustin Pop
    """
270 4167825b Iustin Pop
    env = self.env.copy()
271 4167825b Iustin Pop
    env["GANETI_HOOKS_PHASE"] = phase
272 4167825b Iustin Pop
    env["GANETI_HOOKS_PATH"] = hpath
273 f97a6b10 Iustin Pop
    if self.lu.sstore is not None:
274 f97a6b10 Iustin Pop
      env["GANETI_CLUSTER"] = self.lu.sstore.GetClusterName()
275 f97a6b10 Iustin Pop
      env["GANETI_MASTER"] = self.lu.sstore.GetMasterNode()
276 a8083063 Iustin Pop
277 4167825b Iustin Pop
    env = dict([(str(key), str(val)) for key, val in env.iteritems()])
278 a8083063 Iustin Pop
279 4167825b Iustin Pop
    return self.callfn(node_list, hpath, phase, env)
280 a8083063 Iustin Pop
281 a8083063 Iustin Pop
  def RunPhase(self, phase):
282 a8083063 Iustin Pop
    """Run all the scripts for a phase.
283 a8083063 Iustin Pop

284 a8083063 Iustin Pop
    This is the main function of the HookMaster.
285 a8083063 Iustin Pop

286 b07a6922 Guido Trotter
    Args:
287 b07a6922 Guido Trotter
      phase: the hooks phase to run
288 b07a6922 Guido Trotter

289 b07a6922 Guido Trotter
    Returns:
290 b07a6922 Guido Trotter
      the result of the hooks multi-node rpc call
291 b07a6922 Guido Trotter

292 a8083063 Iustin Pop
    """
293 a8083063 Iustin Pop
    if not self.node_list[phase]:
294 9a395a76 Iustin Pop
      # empty node list, we should not attempt to run this as either
295 9a395a76 Iustin Pop
      # we're in the cluster init phase and the rpc client part can't
296 9a395a76 Iustin Pop
      # even attempt to run, or this LU doesn't do hooks at all
297 a8083063 Iustin Pop
      return
298 4167825b Iustin Pop
    hpath = self.lu.HPATH
299 4167825b Iustin Pop
    results = self._RunWrapper(self.node_list[phase], hpath, phase)
300 a8083063 Iustin Pop
    if phase == constants.HOOKS_PHASE_PRE:
301 a8083063 Iustin Pop
      errs = []
302 a8083063 Iustin Pop
      if not results:
303 3ecf6786 Iustin Pop
        raise errors.HooksFailure("Communication failure")
304 a8083063 Iustin Pop
      for node_name in results:
305 a8083063 Iustin Pop
        res = results[node_name]
306 a8083063 Iustin Pop
        if res is False or not isinstance(res, list):
307 2395c322 Iustin Pop
          self.proc.LogWarning("Communication failure to node %s" % node_name)
308 2395c322 Iustin Pop
          continue
309 a8083063 Iustin Pop
        for script, hkr, output in res:
310 a8083063 Iustin Pop
          if hkr == constants.HKR_FAIL:
311 a8083063 Iustin Pop
            output = output.strip().encode("string_escape")
312 a8083063 Iustin Pop
            errs.append((node_name, script, output))
313 a8083063 Iustin Pop
      if errs:
314 3ecf6786 Iustin Pop
        raise errors.HooksAbort(errs)
315 b07a6922 Guido Trotter
    return results
316 6a4aa7c1 Iustin Pop
317 6a4aa7c1 Iustin Pop
  def RunConfigUpdate(self):
318 6a4aa7c1 Iustin Pop
    """Run the special configuration update hook
319 6a4aa7c1 Iustin Pop

320 6a4aa7c1 Iustin Pop
    This is a special hook that runs only on the master after each
321 6a4aa7c1 Iustin Pop
    top-level LI if the configuration has been updated.
322 6a4aa7c1 Iustin Pop

323 6a4aa7c1 Iustin Pop
    """
324 6a4aa7c1 Iustin Pop
    phase = constants.HOOKS_PHASE_POST
325 6a4aa7c1 Iustin Pop
    hpath = constants.HOOKS_NAME_CFGUPDATE
326 6a4aa7c1 Iustin Pop
    if self.lu.sstore is None:
327 6a4aa7c1 Iustin Pop
      raise errors.ProgrammerError("Null sstore on config update hook")
328 6a4aa7c1 Iustin Pop
    nodes = [self.lu.sstore.GetMasterNode()]
329 6a4aa7c1 Iustin Pop
    results = self._RunWrapper(nodes, hpath, phase)