This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-API] [PATCH] Make Host.evacuate perform *live* migrations

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH] Make Host.evacuate perform *live* migrations
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Mon, 21 Dec 2009 18:29:28 +0000
Delivery-date: Mon, 21 Dec 2009 10:24:55 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User David Scott <dave.scott@xxxxxxxxxxxxx>
# Date 1261420149 0
# Node ID 01d52ccfa972ec2ea7c7d26797b4b5b7a1f48d15
# Parent  d1df586f2ca41591d331cecf58a13dfacd609226
CA-36085: make Host.evacuate call *live* migrate.

We really ought to make this the default sometime.

Signed-off-by: David Scott <dave.scott@xxxxxxxxxxxxx>

diff -r d1df586f2ca4 -r 01d52ccfa972 ocaml/xapi/xapi_host.ml
--- a/ocaml/xapi/xapi_host.ml   Mon Dec 21 15:40:32 2009 +0000
+++ b/ocaml/xapi/xapi_host.ml   Mon Dec 21 18:29:09 2009 +0000
@@ -401,7 +401,7 @@
         let migrate_vm  vm plan = match plan with
              | Migrate host ->
                      Helpers.call_api_functions ~__context
-                (fun rpc session_id -> Client.Client.VM.pool_migrate ~rpc 
~session_id ~vm ~host ~options:[]);
+                (fun rpc session_id -> Client.Client.VM.pool_migrate ~rpc 
~session_id ~vm ~host ~options:[ "live", "true" ]);
                      let progress = Db.Task.get_progress ~__context ~self:task 
                 TaskHelper.set_progress ~__context (progress +. 
              | Error(code, params) -> (* should never happen *) raise 
(Api_errors.Server_error(code, params))
1 file changed, 1 insertion(+), 1 deletion(-)
ocaml/xapi/xapi_host.ml |    2 +-

Attachment: xen-api.hg.patch
Description: Text Data

xen-api mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] [PATCH] Make Host.evacuate perform *live* migrations, David Scott <=