Revision 9fa567b3

b/lib/client/gnt_node.py
426 426

  
427 427
  op = opcodes.OpNodeMigrate(node_name=args[0], mode=mode,
428 428
                             iallocator=opts.iallocator,
429
                             target_node=opts.dst_node)
429
                             target_node=opts.dst_node,
430
                             ignore_ipolicy=opts.ignore_ipolicy)
430 431

  
431 432
  result = SubmitOpCode(op, cl=cl, opts=opts)
432 433

  
......
899 900
  "migrate": (
900 901
    MigrateNode, ARGS_ONE_NODE,
901 902
    [FORCE_OPT, NONLIVE_OPT, MIGRATION_MODE_OPT, DST_NODE_OPT,
902
     IALLOCATOR_OPT, PRIORITY_OPT],
903
     IALLOCATOR_OPT, PRIORITY_OPT, IGNORE_IPOLICY_OPT],
903 904
    "[-f] <node>",
904 905
    "Migrate all the primary instance on a node away from it"
905 906
    " (only for instances of type drbd)"),
b/lib/cmdlib.py
7612 7612
                                 mode=self.op.mode,
7613 7613
                                 live=self.op.live,
7614 7614
                                 iallocator=self.op.iallocator,
7615
                                 target_node=self.op.target_node)]
7615
                                 target_node=self.op.target_node,
7616
                                 ignore_ipolicy=self.op.ignore_ipolicy)]
7616 7617
      for inst in _GetNodePrimaryInstances(self.cfg, self.op.node_name)
7617 7618
      ]
7618 7619

  
b/lib/opcodes.py
1046 1046
    _PMigrationMode,
1047 1047
    _PMigrationLive,
1048 1048
    _PMigrationTargetNode,
1049
    _PIgnoreIpolicy,
1049 1050
    ("iallocator", None, ht.TMaybeString,
1050 1051
     "Iallocator for deciding the target node for shared-storage instances"),
1051 1052
    ]
b/man/gnt-node.rst
238 238
~~~~~~~
239 239

  
240 240
**migrate** [-f] [--non-live] [--migration-mode=live\|non-live]
241
{*node*}
241
[--ignore-ipolicy] {*node*}
242 242

  
243 243
This command will migrate all instances having the given node as
244 244
primary to their secondary nodes. This works only for instances
......
248 248
``--no-live`` and ``--migration-mode`` can be given to influence
249 249
the migration type.
250 250

  
251
If ``--ignore-ipolicy`` is given any instance policy violations occuring
252
during this operation are ignored.
253

  
251 254
Example::
252 255

  
253 256
    # gnt-node migrate node1.example.com

Also available in: Unified diff