def _get_all_block_devices(self):
    'Return all block devices in use on this node.'
    devices = []
    for dom in self._list_instance_domains():
        try:
            doc = etree.fromstring(dom.XMLDesc(0))
        except libvirt.libvirtError as e:
            LOG.warn((_LW("couldn't obtain the XML from domain: %(uuid)s, exception: %(ex)s") % {'uuid': dom.UUIDString(), 'ex': e}))
            continue
        except Exception:
            continue
        ret = doc.findall('./devices/disk')
        for node in ret:
            if (node.get('type') != 'block'):
                continue
            for child in node.getchildren():
                if (child.tag == 'source'):
                    devices.append(child.get('dev'))
    return devices
Return all block devices in use on this node.
def _get_all_block_devices(self):
    
    devices = []
    for dom in self._list_instance_domains():
        try:
            doc = etree.fromstring(dom.XMLDesc(0))
        except libvirt.libvirtError as e:
            LOG.warn((_LW("couldn't obtain the XML from domain: %(uuid)s, exception: %(ex)s") % {'uuid': dom.UUIDString(), 'ex': e}))
            continue
        except Exception:
            continue
        ret = doc.findall('./devices/disk')
        for node in ret:
            if (node.get('type') != 'block'):
                continue
            for child in node.getchildren():
                if (child.tag == 'source'):
                    devices.append(child.get('dev'))
    return devices