From 3a0eb6d1561f5ecbe3db7a60100275fe0d7c60c0 Mon Sep 17 00:00:00 2001 From: Jian Wen Date: Thu, 10 Jan 2013 21:34:46 +0800 Subject: [PATCH] Add host name to log message for _local_delete Better log message will hopefully make it easier for operators to diagnose. Change-Id: I447f7530a05f9af6e152f1e5d484027684795b27 --- nova/compute/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nova/compute/api.py b/nova/compute/api.py index 5e191556d9e9..28d334917488 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -971,8 +971,8 @@ class API(base.Base): QUOTAS.rollback(context, reservations) def _local_delete(self, context, instance, bdms): - LOG.warning(_('host for instance is down, deleting from ' - 'database'), instance=instance) + LOG.warning(_("instance's host %s is down, deleting from " + "database") % instance['host'], instance=instance) instance_uuid = instance['uuid'] self.db.instance_info_cache_delete(context, instance_uuid) compute_utils.notify_about_instance_usage(