Currently the only instances that can be moved with `gnt-instance move` are
DT_PLAIN and DT_FILE. 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

Reply via email to