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>
while True:
test = 0
diff = time.time() - start
- for i in self.getDeviceController('vbd').deviceIDs():
+ vbds = self.getDeviceController('vbd').deviceIDs()
+ taps = self.getDeviceController('tap').deviceIDs()
+ for i in vbds + taps:
test = 1
log.info("Dev %s still active, looping...", i)
time.sleep(0.1)