WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH 0 of 8] [CA-31705] Improves error handling within vm-me

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH 0 of 8] [CA-31705] Improves error handling within vm-memory-target-wait.
From: Jonathan Knowles <jonathan.knowles@xxxxxxxxxxxxx>
Date: Mon, 1 Feb 2010 09:19:02 +0000
Delivery-date: Mon, 01 Feb 2010 01:34:10 -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
The API function "vm-memory-target-wait" has two failure modes. Calls to this 
function can:
1. be cancelled manually by cancelling the associated task; or
2. time out automatically if a guest does not reach its target within a 
predefined period.

Currently, both of these failure modes result in an error string that contains 
an OpaqueRef. Unfortunately, an OpaqueRef is not useful outside of Xapi, so 
there's little point in including one within an error description.

These patches change the failure modes so that for:
1. manual cancellation: the error string contains the external UUID of the 
cancelled task; and for
2. automatic timeout: the error string contains the most-recently read values 
of memory-target and memory-actual.

1 file changed, 52 insertions(+), 37 deletions(-)
ocaml/xapi/xapi_vm_helpers.ml |   89 +++++++++++++++++++++++------------------

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api