Formatting error for error messages

Bug #877417 reported by haribabu kasturi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Philip Knouff

Bug Description

We integrated Diablo with yagi to check error notifications. While checking the following scenarios we are getting “%s” instead of proper error messages.

1. Start all nova services , then stop only nova-compute and try to reboot a running instance.
2. Try to remove an image using euca-deregister with a non existing image ID.

Affects nova/api/ec2

Revision history for this message
srikanth billapati (srikanth-billapati) wrote :

I have fixed it in my local environment and here are the changes.

1. Goto line number 488 in ‘nova/api/ec2/__init__.py’ file
2. Replace the line LOG.error("%s: %s" % code, message, context=context) with LOG.error(_('%(code)s: %(message)s') % locals())

Changed in nova:
status: New → Triaged
importance: Undecided → Low
Changed in nova:
assignee: nobody → Philip Knouff (philip-knouff)
status: Triaged → In Progress
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/3077

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/3077
Committed: http://github.com/openstack/nova/commit/7afc12b9a21abc1c99a70fd61b24d10746ed1bd2
Submitter: Jenkins
Branch: master

commit 7afc12b9a21abc1c99a70fd61b24d10746ed1bd2
Author: Philip Knouff <email address hidden>
Date: Mon Jan 16 17:04:13 2012 -0500

    Fixed the log line

    Fixed bug #877417

    Change-Id: Iddb9a6d4eb798b0f41f0ef1ab01cb02d16d16dbe

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → essex-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-3 → 2012.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.