[Bug 2033397] Re: python-oslo.log 5.2.0-0ubuntu1 FTBFS

Corey Bryant 2033397 at bugs.launchpad.net
Wed Oct 4 13:11:33 UTC 2023


This is fixed with 5.3.0-0ubuntu1

** Changed in: python-oslo.log (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-oslo.log in Ubuntu.
https://bugs.launchpad.net/bugs/2033397

Title:
  python-oslo.log 5.2.0-0ubuntu1 FTBFS

Status in python-oslo.log package in Ubuntu:
  Fix Released

Bug description:
  python-oslo.log 5.2.0-0ubuntu1 fails to build from source:

  ```
  ======================================================================
  FAIL: oslo_log.tests.unit.test_log.LogConfigTestCase.test_log_config_append_invalid
  oslo_log.tests.unit.test_log.LogConfigTestCase.test_log_config_append_invalid
  ----------------------------------------------------------------------
  testtools.testresult.real._StringException: Traceback (most recent call last):
    File "/usr/lib/python3.11/logging/config.py", line 78, in fileConfig
      cp.read(fname, encoding=encoding)
    File "/usr/lib/python3.11/configparser.py", line 713, in read
      self._read(fp, filename)
    File "/usr/lib/python3.11/configparser.py", line 1101, in _read
      raise MissingSectionHeaderError(fpname, lineno, line)
  configparser.MissingSectionHeaderError: File contains no section headers.
  file: '/tmp/tmpb2bwlws6/loggingal42fh4v.conf', line: 1
  'squawk'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/<<PKGBUILDDIR>>/oslo_log/tests/unit/test_log.py", line 1806, in test_log_config_append_invalid
      self.assertRaises(log.LogConfigError, log.setup,
    File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 467, in assertRaises
      self.assertThat(our_callable, matcher)
    File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 478, in assertThat
      mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 530, in _matchHelper
      mismatch = matcher.match(matchee)
                 ^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/testtools/matchers/_exception.py", line 104, in match
      mismatch = self.exception_matcher.match(exc_info)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/testtools/matchers/_higherorder.py", line 62, in match
      mismatch = matcher.match(matchee)
                 ^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 457, in match
      reraise(*matchee)
    File "/usr/lib/python3/dist-packages/testtools/compat.py", line 27, in reraise
      raise exc_obj.with_traceback(exc_tb)
    File "/usr/lib/python3/dist-packages/testtools/matchers/_exception.py", line 97, in match
      result = matchee()
               ^^^^^^^^^
    File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 1039, in __call__
      return self._callable_object(*self._args, **self._kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/<<PKGBUILDDIR>>/oslo_log/log.py", line 271, in setup
      _load_log_config(conf.log_config_append)
    File "/<<PKGBUILDDIR>>/oslo_log/log.py", line 231, in _load_log_config
      logging.config.fileConfig(log_config_append,
    File "/usr/lib/python3.11/logging/config.py", line 80, in fileConfig
      raise RuntimeError(f'{fname} is invalid: {e}')
  RuntimeError: /tmp/tmpb2bwlws6/loggingal42fh4v.conf is invalid: File contains no section headers.
  file: '/tmp/tmpb2bwlws6/loggingal42fh4v.conf', line: 1
  'squawk'

  ```

  Full log: https://launchpadlibrarian.net/683922660/buildlog_ubuntu-
  mantic-amd64.python-oslo.log_5.2.0-0ubuntu1_BUILDING.txt.gz

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-oslo.log/+bug/2033397/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list