From: yili <yilikernel@gmail.com>
To: Ian.Campbell@citrix.com, msw@amazon.com
Cc: George.Dunlap@eu.citrix.com, ian.jackson@eu.citrix.com,
Yi Li <peteryili@tencent.com>,
xen-devel@lists.xen.org
Subject: [PATCH v2] Xend: handle TapdiskException when creat device
Date: Tue, 25 Mar 2014 01:58:41 -0400 [thread overview]
Message-ID: <1395727121-5844-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>
Acked-by: Matt Wilson <msw@amazon.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
next reply other threads:[~2014-03-25 5:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-25 5:58 yili [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-03-25 5:56 [PATCH v2] Xend: handle TapdiskException when creat device yili
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=1395727121-5844-1-git-send-email-yilikernel@gmail.com \
--to=yilikernel@gmail.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=msw@amazon.com \
--cc=peteryili@tencent.com \
--cc=xen-devel@lists.xen.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).