Inter-cluster instance moves depends on exporting an instance. For file-based instance, exporting is not supported. Therefore, this patch disables inter-cluster instance moves for file-based instances and informs the user with an expressive error message.
Signed-off-by: Helga Velroyen <[email protected]> --- tools/move-instance | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/move-instance b/tools/move-instance index 24bb496..f7a4b34 100755 --- a/tools/move-instance +++ b/tools/move-instance @@ -561,6 +561,9 @@ class MoveSourceExecutor(object): logging.info("Retrieving instance information from source cluster") instinfo = self._GetInstanceInfo(src_client, mrt.PollJob, mrt.move.src_instance_name) + if instinfo["disk_template"] == constants.DT_FILE: + raise Error("Inter-cluster move of file-based instances is not" + " supported.") logging.info("Preparing export on source cluster") expinfo = self._PrepareExport(src_client, mrt.PollJob, -- 1.8.2.1
