#1146039 python-oslo.log: FTBFS: FAIL: oslo_log.tests.unit.test_log.LoggerTestCase.test_rotate_log

#1146039#5
Date:
2026-08-29 10:32:43 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:python-oslo.log, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
======================================================================
FAIL: oslo_log.tests.unit.test_log.LoggerTestCase.test_rotate_log
oslo_log.tests.unit.test_log.LoggerTestCase.test_rotate_log
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/usr/lib/python3.14/unittest/mock.py", line 1439, in patched
    return func(*newargs, **newkeywargs)
  File "/<<PKGBUILDDIR>>/oslo_log/tests/unit/test_log.py", line 184, in test_rotate_log
    self.assertEqual(self.log_handlers[0], handler_mock.return_value)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 438, in assertEqual
    self.assertThat(observed, matcher, message)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 587, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = <StreamHandler <stdout> (NOTSET)>
actual    = <MagicMock name='RotatingFileHandler()' id='140569650235440'>


======================================================================
FAIL: oslo_log.tests.unit.test_log.LoggerTestCase.test_timed_rotate_log
oslo_log.tests.unit.test_log.LoggerTestCase.test_timed_rotate_log
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/usr/lib/python3.14/unittest/mock.py", line 1439, in patched
    return func(*newargs, **newkeywargs)
  File "/<<PKGBUILDDIR>>/oslo_log/tests/unit/test_log.py", line 166, in test_timed_rotate_log
    self.assertEqual(self.log_handlers[0], handler_mock.return_value)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 438, in assertEqual
    self.assertThat(observed, matcher, message)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 587, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = <StreamHandler <stdout> (NOTSET)>
actual    = <MagicMock name='TimedRotatingFileHandler()' id='140569650907184'>


======================================================================
FAIL: oslo_log.tests.unit.test_log.LoggerNameTestCase.test_rotate_log
oslo_log.tests.unit.test_log.LoggerNameTestCase.test_rotate_log
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/usr/lib/python3.14/unittest/mock.py", line 1439, in patched
    return func(*newargs, **newkeywargs)
  File "/<<PKGBUILDDIR>>/oslo_log/tests/unit/test_log.py", line 184, in test_rotate_log
    self.assertEqual(self.log_handlers[0], handler_mock.return_value)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 438, in assertEqual
    self.assertThat(observed, matcher, message)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 587, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = <StreamHandler <stdout> (NOTSET)>
actual    = <MagicMock name='RotatingFileHandler()' id='140374972285344'>


======================================================================
FAIL: oslo_log.tests.unit.test_log.LoggerNameTestCase.test_timed_rotate_log
oslo_log.tests.unit.test_log.LoggerNameTestCase.test_timed_rotate_log
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/usr/lib/python3.14/unittest/mock.py", line 1439, in patched
    return func(*newargs, **newkeywargs)
  File "/<<PKGBUILDDIR>>/oslo_log/tests/unit/test_log.py", line 166, in test_timed_rotate_log
    self.assertEqual(self.log_handlers[0], handler_mock.return_value)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 438, in assertEqual
    self.assertThat(observed, matcher, message)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 587, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = <StreamHandler <stdout> (NOTSET)>
actual    = <MagicMock name='TimedRotatingFileHandler()' id='140374972289376'>
---------------------------------------------------------------------- Ran 184 tests in 1.809s FAILED (failures=4, skipped=1) + echo ======> STESTR TEST SUITE FAILED FOR python3.14: displaying pip3 freeze output... ======> STESTR TEST SUITE FAILED FOR python3.14: displaying pip3 freeze output... + [ -x /usr/bin/pip3 ] + pip3 freeze WARNING: The directory '/sbuild-nonexistent/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag. alabaster==1.0.0 attrs==26.1.0 autocommand==2.2.2 autopage==0.6.0 babel==2.17.0 bandit==1.9.4 bcrypt==5.0.0 blinker==1.9.0 certifi==2026.7.22 chardet==5.2.0 charset-normalizer==3.4.7 cliff==4.13.3 cmd2==4.2.0+ds coverage==7.8.2 cryptography==49.0.0 debtcollector==3.0.0 decorator==5.2.1 defusedxml==0.7.1 deprecation==2.1.0 dnspython==2.8.0 docutils==0.23 dogpile.cache==1.5.0 dulwich==1.2.12 eventlet==0.40.4 fixtures==4.3.0 gitdb==4.0.12 GitPython==3.1.50 greenlet==3.3.2 idna==3.19 imagesize==2.0.0 inflect==7.5.0 iso8601==2.1.0 jaraco.context==6.0.1 jaraco.functools==4.1.0 jaraco.text==4.0.0 Jinja2==3.1.6 jmespath==1.0.1 jschema-to-python==1.2.3 jsonpatch==1.33 jsonpickle==4.0.2+dfsg jsonpointer==2.4 keystoneauth1==5.13.1 linkify-it-py==2.1.0 lxml==6.1.0 Mako==1.3.10.dev0 markdown-it-py==4.2.0 MarkupSafe==3.0.3 mdurl==0.1.2 more-itertools==11.1.0 msgpack==1.1.2 netaddr==1.3.0 oauthlib==3.3.1 openstackdocstheme==3.2.0 openstacksdk==4.10.0 os-client-config==2.3.0 os-service-types==1.8.2 oslo.config==10.3.0 oslo.context==6.3.0 oslo.i18n==6.7.2 oslo.log==8.1.0 oslo.serialization==5.9.1 oslo.utils==10.0.1 oslotest==6.0.0 packaging==26.2 pbr==7.0.3 platformdirs==4.10.0 prettytable==3.17.0 prompt_toolkit==3.0.53 psutil==7.1.0 pyasyncore==1.0.2 Pygments==2.20.0 PyJWT==2.13.0 pyparsing==3.3.2 pyperclip==1.11.0 python-dateutil==2.9.0 python-subunit==1.4.6 PyYAML==6.0.3 requests==2.34.2 requestsexceptions==1.4.0 rfc3986==2.0.0 rich==15.0.0 rich-argparse==1.8.0 roman-numerals==4.1.0 sarif-om==1.0.4 setuptools==78.1.1 smmap==6.0.0 snowballstemmer==3.1.1 Sphinx==9.1.0 stestr==4.2.1 stevedore==5.7.0 testtools==2.8.5 tomlkit==0.13.3 typeguard==4.4.4 typing_extensions==4.16.0 uc-micro-py==2.0.0 urllib3==2.7.0 voluptuous==0.16.0 wcwidth==0.2.14 wheel==0.47.0 wrapt==2.1.1 zipp==3.23.0 + exit 1 make[1]: *** [debian/rules:22: override_dh_auto_install] Error 1 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:7: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------
#1146039#10
Date:
2026-08-31 18:30:15 UTC
From:
To:
Hi!

