summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorZaina Afoulki <zenetcontact@gmail.com>2013-08-21 17:14:23 -0500
committerZaina Afoulki <zenetcontact@gmail.com>2013-08-22 16:09:09 -0500
commit1df56a5c4a5c3bf05603f69e8f2a2163d471bc33 (patch)
treeea447f696108ef387d36c01299398d0dab727706 /plugins
parent0ee03b07305d7d0e6c910579e8c66d53741cf9c0 (diff)
downloadnova-1df56a5c4a5c3bf05603f69e8f2a2163d471bc33.tar.gz
Adds Instance UUID to rsync debug logging
This commit adds the instance uuid to the rsync debug output in the debug logs. The issue we were seeing is that when multiple migrations are ongoing at the same time, it's not easy to track the rsync progress of each migration. Fixes: bug #1215629 Change-Id: Iec662bdc0aed1c6f54ecaa062335dc5504ac030f
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/xenserver/xenapi/etc/xapi.d/plugins/migration2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration b/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration
index 02f6c2a54a..bf5af304a9 100755
--- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration
+++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration
@@ -55,7 +55,7 @@ def _rsync_vhds(instance_uuid, host, staging_path, user="root"):
rsync_progress = rsync_proc.stdout.readline()
if not rsync_progress:
break
- logging.debug(rsync_progress)
+ logging.debug("[%s] %s" % (instance_uuid, rsync_progress))
utils.finish_subprocess(rsync_proc, rsync_cmd)