Revision 05325a35

b/lib/cmdlib.py
6788 6788
def _CheckNodeFreeMemory(lu, node, reason, requested, hypervisor_name):
6789 6789
  """Checks if a node has enough free memory.
6790 6790

  
6791
  This function check if a given node has the needed amount of free
6791
  This function checks if a given node has the needed amount of free
6792 6792
  memory. In case the node has less memory or we cannot get the
6793
  information from the node, this function raise an OpPrereqError
6793
  information from the node, this function raises an OpPrereqError
6794 6794
  exception.
6795 6795

  
6796 6796
  @type lu: C{LogicalUnit}
......
6828 6828

  
6829 6829

  
6830 6830
def _CheckNodesFreeDiskPerVG(lu, nodenames, req_sizes):
6831
  """Checks if nodes have enough free disk space in the all VGs.
6831
  """Checks if nodes have enough free disk space in all the VGs.
6832 6832

  
6833
  This function check if all given nodes have the needed amount of
6833
  This function checks if all given nodes have the needed amount of
6834 6834
  free disk. In case any node has less disk or we cannot get the
6835
  information from the node, this function raise an OpPrereqError
6835
  information from the node, this function raises an OpPrereqError
6836 6836
  exception.
6837 6837

  
6838 6838
  @type lu: C{LogicalUnit}
......
6853 6853
def _CheckNodesFreeDiskOnVG(lu, nodenames, vg, requested):
6854 6854
  """Checks if nodes have enough free disk space in the specified VG.
6855 6855

  
6856
  This function check if all given nodes have the needed amount of
6856
  This function checks if all given nodes have the needed amount of
6857 6857
  free disk. In case any node has less disk or we cannot get the
6858
  information from the node, this function raise an OpPrereqError
6858
  information from the node, this function raises an OpPrereqError
6859 6859
  exception.
6860 6860

  
6861 6861
  @type lu: C{LogicalUnit}
......
9137 9137
  """Generate the entire disk layout for a given template type.
9138 9138

  
9139 9139
  """
9140
  #TODO: compute space requirements
9141

  
9142 9140
  vgname = lu.cfg.GetVGName()
9143 9141
  disk_count = len(disk_info)
9144 9142
  disks = []
b/lib/objects.py
1023 1023
    return tuple(all_nodes)
1024 1024

  
1025 1025
  secondary_nodes = property(_ComputeSecondaryNodes, None, None,
1026
                             "List of secondary nodes")
1026
                             "List of names of secondary nodes")
1027 1027

  
1028 1028
  def _ComputeAllNodes(self):
1029 1029
    """Compute the list of all nodes.
......
1051 1051
    return tuple(all_nodes)
1052 1052

  
1053 1053
  all_nodes = property(_ComputeAllNodes, None, None,
1054
                       "List of all nodes of the instance")
1054
                       "List of names of all the nodes of the instance")
1055 1055

  
1056 1056
  def MapLVsByNode(self, lvmap=None, devs=None, node=None):
1057 1057
    """Provide a mapping of nodes to LVs this instance owns.
b/lib/rpc.py
150 150
  """RPC Result class.
151 151

  
152 152
  This class holds an RPC result. It is needed since in multi-node
153
  calls we can't raise an exception just because one one out of many
153
  calls we can't raise an exception just because one out of many
154 154
  failed, and therefore we use this class to encapsulate the result.
155 155

  
156 156
  @ivar data: the data payload, for successful results, or None
......
405 405
    @param body: dictionary with request bodies per host
406 406
    @type read_timeout: int or None
407 407
    @param read_timeout: Read timeout for request
408
    @rtype: dictionary
409
    @return: a dictionary mapping host names to rpc.RpcResult objects
408 410

  
409 411
    """
410 412
    assert read_timeout is not None, \
b/qa/qa_utils.py
166 166
  @param node: if passed, it should be the node on which the command
167 167
      should be executed, instead of the master node (can be either a
168 168
      dict or a string)
169
  @return: the return code of the command
170
  @raise qa_error.Error: if the command fails when it shouldn't or vice versa
169 171

  
170 172
  """
171 173
  if node is None:

Also available in: Unified diff