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] Work around upgrade + patch GC race

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH] Work around upgrade + patch GC race
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Mon, 4 Jan 2010 14:06:07 +0000
Delivery-date: Mon, 04 Jan 2010 06:00:04 -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 1262613887 0
# Node ID 8b109110ce33a0fa61dc9b4e1c4855740637000d
# Parent  5be4064ee1b3a48a813d2db79d367c140bd47e23
CA-35549: make it less likely that we hit the upgrade race by inserting a 30s 
delay in the xapi-rolling-upgrade 'stop' path.

A proper fix for this would either re-order the dbsync updates or would involve 
redesigning the way patches are GCed to make it generally more robust.

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

diff -r 5be4064ee1b3 -r 8b109110ce33 scripts/xapi-rolling-upgrade-miami
--- a/scripts/xapi-rolling-upgrade-miami        Thu Dec 24 16:40:15 2009 +0000
+++ b/scripts/xapi-rolling-upgrade-miami        Mon Jan 04 14:04:47 2010 +0000
@@ -24,6 +24,8 @@
+    logger -t upgrade "Sleeping for 30s"
+    sleep 30s
     for i in $($XE sr-list other-config:xenserver_tools_sr=true params=uuid 
--minimal | sed 's/,/ /g'); do
       echo Renaming $i
       $XE sr-param-set uuid=$i name-label="XenServer Tools" 
name-description="XenServer Tools ISOs"
1 file changed, 2 insertions(+)
scripts/xapi-rolling-upgrade-miami |    2 ++

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

xen-api mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] [PATCH] Work around upgrade + patch GC race, David Scott <=