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


[Xen-API] [PATCH] fix test script

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH] fix test script
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Fri, 15 Jan 2010 11:02:50 +0000
Delivery-date: Fri, 15 Jan 2010 02:56:32 -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 David Scott <dave.scott@xxxxxxxxxxxxx>
# Date 1263553350 0
# Node ID d59dad900ef5a7537b5bdf70b7fe029f1d84624c
# Parent  c841e1642ae566aaa78f46ad2cadf6c704feafb8
Fix an HA test script: this failed when there was only a single host in the 

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

diff -r c841e1642ae5 -r d59dad900ef5 scripts/test-ha-sr2
--- a/scripts/test-ha-sr2       Fri Jan 15 10:59:05 2010 +0000
+++ b/scripts/test-ha-sr2       Fri Jan 15 11:02:30 2010 +0000
@@ -11,7 +11,8 @@
   local rule=$1
   for((retry=1;retry<120;retry++)); do
-    IFS=","; for x in $(xe host-list params=ha-statefiles --minimal); do
+    IFS=","; for host in $(xe host-list params=uuid --minimal); do
+      x=$(xe host-param-get uuid=${host} param-name=ha-statefiles)
       if [ ${rule} -eq 2 ]; then
         if [ -n "${x}" ]; then
           # Someone has statefile access -> not SR 2
1 file changed, 2 insertions(+), 1 deletion(-)
scripts/test-ha-sr2 |    3 ++-

Attachment: xen-api.hg.patch
Description: Text Data

xen-api mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] [PATCH] fix test script, David Scott <=