ia64/xen-unstable

changeset 19312:2cd96ef83996

xend: Test tap devices in testDeviceComplete()

XendDomainInfo.testDeviceComplete() should check block devices have
shutdown correctly but it only considers vbd class devices and ignores
tap devices. The attached patch changes testDeviceComplete() to wait
for both vbd and tap devices to be shutdown correctly.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Mar 11 10:10:15 2009 +0000 (2009-03-11)
parents e6b7b747d122
children cfacba42091c
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Wed Mar 11 10:09:21 2009 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Wed Mar 11 10:10:15 2009 +0000
     1.3 @@ -2888,7 +2888,9 @@ class XendDomainInfo:
     1.4          while True:
     1.5              test = 0
     1.6              diff = time.time() - start
     1.7 -            for i in self.getDeviceController('vbd').deviceIDs():
     1.8 +            vbds = self.getDeviceController('vbd').deviceIDs()
     1.9 +            taps = self.getDeviceController('tap').deviceIDs()
    1.10 +            for i in vbds + taps:
    1.11                  test = 1
    1.12                  log.info("Dev %s still active, looping...", i)
    1.13                  time.sleep(0.1)