KeyError of log message in compute/api/resize()

Bug #1084335 reported by wangpan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
wangpan

Bug Description

In the resize method of compute/api.py(nova-folsom), the warning log of quota exceeded need a parameter 'msg', but it doesn't exist actually, so when this log was run, a KeyError of 'msg' will be raised.
I think this is a copy-paste mistake.
LOG.warn(_("%(overs)s quota exceeded for %(pid)s,"
                       " tried to resize instance. %(msg)s"), locals())

wangpan (hzwangpan)
Changed in nova:
assignee: nobody → wangpan (hzwangpan)
description: updated
Changed in nova:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/17098

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/17098
Committed: http://github.com/openstack/nova/commit/027248a9bbc906940de948d75b58709e0971141f
Submitter: Jenkins
Branch: master

commit 027248a9bbc906940de948d75b58709e0971141f
Author: Wangpan <email address hidden>
Date: Thu Nov 29 10:06:39 2012 +0800

    Fix KeyError of log message in compute/api.py

    Remove the NOT exist parameter 'msg' in log.

    Fixes: bug #1084335

    Change-Id: I8bc7a32edcff5e61505f2bc564bae916a753a97f

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-2 → 2013.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.