%(tenant_id)s referenced in unit tests logging statement but doesn't exist in locals()

Bug #837174 reported by Brad Hall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Brad Hall
quantum (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Precise by Yolanda Robla

Bug Description

Which generates errors like this when running the tests:

Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 842, in emit
    msg = self.format(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 719, in format
    return fmt.format(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
KeyError: u'tenant_id'
Logged from file test_api.py, line 275

Line 275: LOG.debug("Deleting network %(network_id)s"\
                  " of tenant %(tenant_id)s", locals())

Related branches

Brad Hall (bgh)
Changed in quantum:
status: New → In Progress
assignee: nobody → Brad Hall (bgh)
Brad Hall (bgh)
Changed in quantum:
status: In Progress → Fix Committed
Changed in quantum:
milestone: none → diablo-rbp
dan wendlandt (danwent)
Changed in quantum:
status: Fix Committed → Fix Released
Changed in quantum (Ubuntu):
status: New → 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.