Skip to content

Commit 4986629

Browse files
author
xen-git
committed
Merge commit 'e5488a18d88e62d8130e482ea431c3904a007021'
2 parents 8316932 + 88a57a0 commit 4986629

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ocaml/xapi/xapi_vm_migrate.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,9 @@ let assert_can_migrate ~__context ~vm ~dest ~live ~vdi_map ~vif_map ~options =
552552
if nb_snapshots > 1 then
553553
raise (Api_errors.Server_error(Api_errors.vm_has_too_many_snapshots, [Ref.string_of vm]));
554554
(* Ignore vdi_map for now since we won't be doing any mirroring. *)
555-
inter_pool_metadata_transfer ~__context ~remote_rpc ~session_id ~remote_address ~vm ~vdi_map:[] ~dry_run:true ~live
555+
try inter_pool_metadata_transfer ~__context ~remote_rpc ~session_id ~remote_address ~vm ~vdi_map:[] ~dry_run:true ~live
556+
with Xmlrpc_client.Connection_reset ->
557+
raise (Api_errors.Server_error(Api_errors.cannot_contact_host, [remote_address]))
556558

557559
let migrate_send ~__context ~vm ~dest ~live ~vdi_map ~vif_map ~options =
558560
assert_licensed_storage_motion ~__context ;

0 commit comments

Comments
 (0)