On Mon, Oct 6, 2014 at 4:42 PM, 'Aaron Karper' via ganeti-devel
<[email protected]> wrote:
> Currently the only instances that can be moved with `gnt-instance move` are
> DT_PLAIN and DT_FILE.

I haven't tested the other ones, but at the very least, DRBD instances
too can be moved.

Other disk types that don't even need copying (such as
> DT_GLUSTER, DT_RBD, and DT_SHARED_FILE) fail with an error.
>
> This patch series allows these additional disk types to be "moved" while
> actually skipping the copying between the nodes.
>
> Aaron Karper (3):
>   Create class of disk templates that support moving instances
>   Copy instance's disks only if disk is copyable
>   Add test that checks that disks are moved
>
>  Makefile.am                                   |  1 +
>  lib/cmdlib/instance.py                        | 36 ++++++++--------
>  src/Ganeti/Constants.hs                       |  7 ++++
>  test/py/cmdlib/instance_unittest.py           | 20 ++++++++-
>  test/py/cmdlib/testsupport/cmdlib_testcase.py | 13 ++++++
>  test/py/cmdlib/testsupport/masterd_mock.py    | 59 
> +++++++++++++++++++++++++++
>  6 files changed, 115 insertions(+), 21 deletions(-)
>  create mode 100644 test/py/cmdlib/testsupport/masterd_mock.py
>
> --
> 2.1.0.rc2.206.gedb03e5
>



-- 
Google Germany GmbH
Dienerstr. 12
80331 München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Christine Elizabeth Flores

Reply via email to