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

[Xen-devel] [PATCH][resend] xend: Fix regression when create_vbd for tap


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Wei Kong <weikong.cn@xxxxxxxxx>
  • Date: Thu, 26 Nov 2009 10:10:56 +0800
  • Delivery-date: Wed, 25 Nov 2009 18:11:28 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ekXI89HZP5ZGcsWu8m9nZ9bM4FkvpyP/5DoAQd0eZLDbuHQbjW0p/Nh876AlsvwNVk xKaC4EZJp1mUkYpRgyoo74S+cT1HCJhV7Jds5uzvvSRd++6Q4m3Rs6FiW65HWqdqvKBs /RnU9F+XXeeOUvYZWhYgcF0AUHDPfKHOZeMMY=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Need get dev type after create tap device as device_create did.

Signed-off-by: Wei Kong <weikong.cn@gmail.com>

--- a/tools/python/xen/xend/XendDomainInfo.pyÂÂÂÂ 2009-11-25 19:10:51.000000000 +0800
+++ b/tools/python/xen/xend/XendDomainInfo.pyÂÂÂÂ 2009-11-25 19:20:26.000000000 +0800
@@ -3840,7 +3840,8 @@ class XendDomainInfo:

ÂÂÂÂÂÂÂÂÂÂÂÂ try:
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ devid = dev_control.createDevice(config)
-ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ dev_control.waitForDevice(devid)
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ dev_type = self.getBlockDeviceClass(devid)
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ self._waitForDevice(dev_type, devid)
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ self.info.device_update(dev_uuid,
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ cfg_xenapi = {'devid': devid})
ÂÂÂÂÂÂÂÂÂÂÂÂ except Exception, exn:
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.