Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2102208

Summary: Tempurl fails with FIPS enabled on RHEL9
Product: Red Hat OpenStack Reporter: Christian Schwede (cschwede) <cschwede>
Component: openstack-swiftAssignee: Christian Schwede (cschwede) <cschwede>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact: Andy Stillman <astillma>
Priority: medium    
Version: 17.0 (Wallaby)CC: derekh, gcharot, jschluet, zaitcev
Target Milestone: gaKeywords: Triaged
Target Release: 17.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-swift-2.27.1-0.20220701220351.6a1a8ce.el9ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-21 12:23:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christian Schwede (cschwede) 2022-06-29 13:12:07 UTC
Using tempurls with Swift running on RHEL9/CS9 and FIPS enabled it will fail with the following error:

Jun 27 11:00:17 controller-2 proxy-server[75347]: Error: An error occurred: #012Traceback (most recent call last):#012  File "/usr/lib/python3.9/site-packages/swift/common/middleware/catch_errors.py", line 75, in handle_request#012    resp = self._app_call(env)#012  File "/usr/lib/python3.9/site-packages/swift/common/wsgi.py", line 1327, in _app_call#012    resp = self.app(env, self._start_response)#012  File "/usr/lib/python3.9/site-packages/swift/common/middleware/gatekeeper.py", line 129, in __call__#012    return self.app(env, gatekeeper_response)#012  File "/usr/lib/python3.9/site-packages/swift/common/middleware/healthcheck.py", line 52, in __call__#012    return self.app(env, start_response)#012  File "/usr/lib/python3.9/site-packages/swift/common/middleware/proxy_logging.py", line 432, in __call__#012    iterable = self.app(env, my_start_response)#012  File "/usr/lib/python3.9/site-packages/swift/common/middleware/memcache.py", line 133, in __call__#012    return self.app(env, start_response)#012  File "/usr/lib/python3.9/site-packages/swift/common/middleware/listing_formats.py", line 157, in __call__#012    return self.app(env, start_response)#012  File "/usr/lib/python3.9/site-packages/swift/common/middleware/ratelimit.py", line 321, in __call__#012    return self.app(env, start_response)#012  File "/usr/lib/python3.9/site-packages/swift/common/swob.py", line 1570, in _wsgify#012    return func(*new_args)(env, start_response)#012  File "/usr/lib/python3.9/site-packages/swift/common/middleware/tempurl.py", line 561, in __call__#012    hmac_vals = self._get_hmacs(#012  File "/usr/lib/python3.9/site-packages/swift/common/middleware/tempurl.py", line 755, in _get_hmacs#012    return [#012  File "/usr/lib/python3.9/site-packages/swift/common/middleware/tempurl.py", line 756, in <listcomp>#012    (get_hmac(#012  File "/usr/lib/python3.9/site-packages/swift/common/utils.py", line 317, in get_hmac#012    return hmac.new(key, message, digest).hexdigest()#012  File "/usr/lib64/python3.9/hmac.py", line 189, in new#012    return HMAC(key, msg, digestmod)#012  File "/usr/lib64/python3.9/hmac.py", line 60, in __init__#012    self._init_hmac(key, msg, digestmod)#012  File "/usr/lib64/python3.9/hmac.py", line 69, in _init_hmac#012    self._hmac = _hashopenssl.hmac_new(key, msg, digestmod=digestmod)#012_hashlib.UnsupportedDigestmodError: Unsupported digestmod functools.partial(<function __hash_new at 0x7f90e78f11f0>, 'sha1') (txn: txca9206232aa1475d832e3-0062b98dc1)

Upstream fix: https://review.opendev.org/q/I4fcacc76ab52b45510aee82156a7cbf6ad72467d

Comment 9 errata-xmlrpc 2022-09-21 12:23:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:6543