]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
update error log arguements in filter scheduler
authorxiaoxi_chen <xiaoxi.chen@intel.com>
Mon, 11 Mar 2013 03:06:21 +0000 (11:06 +0800)
committerxiaoxi_chen <xiaoxi.chen@intel.com>
Mon, 11 Mar 2013 07:39:02 +0000 (15:39 +0800)
There's one log issue in filter scheduler fell off radar in previous
fix, this change closes the gap.

Fixes: bug #1130867
Change-Id: I78def31bd9ff4349cd1332cb96ef6311ce9eac20

cinder/scheduler/filter_scheduler.py

index 24feebb4c2877343622419a2d9fcf9fb04cb0b40..71caf16dc0f205500bdb5d210a7c7ba3ac4b9ac6 100644 (file)
@@ -128,9 +128,9 @@ class FilterScheduler(driver.Scheduler):
             return  # no previously attempted hosts, skip
 
         last_host = hosts[-1]
-        msg = _("Error from last vol-service: %(last_host)s : "
-                "%(exc)s") % locals()
-        LOG.error(msg, volume_id=volume_id)
+        msg = _("Error scheduling %(volume_id)s from last vol-service: "
+                "%(last_host)s : %(exc)s") % locals()
+        LOG.error(msg)
 
     def _populate_retry(self, filter_properties, properties):
         """Populate filter properties with history of retries for this