|
|
|
|
|
|
|
|
|
|
xen-api
[Xen-API] [PATCH 08 of 17] CA-36391: Improve failure behaviour of xe hos
Signed-off-by: Rob Hoes <rob.hoes@xxxxxxxxxx>
# HG changeset patch
# User Rob Hoes <rob.hoes@xxxxxxxxxx>
# Date 1294419411 0
# Node ID bd7e14b4c9e36e5616530a2f14d130845edd3b07
# Parent ee1f39a1e592c6bace29a4a3b65efb53f8162b0f
CA-36391: Improve failure behaviour of xe host-apply-edition
Signed-off-by: Rob Hoes <rob.hoes@xxxxxxxxxx>
diff -r ee1f39a1e592 -r bd7e14b4c9e3 ocaml/xapi/cli_operations.ml
--- a/ocaml/xapi/cli_operations.ml
+++ b/ocaml/xapi/cli_operations.ml
@@ -2571,6 +2571,7 @@
Client.Host.get_by_uuid rpc session_id (List.assoc
"host-uuid" params)
else
get_host_from_session rpc session_id in
+ let current_license_server = Client.Host.get_license_server rpc
session_id host in
let edition = List.assoc "edition" params in
if List.mem_assoc "license-server-address" params then begin
let address = List.assoc "license-server-address" params in
@@ -2592,6 +2593,8 @@
Client.Host.apply_edition rpc session_id host edition
with
| Api_errors.Server_error (name, args) when name =
Api_errors.license_checkout_error ->
+ (* Put back original license server details *)
+ Client.Host.set_license_server rpc session_id host
current_license_server;
let alerts = Client.Message.get_since rpc session_id
(Date.of_float now) in
let print_if_checkout_error (ref, msg) =
if msg.API.message_name =
"LICENSE_NOT_AVAILABLE" || msg.API.message_name = "LICENSE_SERVER_UNREACHABLE"
then
xen-api.hg-08.patch
Description: Text Data
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-API] [PATCH 00 of 17] Refactor feature-restrictions code, Rob Hoes
- [Xen-API] [PATCH 04 of 17] Remove some unused modules from v6d, Rob Hoes
- [Xen-API] [PATCH 05 of 17] Include v6 modules in xapi-client, Rob Hoes
- [Xen-API] [PATCH 02 of 17] Remove unnecessary dependencies to build 'xsh', Rob Hoes
- [Xen-API] [PATCH 06 of 17] Package v6d as a separate RPM, Rob Hoes
- [Xen-API] [PATCH 08 of 17] CA-36391: Improve failure behaviour of xe host-apply-edition,
Rob Hoes <=
- [Xen-API] [PATCH 07 of 17] Function to check license expiry, Rob Hoes
- [Xen-API] [PATCH 01 of 17] Remove no longer used module that was still lying around, Rob Hoes
- [Xen-API] [PATCH 13 of 17] Update ocamldoc, Rob Hoes
- [Xen-API] [PATCH 15 of 17] CA-28853: CLI command returns an error on pressing Tab key --- FIXED, Rob Hoes
- [Xen-API] [PATCH 14 of 17] CP-2137: Allow additional feature flags to be set by v6d, Rob Hoes
- [Xen-API] [PATCH 12 of 17] Clean up doc target of Makefile, Rob Hoes
- [Xen-API] [PATCH 09 of 17] CP-2137: Use rpc-light to implement the xapi<->v6d XMLRPC interface, Rob Hoes
- [Xen-API] [PATCH 03 of 17] Add RPC client to use with rpc-light, Rob Hoes
- [Xen-API] [PATCH 10 of 17] Use pool.restrictions to define which features are enabled, Rob Hoes
- [Xen-API] [PATCH 11 of 17] CP-2137: Switch to the new xapi<->v6d RPC interface, Rob Hoes
|
|
|
|
|