← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1568208] Re: TypeError: cannot concatenate 'str' and 'OptGroup' objects during Guru Meditation Report run

 

** Changed in: nova
     Assignee: (unassigned) => Roman Podoliaka (rpodolyaka)

** Changed in: nova
       Status: New => In Progress

** Project changed: oslo.reports => oslo.config

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

Title:
  TypeError: cannot concatenate 'str' and 'OptGroup' objects during Guru
  Meditation Report run

Status in OpenStack Compute (nova):
  In Progress
Status in oslo.config:
  In Progress

Bug description:
  I noticed a trace in a recent tempest job run [1] like the following.
  From what I can tell, somehow rootkey here is an OptGroup object
  instead of the expected str.

  Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/oslo_reports/guru_meditation_report.py", line 180, in handle_signal
      res = cls(version, frame).run()
    File "/usr/local/lib/python2.7/dist-packages/oslo_reports/guru_meditation_report.py", line 228, in run
      return super(GuruMeditation, self).run()
    File "/usr/local/lib/python2.7/dist-packages/oslo_reports/report.py", line 77, in run
      return "\n".join(six.text_type(sect) for sect in self.sections)
    File "/usr/local/lib/python2.7/dist-packages/oslo_reports/report.py", line 77, in <genexpr>
      return "\n".join(six.text_type(sect) for sect in self.sections)
    File "/usr/local/lib/python2.7/dist-packages/oslo_reports/report.py", line 102, in __str__
      return self.view(self.generator())
    File "/usr/local/lib/python2.7/dist-packages/oslo_reports/views/text/header.py", line 36, in __call__
      return six.text_type(self.header) + "\n" + six.text_type(model)
    File "/usr/local/lib/python2.7/dist-packages/oslo_reports/models/base.py", line 73, in __str__
      return self.attached_view(self_cpy)
    File "/usr/local/lib/python2.7/dist-packages/oslo_reports/views/text/generic.py", line 153, in __call__
      return "\n".join(serialize(model, None, -1))
    File "/usr/local/lib/python2.7/dist-packages/oslo_reports/views/text/generic.py", line 124, in serialize
      res.extend(serialize(root[key], key, indent + 1))
    File "/usr/local/lib/python2.7/dist-packages/oslo_reports/views/text/generic.py", line 113, in serialize
      res.append((self.indent_str * indent) + rootkey)
  TypeError: cannot concatenate 'str' and 'OptGroup' objects
  Unable to run Guru Meditation Report!

  
  [1] http://logs.openstack.org/41/302341/5/check/gate-tempest-dsvm-full/f51065e/logs/screen-n-cpu.txt.gz?#_2016-04-08_21_08_08_994

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