← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1362073] [NEW] Wrong string format result in exception can't be record into log in nova.virt.disk.vfs.guestfs.

 

Public bug reported:

In current master,  nova.virt.disk.vfs.guestfs

136             except AttributeError as ex:
137                 # set_backend_settings method doesn't exist in older
138                 # libguestfs versions, so nothing we can do but ignore
139  ->           LOG.info(_LI("Unable to force TCG mode, libguestfs too old?"),
140                          ex)
141                 pass
142
143             try:
144                 self.handle.add_drive_opts(self.imgfile, format=self.imgfmt)
145                 self.handle.launch()


Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 846, 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 723, 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

** Affects: nova
     Importance: Undecided
     Assignee: Rui Chen (kiwik-chenrui)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Rui Chen (kiwik-chenrui)

-- 
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/1362073

Title:
  Wrong string format result in exception can't be record into log in
  nova.virt.disk.vfs.guestfs.

Status in OpenStack Compute (Nova):
  New

Bug description:
  In current master,  nova.virt.disk.vfs.guestfs

  136             except AttributeError as ex:
  137                 # set_backend_settings method doesn't exist in older
  138                 # libguestfs versions, so nothing we can do but ignore
  139  ->           LOG.info(_LI("Unable to force TCG mode, libguestfs too old?"),
  140                          ex)
  141                 pass
  142
  143             try:
  144                 self.handle.add_drive_opts(self.imgfile, format=self.imgfmt)
  145                 self.handle.launch()

  
  Traceback (most recent call last):
    File "/usr/lib/python2.7/logging/__init__.py", line 846, 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 723, 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

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


Follow ups

References