Bug 2458679 - python-openstacksdk fails to build with Python 3.15: openstack.exceptions.SDKException: Unsupported hash algorithm 'ancient_hash_algo': unsupported hash algorithm ancient_hash_algo
Summary: python-openstacksdk fails to build with Python 3.15: openstack.exceptions.SD...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-openstacksdk
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Javier Peña
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2026-04-15 13:18 UTC by Karolina Surma
Modified: 2026-04-18 10:23 UTC (History)
5 users (show)

Fixed In Version: python-openstacksdk-4.10.0-3.fc45
Clone Of:
Environment:
Last Closed: 2026-04-18 10:23:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2026-04-15 13:18:20 UTC
python-openstacksdk fails to build with Python 3.15.0a8.


openstack.tests.unit.image.v2.test_image.TestImage.test_download_unsupported_hash_algo_falls_back_to_md5
--------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/usr/lib64/python3.15/hashlib.py", line 180, in __hash_new
    return _hashlib.new(name, *args, **kwargs)
           ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^

    _hashlib.UnsupportedDigestmodError: [digital envelope routines] unsupported hash algorithm ancient_hash_algo

    
During handling of the above exception, another exception occurred:


    Traceback (most recent call last):

      File "/builddir/build/BUILD/python-openstacksdk-4.10.0-build/openstacksdk-4.10.0/openstack/image/_download.py", line 118, in download
    hasher = hashlib.new(str(meta_hash_algo))

      File "/usr/lib64/python3.15/hashlib.py", line 186, in __hash_new
    return __get_builtin_constructor(name)(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^

      File "/usr/lib64/python3.15/hashlib.py", line 129, in __get_builtin_constructor
    raise ValueError(f'unsupported hash algorithm {name}')

    ValueError: unsupported hash algorithm ancient_hash_algo

    
During handling of the above exception, another exception occurred:


    Traceback (most recent call last):

      File "/builddir/build/BUILD/python-openstacksdk-4.10.0-build/openstacksdk-4.10.0/openstack/tests/unit/image/v2/test_image.py", line 694, in test_download_unsupported_hash_algo_falls_back_to_md5
    rv = sot.download(self.sess)

      File "/builddir/build/BUILD/python-openstacksdk-4.10.0-build/openstacksdk-4.10.0/openstack/image/_download.py", line 123, in download
    raise exceptions.SDKException(
        f"Unsupported hash algorithm '{meta_hash_algo}': {ve}"
    )

    openstack.exceptions.SDKException: Unsupported hash algorithm 'ancient_hash_algo': unsupported hash algorithm ancient_hash_algo

https://docs.python.org/3.15/whatsnew/3.15.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/10318771-python-openstacksdk/

For all our attempts to build python-openstacksdk with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-openstacksdk/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Javier Peña 2026-04-15 15:18:42 UTC
The issue seems to be caused by this commit [1] in the Python 3.15 hashlib module, which breaks the string check in openstacksdk [2]. It would be good if someone active in the OpenStack community could propose the fix :).

[1] - https://github.com/python/cpython/commit/6be49ee517258281357aa6846d2564bc5626b7ca
[2] - https://opendev.org/openstack/openstacksdk/src/branch/master/openstack/image/_download.py#L119-L123

Comment 2 Fedora Update System 2026-04-18 10:20:28 UTC
FEDORA-2026-7c80a136dd (python-openstacksdk-4.10.0-3.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-7c80a136dd

Comment 3 Fedora Update System 2026-04-18 10:23:58 UTC
FEDORA-2026-7c80a136dd (python-openstacksdk-4.10.0-3.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.