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] extra debugging for quicktest

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH] extra debugging for quicktest
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Thu, 1 Apr 2010 11:55:22 +0100
Delivery-date: Thu, 01 Apr 2010 03:52:25 -0700
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 1270119289 -3600
# Node ID 73d69c58c2228a4968563839a9021c3a255b8a9e
# Parent  65cb131a24a5d7a4c5f5428291a68151ef1d10dc
CA-39519: add extra debugging to quicktest

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

diff -r 65cb131a24a5 -r 73d69c58c222 ocaml/xapi/quicktest_storage.ml
--- a/ocaml/xapi/quicktest_storage.ml   Thu Apr 01 11:53:47 2010 +0100
+++ b/ocaml/xapi/quicktest_storage.ml   Thu Apr 01 11:54:49 2010 +0100
@@ -546,11 +546,15 @@
   | [ _, plugin ] ->
       let caps = plugin.API.sM_capabilities in
       debug test (Printf.sprintf "Capabilities reported: [ %s ]" 
(String.concat " " caps));
+         let oc = Client.SR.get_other_config !rpc session_id sr in
+         debug test (Printf.sprintf "SR.other_config = [ %s ]" (String.concat 
"; " (List.map (fun (k, v) -> k ^ ":" ^ v) oc)));
+         let avoid_vdi_create = avoid_vdi_create session_id sr in
+         debug test (Printf.sprintf "avoid_vdi_create = %b" avoid_vdi_create);
       (* Mirror the special handling for the XenServer Tools SR; the
          create and delete capabilities are forbidden in that special case.
          See Xapi_sr.valid_operations. *)
       let caps =
-        if avoid_vdi_create session_id sr then
+        if avoid_vdi_create then
           List.filter
             (fun cap -> not (List.mem cap [ vdi_create; vdi_delete ])) caps
         else
1 file changed, 5 insertions(+), 1 deletion(-)
ocaml/xapi/quicktest_storage.ml |    6 +++++-


Attachment: xen-api.hg.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] extra debugging for quicktest, David Scott <=