Hidden exception when creating a backup with swift backend

Bug #1434188 reported by Michal Dulko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Michal Dulko

Bug Description

When issuing a "cinder backup-create <vol_id>" command an exception in c-bak logs can be noticed:

Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 851, in emit
    msg = self.format(record)
  File "/usr/local/lib/python2.7/dist-packages/oslo_log/handlers.py", line 69, 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 "/usr/local/lib/python2.7/dist-packages/oslo_log/formatters.py", line 235, 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
TypeError: not enough arguments for format string
Logged from file swift.py, line 149

Changed in cinder:
assignee: nobody → Michal Dulko (michal-dulko-f)
status: New → In Progress
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/165927

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

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

commit a83b93a0da44c37ce4ca7750c4cc1e0149263bf2
Author: Michal Dulko <email address hidden>
Date: Thu Mar 19 21:53:46 2015 +0100

    Fix logging mistake in swift backup driver

    After recent swift driver refactoring a small mistake was introduced
    causing c-bak to log an exception because of wrong number of arguments
    to format a string. This commit fixes the issue.

    Change-Id: I2e322ae6a2495771c89fa25ab5474da20eecc80d
    Closes-Bug: 1434188

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