[Bug 507329] New: Xend doesn't handle tap disks properly.
http://bugzilla.novell.com/show_bug.cgi?id=507329 Summary: Xend doesn't handle tap disks properly. Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Xen AssignedTo: jdouglas@novell.com ReportedBy: scott@dier.name QAContact: qa@suse.de Found By: --- Created an attachment (id=294595) --> (http://bugzilla.novell.com/attachment.cgi?id=294595) Patch for issue User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/528.18.1 (KHTML, like Gecko) Version/4.0 Safari/528.17 Had a problem where tap devices did not disconnect after the first time a domU was run. http://www.nabble.com/-PATCH--Fix-device-release-for-tap-devices-td20731672.... had a patch. The patch fixed my problem. diff -r 98d48f7680db tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Wed Nov 19 19:13:22 2008 +0000 +++ b/tools/python/xen/xend/XendDomainInfo.py Fri Nov 28 16:22:28 2008 +0900 @@ -1983,13 +1983,21 @@ class XendDomainInfo: for devclass in XendDevices.valid_devices(): for dev in t.list(devclass): try: + true_devclass = devclass + if devclass == 'vbd': + # In the case of "vbd", the true device class + # may possibly be "tap". Just in case, verify + # device class. + devid = dev.split('/')[-1] + true_devclass = self.getBlockDeviceClass(devid) log.debug("Removing %s", dev); - self.destroyDevice(devclass, dev, False); + self.destroyDevice(true_devclass, dev, False); except: # Log and swallow any exceptions in removal -- # there's nothing more we can do. log.exception("Device release failed: %s; %s; %s", - self.info['name_label'], devclass, dev) + self.info['name_label'], + true_devclass, dev) finally: t.abort() Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=507329
User scott@dier.name added comment
http://bugzilla.novell.com/show_bug.cgi?id=507329#c1
--- Comment #1 from Scott Dier
http://bugzilla.novell.com/show_bug.cgi?id=507329
Jason Douglas
http://bugzilla.novell.com/show_bug.cgi?id=507329
Jason Douglas
http://bugzilla.novell.com/show_bug.cgi?id=507329
User jfehlig@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=507329#c2
James Fehlig
http://bugzilla.novell.com/show_bug.cgi?id=507329
User jfehlig@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=507329#c3
James Fehlig
participants (1)
-
bugzilla_noreply@novell.com