Revision 1d42996b

b/doc/iallocator.rst
285 285
Relocation:
286 286

  
287 287
  relocate_from
288
     a list of nodes to move the instance away from (note that with
289
     Ganeti 2.0, this list will always contain a single node, the
290
     current secondary of the instance); type *list of strings*
288
     a list of nodes to move the instance away from; for DRBD-based
289
     instances, this will contain a single node, the current secondary
290
     of the instance, whereas for shared-storage instance, this will
291
     contain also a single node, the current primary of the instance;
292
     type *list of strings*
291 293

  
292 294
As for ``node-evacuate``, it needs the following request arguments:
293 295

  
b/lib/cmdlib.py
8013 8013
    ial = IAllocator(self.cfg, self.rpc,
8014 8014
                     mode=constants.IALLOCATOR_MODE_RELOC,
8015 8015
                     name=self.instance_name,
8016
                     # TODO See why hail breaks with a single node below
8017
                     relocate_from=[self.instance.primary_node,
8018
                                    self.instance.primary_node],
8016
                     relocate_from=[self.instance.primary_node],
8019 8017
                     )
8020 8018

  
8021 8019
    ial.Run(self.lu.op.iallocator)

Also available in: Unified diff