instance faults overriden by: format requires a mapping error

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

Bug Description

The instance faults table is reporting the incorrect error:

format requires a mappingformat requires a mapping
  File "/usr/lib/python2.6/dist-packages/nova/compute/manager.py", line 171, in decorated_function
    return function(self, context, instance_uuid, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/nova/compute/manager.py", line 644, in run_instance
    self._run_instance(context, instance_uuid, **kwargs)
  File "/usr/lib/python2.6/dist-packages/nova/compute/manager.py", line 443, in _run_instance
    self._shutdown_instance_even_if_deleted(context, instance_uuid)
  File "/usr/lib/python2.6/dist-packages/nova/compute/manager.py", line 403, in _shutdown_instance_even_if_deleted
    "instance"), instance=instance_uuid)
  File "/usr/lib/python2.6/logging/__init__.py", line 1336, in exception
    msg, kwargs = self.process(msg, kwargs)
  File "/usr/lib/python2.6/dist-packages/nova/log.py", line 160, in process
    instance_extra = FLAGS.instance_format % instance

This is because there are a few log lines in compute manager passing instance=instance_uuid but it expects a dictionary.

Alex Meade (alex-meade)
Changed in nova:
assignee: nobody → Alex Meade (alex-meade)
status: New → 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/4966

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

Reviewed: https://review.openstack.org/4966
Committed: http://github.com/openstack/nova/commit/b425676da955b13dd033db6ac67ba1bb7dcf28c8
Submitter: Jenkins
Branch: master

commit b425676da955b13dd033db6ac67ba1bb7dcf28c8
Author: Alex Meade <email address hidden>
Date: Tue Mar 6 16:28:00 2012 +0000

    Fixing incorrect use of instance keyword in logging.

    Fixes bug 948154

    Change-Id: I8adc48482c26528d1e671c8e038c23caaa0f861d

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