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

[Xen-API] [PATCH] fix test script



# 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 
pool.

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
     finished=1
-    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
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®.