← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1220521] Re: incorrect format type in BigSwitch plugin log line

 

** Changed in: neutron
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1220521

Title:
  incorrect format type in BigSwitch plugin log line

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  The BigSwitch plugin incorrectly tries to log the response code it gets from an HTTP request as an integer when it should be a string, resulting in these errors in the output:
  Traceback (most recent call last):
    File "/usr/lib/python2.7/logging/__init__.py", line 846, in emit
      msg = self.format(record)
    File "/opt/stack/neutron/neutron/openstack/common/log.py", line 552, in format
      return logging.StreamHandler.format(self, record)
    File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
      return fmt.format(record)
    File "/opt/stack/neutron/neutron/openstack/common/log.py", line 516, 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: %d format: a number is required, not str
  Logged from file plugin.py, line 339

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1220521/+subscriptions