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 2 of 7] [PATCH] xenserver: Suppress error message for e

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH 2 of 7] [PATCH] xenserver: Suppress error message for expected non-error condition
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Thu, 8 Jul 2010 14:31:43 +0100
Delivery-date: Thu, 08 Jul 2010 06:48:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1278595901@ely>
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>
References: <patchbomb.1278595901@ely>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.4.3
# HG changeset patch
# User Ben Pfaff <blp@xxxxxxxxxx>
# Date 1278595885 -3600
# Node ID aaeba1119fafdb49f821244d51f08f36c2178a93
# Parent  f0f9bfec4fe259e0f073a4bcd8bf091c2c6dc2f9
[PATCH] xenserver: Suppress error message for expected non-error condition.

>From d5bac2a0cfea7efc27c4f06de132460390a2e920 Mon Sep 17 00:00:00 2001
Date: Tue, 2 Mar 2010 13:52:33 -0800
Signed-off-by: Ben Pfaff <blp@xxxxxxxxxx>
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 scripts/vif |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff -r f0f9bfec4fe2 -r aaeba1119faf scripts/vif
--- a/scripts/vif       Thu Jul 08 14:31:24 2010 +0100
+++ b/scripts/vif       Thu Jul 08 14:31:25 2010 +0100
@@ -172,7 +172,10 @@
            # Nothing to do
            ;;
        vswitch)
-           $vsctl del-port $dev
+            # If ovs-brcompatd is running, it might already have deleted the
+            # port.  Use --if-exists to suppress the error that would otherwise
+            # arise in that case.
+           $vsctl -- --if-exists del-port $dev
            ;;
     esac
 }
 scripts/vif |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)


Attachment: txturGbmUfJOr.txt
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>