All of lore.kernel.org
 help / color / mirror / Atom feed
From: yili <yilikernel@gmail.com>
To: Xen-devel@lists.xen.org
Cc: wei.liu2@citrix.com, Yi Li <peteryili@tencent.com>
Subject: [PATCH v5] Xend: handle TapdiskException when creat device
Date: Sat, 22 Mar 2014 14:28:21 -0400	[thread overview]
Message-ID: <1395512901-6566-1-git-send-email-yilikernel@gmail.com> (raw)

From: Yi Li <peteryili@tencent.com>

Handle the TapdiskException when creat device failed
for release some info.

Signed-off-by: Yi Li <peteryili@tencent.com>
---
 tools/python/xen/xend/XendDomainInfo.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py
index 8d4ff5c..2270ab1 100644
--- a/tools/python/xen/xend/XendDomainInfo.py
+++ b/tools/python/xen/xend/XendDomainInfo.py
@@ -65,7 +65,7 @@ from xen.xend.XendConstants import *
 from xen.xend.XendAPIConstants import *
 from xen.xend.XendCPUPool import XendCPUPool
 from xen.xend.server.DevConstants import xenbusState
-from xen.xend.server.BlktapController import TapdiskController
+from xen.xend.server.BlktapController import TapdiskController, TapdiskException
 
 from xen.xend.XendVMMetrics import XendVMMetrics
 
@@ -861,7 +861,7 @@ class XendDomainInfo:
                     # blktap1
                     dev_type = self.getBlockDeviceClass(devid)
                 self._waitForDevice(dev_type, devid)
-            except VmError, ex:
+            except (VmError, TapdiskException), ex:
                 del self.info['devices'][dev_uuid]
                 if dev_type == 'pci':
                     for dev in dev_config_dict['devs']:
-- 
1.6.0.2

             reply	other threads:[~2014-03-22 18:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-22 18:28 yili [this message]
2014-03-24 10:22 ` [PATCH v5] Xend: handle TapdiskException when creat device Wei Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1395512901-6566-1-git-send-email-yilikernel@gmail.com \
    --to=yilikernel@gmail.com \
    --cc=Xen-devel@lists.xen.org \
    --cc=peteryili@tencent.com \
    --cc=wei.liu2@citrix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.