Package ganeti :: Module hooksmaster
[hide private]
[frames] | no frames]

Module hooksmaster

source code

Module implementing the logic for running hooks.

Classes [hide private]
  HooksMaster
Functions [hide private]
dict(node: (fail_msg, offline, hooks_results))
RpcResultsToHooksResults(rpc_results)
Function to convert RPC results to the format expected by HooksMaster.
source code
 
ExecGlobalPostHooks(opcode, master_name, rpc_runner, log_fn, cluster_name, master_uuid, job_id, status)
Build hooks manager and execute global post hooks just on the master
source code

Imports: constants, errors, utils, compat, pathutils


Function Details [hide private]

RpcResultsToHooksResults(rpc_results)

source code 

Function to convert RPC results to the format expected by HooksMaster.

Parameters:
Returns: dict(node: (fail_msg, offline, hooks_results))
RPC results unpacked according to the format expected by L({hooksmaster.HooksMaster}