Revision 941b9309 lib/rapi/client.py

b/lib/rapi/client.py
1022 1022
                             None, None)
1023 1023

  
1024 1024
  def EvacuateNode(self, node, iallocator=None, remote_node=None,
1025
                   dry_run=False):
1025
                   dry_run=False, early_release=False):
1026 1026
    """Evacuates instances from a Ganeti node.
1027 1027

  
1028 1028
    @type node: str
......
1033 1033
    @param remote_node: node to evaucate to
1034 1034
    @type dry_run: bool
1035 1035
    @param dry_run: whether to perform a dry run
1036
    @type early_release: bool
1037
    @param early_release: whether to enable parallelization
1036 1038

  
1037
    @rtype: int
1038
    @return: job id
1039
    @rtype: list
1040
    @return: list of (job ID, instance name, new secondary node); if
1041
        dry_run was specified, then the actual move jobs were not
1042
        submitted and the job IDs will be C{None}
1039 1043

  
1040
    @raises GanetiApiError: if an iallocator and remote_node are both specified
1044
    @raises GanetiApiError: if an iallocator and remote_node are both
1045
        specified
1041 1046

  
1042 1047
    """
1043 1048
    if iallocator and remote_node:
......
1050 1055
      query.append(("remote_node", remote_node))
1051 1056
    if dry_run:
1052 1057
      query.append(("dry-run", 1))
1058
    if early_release:
1059
      query.append(("early_release", 1))
1053 1060

  
1054 1061
    return self._SendRequest(HTTP_POST,
1055 1062
                             ("/%s/nodes/%s/evacuate" %

Also available in: Unified diff