[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] [PATCH 0 of 8] [CA-31705] Improves error handling within vm-memory-target-wait.



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.