Improved debug ability for log message of cold migration

When cold migration failed because of nova scheduler return no
valid host, conductor only log no valid host, but did not specify
which instance failed.

This patch was specifying instance in the failure log for cold
migration.

Change-Id: Ia9e42f8f253323fb35a58e0be2a24ab043204d29
This commit is contained in:
Jay Lau
2013-11-23 03:00:54 -05:00
parent 00cfbf8e38
commit 5c33906d5a

View File

@@ -690,7 +690,8 @@ class ComputeTaskManager(base.Base):
if reservations:
self.quotas.rollback(context, reservations)
LOG.warning(_("No valid host found for cold migrate"))
LOG.warning(_("No valid host found for cold migrate"),
instance=instance)
return
try: