Here is customer's current patch to disable to call the problematic function, blockInfo, which generates a huge number of error message unnecessarily.
def inspect_disk_info(self, instance):
domain = self._get_domain_not_shut_off_or_raise(instance)
tree = etree.fromstring(domain.XMLDesc(0))
#JunPark: April 4, 16: to avoid false errors due to a bug of blockInfo with Ceph
for device in filter(
bool,
[target.get("dev")
for target in tree.findall('devices/disk/target')]):
disk = virt_inspector.Disk(device=device)
# block_info = domain.blockInfo(device)
# info = virt_inspector.DiskInfo(capacity=block_info[0],
# allocation=block_info[1],
# physical=block_info[2])
info = virt_inspector.DiskInfo(capacity=0,
allocation=0,
physical=0)
yield (disk, info)
Here is customer's current patch to disable to call the problematic function, blockInfo, which generates a huge number of error message unnecessarily.
def inspect_ disk_info( self, instance):
domain = self._get_ domain_ not_shut_ off_or_ raise(instance)
tree = etree.fromstrin g(domain. XMLDesc( 0))
#JunPark: April 4, 16: to avoid false errors due to a bug of blockInfo with Ceph
for device in filter(
disk = virt_inspector. Disk(device= device)
# block_info = domain. blockInfo( device)
# info = virt_inspector. DiskInfo( capacity= block_info[ 0],
# allocation= block_info[ 1],
# physical= block_info[ 2])
info = virt_inspector. DiskInfo( capacity= 0,
yield (disk, info)