Hide Forgot
Description of problem: - start new vm with floppy attached - query logs read-221::ERROR::2012-02-16 17:12:43,462::utils::399::vm.Vm::(collect) vmId=`2aed27de-bc3f-40cb-85b3-1839f8e38279`::Stats function failed: <AdvancedStatsFunction _sampleDiskL atency at 0x207a7a0> Traceback (most recent call last): File "/usr/share/vdsm/utils.py", line 395, in collect statsFunction() File "/usr/share/vdsm/utils.py", line 272, in __call__ retValue = self._function(*args, **kwargs) File "/usr/share/vdsm/libvirtvm.py", line 158, in _sampleDiskLatency diskLatency[vmDrive.name] = stats[vmDrive.alias] AttributeError: 'Drive' object has no attribute 'alias' Inside the code, vdsm catch the exception from type KeyError, but not AttributeError. 156 for vmDrive in self._vm._devices[vm.DISK_DEVICES]: 157 try: 158 diskLatency[vmDrive.name] = stats[vmDrive.alias] 159 except KeyError, AttributeError: 160 diskLatency[vmDrive.name] = {'rd_op':0, 'wr_op':0, 'flush_op':0, 161 'rd_total_time_ns':0, 162 'wr_total_time_ns':0, 163 'flush_total_time_ns':0} 164 self._log.warn("Disk %s latency not available", vmDrive.name) last commit in git: b183748699b00fc1396059e946d5772eaa471e26
need to check on downstream.
(In reply to comment #1) > need to check on downstream. Not reproducible 3.1 downstream build (si3), vdsm-4.9.6-8.