Adam Litke has uploaded a new change for review.

Change subject: virt: Change log level for disk stats collection failure
......................................................................

virt: Change log level for disk stats collection failure

When hotplugging a new disk, samples for the newly added device will not
be immediately available which results in a KeyError Traceback in
vdsm.log.  Since this condition is expected, downgrade the logging level
from exception to warning.  In the case of a hot plugged disk, the
failure resolves once enough samples have been collected.

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1112998

Change-Id: If04623778b590f1f76eedbdcb2eda433d0a24514
Signed-off-by: Adam Litke <[email protected]>
---
M vdsm/virt/vm.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/77/29677/1

diff --git a/vdsm/virt/vm.py b/vdsm/virt/vm.py
index 760627a..f94589f 100644
--- a/vdsm/virt/vm.py
+++ b/vdsm/virt/vm.py
@@ -541,7 +541,7 @@
                 try:
                     dLatency = _avgLatencyCalc(sInfo[dName], eInfo[dName])
                 except (KeyError, TypeError):
-                    self._log.exception("Disk %s latency not available", dName)
+                    self._log.warning("Disk %s latency not available", dName)
 
             stats[dName].update(dLatency)
 


-- 
To view, visit http://gerrit.ovirt.org/29677
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If04623778b590f1f76eedbdcb2eda433d0a24514
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Adam Litke <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to