volume api.py has invalid formatting character

Bug #1411026 reported by Walt Boring
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Critical
Walt Boring

Bug Description

Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 851, in emit
    msg = self.format(record)
  File "/opt/stack/cinder/cinder/openstack/common/log.py", line 711, in format
    return logging.StreamHandler.format(self, record)
  File "/usr/lib/python2.7/logging/__init__.py", line 724, in format
    return fmt.format(record)
  File "/opt/stack/cinder/cinder/openstack/common/log.py", line 675, in format
    return logging.Formatter.format(self, record)
  File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
    record.message = record.getMessage()
  File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
    msg = msg % self.args
ValueError: unsupported format character '{' (0x7b) at index 38
Logged from file api.py, line 510

    @wrap_check_policy
    def initialize_connection(self, context, volume, connector):
        LOG.debug('initialize connection for volume-id: %{volid}s, and '
                  'connector: %{connector}s', {'volid': volume['id'],
                                               'connector': connector})

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

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

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

Reviewed: https://review.openstack.org/147336
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=798f9312547f1d4bd93a16f9fc942bc8be6f7293
Submitter: Jenkins
Branch: master

commit 798f9312547f1d4bd93a16f9fc942bc8be6f7293
Author: Walter A. Boring IV <email address hidden>
Date: Wed Jan 14 23:38:34 2015 +0000

    Fix LOG formatting in api initialize_connection

    initialize_connection had invalid formatting characters
    in the LOG entry.

    Change-Id: I6bd8c7b374ba4c23001a98f2fda0705696e9d47c
    Closes-Bug: #1411026

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: kilo-2 → 2015.1.0
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.