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
This commit is contained in:
Zaina Afoulki
2013-08-21 17:14:23 -05:00
parent 0ee03b0730
commit 1df56a5c4a
@@ -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)