python-oslo.log 5.2.0-0ubuntu1 FTBFS

Bug #2033397 reported by Benjamin Drung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-oslo.log (Ubuntu)
Fix Released
Undecided
Unassigned

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

Revision history for this message
Corey Bryant (corey.bryant) wrote :

This is fixed with 5.3.0-0ubuntu1

Changed in python-oslo.log (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.