Skip to content
Snippets Groups Projects
Commit fc2318f7 authored by Helga Velroyen's avatar Helga Velroyen
Browse files

Disable inter-cluster instance move for file instances


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: default avatarHelga Velroyen <helgav@google.com>
Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
parent f24d3d3b
No related branches found
No related tags found
No related merge requests found
......@@ -124,6 +124,9 @@ Since beta3:
- Fix failure path for instance storage type conversion (Issue 229)
- Update htools text backend documentation
- Improve the renew-crypto section of :manpage:`gnt-cluster(8)`
- Disable inter-cluster instance move for file-based instances, because
it is dependant on instance export, which is not supported for
file-based instances. (Issue 414)
Version 2.7.0 beta3
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment