Revision 94ab995a

b/lib/cli.py
182 182
  "SEP_OPT",
183 183
  "SHOWCMD_OPT",
184 184
  "SHOW_MACHINE_OPT",
185
  "COMPRESS_OPT",
185 186
  "SHUTDOWN_TIMEOUT_OPT",
186 187
  "SINGLE_NODE_OPT",
187 188
  "SPECS_CPU_COUNT_OPT",
......
1345 1346
                         default=constants.DEFAULT_SHUTDOWN_TIMEOUT,
1346 1347
                         help="Maximum time to wait")
1347 1348

  
1349
COMPRESS_OPT = cli_option("--compress", dest="compress",
1350
                          default=constants.IEC_NONE,
1351
                          help="The compression mode to use",
1352
                          choices=list(constants.IEC_ALL))
1353

  
1348 1354
SHUTDOWN_TIMEOUT_OPT = cli_option("--shutdown-timeout",
1349 1355
                                  dest="shutdown_timeout", type="int",
1350 1356
                                  default=constants.DEFAULT_SHUTDOWN_TIMEOUT,
b/lib/client/gnt_instance.py
822 822

  
823 823
  op = opcodes.OpInstanceMove(instance_name=instance_name,
824 824
                              target_node=opts.node,
825
                              compress=opts.compress,
825 826
                              shutdown_timeout=opts.shutdown_timeout,
826 827
                              ignore_consistency=opts.ignore_consistency,
827 828
                              ignore_ipolicy=opts.ignore_ipolicy)
......
1486 1487
  "move": (
1487 1488
    MoveInstance, ARGS_ONE_INSTANCE,
1488 1489
    [FORCE_OPT] + SUBMIT_OPTS +
1489
    [SINGLE_NODE_OPT,
1490
    [SINGLE_NODE_OPT, COMPRESS_OPT,
1490 1491
     SHUTDOWN_TIMEOUT_OPT, DRY_RUN_OPT, PRIORITY_OPT, IGNORE_CONSIST_OPT,
1491 1492
     IGNORE_IPOLICY_OPT],
1492 1493
    "[-f] <instance>", "Move instance to an arbitrary node"
b/man/gnt-instance.rst
1871 1871
^^^^
1872 1872

  
1873 1873
| **move** [-f] [\--ignore-consistency]
1874
| [-n *node*] [\--shutdown-timeout=*N*] [\--submit] [\--print-job-id]
1875
| [\--ignore-ipolicy]
1874
| [-n *node*] [\--compress=*compression-mode*] [\--shutdown-timeout=*N*]
1875
| [\--submit] [\--print-job-id] [\--ignore-ipolicy]
1876 1876
| {*instance*}
1877 1877

  
1878 1878
Move will move the instance to an arbitrary node in the cluster. This
......
1882 1882
long time for big disks (similar to replace-disks for a drbd
1883 1883
instance).
1884 1884

  
1885
The ``--compress`` option is used to specify which compression mode
1886
is used during the move. Valid values are 'none' (the default) and
1887
'gzip'.
1888

  
1885 1889
The ``--shutdown-timeout`` is used to specify how much time to wait
1886 1890
before forcing the shutdown (e.g. ``xm destroy`` in XEN, killing the
1887 1891
kvm process for KVM, etc.). By default two minutes are given to each

Also available in: Unified diff