Change in vdsm[ovirt-3.6]: lib: executor: log pool status on discard
fromani at redhat.com
fromani at redhat.com
Wed Nov 11 09:32:24 UTC 2015
Francesco Romani has uploaded a new change for review.
Change subject: lib: executor: log pool status on discard
......................................................................
lib: executor: log pool status on discard
Log the pool size and content when a worker is discarded,
to make troubleshooting and debug easier.
Change-Id: I949181968a97a7bcec703bc36ef9e1a0f30c6858
Bug-Url: https://bugzilla.redhat.com/1250839
Backport-To: 3.6
Signed-off-by: Francesco Romani <fromani at redhat.com>
---
M lib/vdsm/executor.py
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/17/48417/1
diff --git a/lib/vdsm/executor.py b/lib/vdsm/executor.py
index 1554920..38545df 100644
--- a/lib/vdsm/executor.py
+++ b/lib/vdsm/executor.py
@@ -110,6 +110,11 @@
with self._lock:
if self._running:
self._add_worker()
+ # this is a debug aid, it is not that important to be precise;
+ # intentionally done outside the lock
+ self._log.info('pool[%i]: (%s)',
+ len(self._workers),
+ ' '.join(str(w) for w in self._workers))
def _worker_stopped(self, worker):
"""
--
To view, visit https://gerrit.ovirt.org/48417
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I949181968a97a7bcec703bc36ef9e1a0f30c6858
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.6
Gerrit-Owner: Francesco Romani <fromani at redhat.com>
More information about the vdsm-patches
mailing list