OpenStack Compute (Nova)

instance faults overriden by: format requires a mapping error

Reported by Alex Meade on 2012-03-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
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) on 2012-03-06
Changed in nova:
assignee: nobody → Alex Meade (alex-meade)
status: New → In Progress

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) on 2012-03-20
Changed in nova:
milestone: none → essex-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in nova:
milestone: essex-rc1 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers