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] CA-35348: CLI call to update pack info

To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH] CA-35348: CLI call to update pack info
From: Rob Hoes <rob.hoes@xxxxxxxxxx>
Date: Thu, 10 Dec 2009 09:58:23 +0000
Delivery-date: Thu, 10 Dec 2009 01:58:25 -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 Rob Hoes <rob.hoes@xxxxxxxxxx>
CA-35348: CLI call to update pack info

Use "xe host-refresh-pack-info host-uuid=..." to update Host.software_version 
after installing a new supplemental pack (done by the installer).

Signed-off-by: Rob Hoes <rob.hoes@xxxxxxxxxx>

diff -r 9305bc8628d1 ocaml/xapi/cli_frontend.ml
--- a/ocaml/xapi/cli_frontend.ml        Wed Dec 09 10:29:57 2009 +0000
+++ b/ocaml/xapi/cli_frontend.ml        Thu Dec 10 09:57:08 2009 +0000
@@ -681,6 +681,15 @@
       optn=["config:"];
       help="Disables external authentication in a host";
       implementation= No_fd Cli_operations.host_disable_external_auth;
+      flags=[Hidden];
+    };
+
+   "host-refresh-pack-info",
+    {
+      reqd=["host-uuid"];
+      optn=[""];
+      help="Refreshes Host.software_version";
+      implementation= No_fd Cli_operations.host_refresh_pack_info;
       flags=[Hidden];
     };
 
diff -r 9305bc8628d1 ocaml/xapi/cli_operations.ml
--- a/ocaml/xapi/cli_operations.ml      Wed Dec 09 10:29:57 2009 +0000
+++ b/ocaml/xapi/cli_operations.ml      Thu Dec 10 09:57:08 2009 +0000
@@ -3520,6 +3520,11 @@
   let host = Client.Host.get_by_uuid rpc session_id host_uuid in
   let config = read_map_params "config" params in
   Client.Host.disable_external_auth rpc session_id host config
+  
+let host_refresh_pack_info printer rpc session_id params =
+  let host_uuid = List.assoc "host-uuid" params in
+  let host = Client.Host.get_by_uuid rpc session_id host_uuid in
+  Client.Host.refresh_pack_info rpc session_id host
 
 let patch_upload fd printer rpc session_id params = 
   let filename = List.assoc "file-name" params in

Attachment: xe-refresh-pack-info
Description: Text document

_______________________________________________
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] CA-35348: CLI call to update pack info, Rob Hoes <=