File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -701,6 +701,10 @@ let assert_can_migrate ~__context ~vm ~dest ~live ~vdi_map ~vif_map ~options =
701701 ~host_from: (Helpers. LocalObject source_host_ref)
702702 ~host_to: (Helpers. RemoteObject (remote_rpc, session_id, dest_host_ref));
703703
704+ (* Check that the remote host is enabled and not in maintenance mode*)
705+ let check_host_enabled = XenAPI.Host. get_enabled remote_rpc session_id (dest_host_ref) in
706+ if not check_host_enabled then raise (Api_errors. Server_error (Api_errors. host_disabled,[dest_host]));
707+
704708 (* Ignore vdi_map for now since we won't be doing any mirroring. *)
705709 try inter_pool_metadata_transfer ~__context ~remote_rpc ~session_id ~remote_address ~vm ~vdi_map: [] ~vif_map ~dry_run: true ~live: true
706710 with Xmlrpc_client. Connection_reset ->
You can’t perform that action at this time.
0 commit comments