ValueError: unsupported format character '{' (iscsi.py)

Bug #1503354 reported by Dan Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ironic-python-agent
Fix Released
High
Jay Faulkner

Bug Description

Using the latest ironic_python_agent code I'm seeing the following exception:

Traceback (most recent call last):
  File "/usr/lib64/python2.7/logging/__init__.py", line 851, in emit
    msg = self.format(record)
  File "/usr/lib/python2.7/site-packages/oslo_log/handlers.py", line 121, in format
    return logging.StreamHandler.format(self, record)
  File "/usr/lib64/python2.7/logging/__init__.py", line 724, in format
    return fmt.format(record)
  File "/usr/lib/python2.7/site-packages/oslo_log/formatters.py", line 236, in format
    return logging.Formatter.format(self, record)
  File "/usr/lib64/python2.7/logging/__init__.py", line 464, in format
    record.message = record.getMessage()
  File "/usr/lib64/python2.7/logging/__init__.py", line 328, in getMessage
    msg = msg % self.args
ValueError: unsupported format character '{' (0x7b) at index 33
Logged from file iscsi.py, line 58

Dan Prince (dan-prince)
Changed in ironic:
assignee: nobody → Dan Prince (dan-prince)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Dmitry Tantsur (divius) wrote :

I guess you meant to report this against IPA

affects: ironic → ironic-python-agent
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic-python-agent (master)

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

Changed in ironic-python-agent:
assignee: Dan Prince (dan-prince) → Jay Faulkner (jason-oldos)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic-python-agent (master)

Reviewed: https://review.openstack.org/231634
Committed: https://git.openstack.org/cgit/openstack/ironic-python-agent/commit/?id=5bbb9ded082f2cfde5e8877e9f33294eb93a5fb7
Submitter: Jenkins
Branch: master

commit 5bbb9ded082f2cfde5e8877e9f33294eb93a5fb7
Author: Dan Prince <email address hidden>
Date: Tue Oct 6 13:46:08 2015 -0400

    Fix log formatting error in iscsi.py

    This fixes a ValueError exception that would occur if
    log debug was enabled in IPA.

    Change-Id: Id95f291dd77d69e7d4dd4f945c6c151db7a0646b
    Closes-bug: #1503354

Changed in ironic-python-agent:
status: In Progress → Fix Committed
Dmitry Tantsur (divius)
Changed in ironic-python-agent:
status: Fix Committed → Fix Released
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.