I ran into this issue while rebuilding the python related packages
against the Python 3.15rc1 version [1].

The root cause has already been fixed upstream with commit b501be1 [2].

I applied the upstream fix in the sandbox [3] to be able to build the
packages that depend on python-oslo.log, and it built successfully.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/work-request/1177640/
[2]: https://github.com/openstack/oslo.log/commit/b501be134454d5a0fdb91ce30bea384b0f3db7d0
[3]: https://debusine.debian.net/debian/r-python-python3.15/

#1146039#15
Date:
2026-09-02 12:07:54 UTC
From:
To:
Hello,

Bug #1146039 in python-oslo.log reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/openstack-team/oslo/python-oslo.log/-/commit/40c1f67d066679b7aec6b16ea412167f94e3ebaa

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1146039

#1146039#22
Date:
2026-09-02 12:35:07 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-oslo.log, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1146039@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Goirand <zigo@debian.org> (supplier of updated python-oslo.log package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 02 Sep 2026 14:04:27 +0200
Source: python-oslo.log
Architecture: source
Version: 8.1.0-4
Distribution: unstable
Urgency: medium
Maintainer: Debian OpenStack <team+openstack@tracker.debian.org>
Changed-By: Thomas Goirand <zigo@debian.org>
Closes: 1146039
Changes:
 python-oslo.log (8.1.0-4) unstable; urgency=medium
 .
   * Add fix-logrotate-tests.patch (Closes: #1146039).
Checksums-Sha1:
 62e020b7a46d76b1662489ae10ce8e8c38dff9bc 2633 python-oslo.log_8.1.0-4.dsc
 ec0b05e572e931fc8d59bc1cc60d9acfd82765a6 6840 python-oslo.log_8.1.0-4.debian.tar.xz
 53a0240eb2fdab783902aca79438682f8c7f04e0 11635 python-oslo.log_8.1.0-4_amd64.buildinfo
Checksums-Sha256:
 1a27f83775de076b50a4940a726039bf901ff1521c1a58b00ef7d6bf9223b2c6 2633 python-oslo.log_8.1.0-4.dsc
 aa2b1791dc579f86e71ed855090d540dec8b5e0bd4f9d5725b587e5e6cdc98f2 6840 python-oslo.log_8.1.0-4.debian.tar.xz
 0a8ac71f881d2fe05cc319f8df336a2af7e2688685baea556a326db8abb9733e 11635 python-oslo.log_8.1.0-4_amd64.buildinfo
Files:
 6ba1b62c088d0906e929e80855d5bc83 2633 python optional python-oslo.log_8.1.0-4.dsc
 1fc48542363a7cbbd3caa20ee900472a 6840 python optional python-oslo.log_8.1.0-4.debian.tar.xz
 04f688f1bbd1e130c9596ceb3448c691 11635 python optional python-oslo.log_8.1.0-4_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEoLGp81CJVhMOekJc1BatFaxrQ/4FAmqYEZoACgkQ1BatFaxr
Q/4WXw/6AiN46LHPJOpk9yBijor7DmCEBgueSVEHKSHjhK0djDNnpSbBXajEC7uL
ZqIzxnVzeJoDhM427Tp6ajO16unz8DIcCFgX5wQnskGEFwc+MCMTUJHfxedOzfFq
XShTgdSSvtfs0d7zbwxWcFT91MUbKjqsjG0IVKCnb3sFJXVa5DbVKTvAbJLw8jvH
em5gQv1ZPBUx/ak2jfdR1jdSW24VxN2Ku10P1yFD7qvJIxHEY+x3IoVOa0BbrWuF
BBrkwc2mvYbDXnPffO+07h9U7Y/vQ6PRwQvKB1Zk8HuxRr8Te1BALnJp5r3JDrks
LH5iNoFcQVDMszfkALoJHRY1AcL826Hi/h62bSTOM/7ZEmro0JaMW6n/EN7x2xMh
waWb+szRPsjH2gEXBGeiYm4p9lfNSe4enJP23qbEHzo+xTIcNonKvMiH4OLiJIxy
FuWTvvNAyQ4C05NQcnRernTuzfq4GE+blQidj5cN2XjFJmFa3Mh7+/6KuPKacTrW
ZdYInJvT3HPVKIvCswj36/siWgZwkENIUKb6USRcRkHAED/QVh426g4qxc2QdSMm
n4yb2Y4ob2obLKD+TvgezR75+tfSMzGrDGaE6KagvjLXKYEwfDsfy+YOYzXfx+Gl
3BZUjIhlLQp6rNRMdgm53osluT+lYvktspMrXbMY5nKpD9rxjOU=
=Ps7D
-----END PGP SIGNATURE-----