← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1352768] [NEW] virt: error in log when log exception in guestfs.py

 

Public bug reported:

In this code review, https://review.openstack.org/#/c/104262/  brings an error in log because of the line at 137:
+ LOG.info(_LI("Unable to force TCG mode, libguestfs too old?"),
+ ex)

Error is:

Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 851, in emit
    msg = self.format(record)
  File "/opt/stack/nova/nova/openstack/common/log.py", line 685, 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/nova/nova/openstack/common/log.py", line 649, 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 all arguments converted during string formatting
Logged from file guestfs.py, line 139

To fix this issue, we just need to add %s

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1352768

Title:
  virt: error in log when log exception in guestfs.py

Status in OpenStack Compute (Nova):
  New

Bug description:
  In this code review, https://review.openstack.org/#/c/104262/  brings an error in log because of the line at 137:
  + LOG.info(_LI("Unable to force TCG mode, libguestfs too old?"),
  + ex)

  Error is:

  Traceback (most recent call last):
    File "/usr/lib/python2.7/logging/__init__.py", line 851, in emit
      msg = self.format(record)
    File "/opt/stack/nova/nova/openstack/common/log.py", line 685, 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/nova/nova/openstack/common/log.py", line 649, 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 all arguments converted during string formatting
  Logged from file guestfs.py, line 139

  To fix this issue, we just need to add %s

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


Follow ups

References