Project

General

Profile

Actions

Bug #78978

closed
KS CB

rgw:crypt kmip fails on RockyLinux 10.2 with ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] ssl/tls alert handshake failure

Bug #78978: rgw:crypt kmip fails on RockyLinux 10.2 with ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] ssl/tls alert handshake failure

Added by Kyr Shatskyy 4 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-3688-g3480e64a28
Released In:
Upkeep Timestamp:
2026-09-28T08:39:31+00:00

Description

2026-08-01T02:51:56.810 INFO:tasks.pykmip.client.0.vm06.stderr:/home/ubuntu/cephtest/pykmip/kmip/services/server/crypto/engine.py:52: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from cryptography.hazmat.primitives.ciphers.algorithms in 48.0.0.
2026-08-01T02:51:56.810 INFO:tasks.pykmip.client.0.vm06.stderr:  enums.CryptographicAlgorithm.TRIPLE_DES: algorithms.TripleDES,
2026-08-01T02:51:56.810 INFO:tasks.pykmip.client.0.vm06.stderr:/home/ubuntu/cephtest/pykmip/kmip/services/server/crypto/engine.py:55: CryptographyDeprecationWarning: Camellia has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.Camellia and will be removed from cryptography.hazmat.primitives.ciphers.algorithms in 49.0.0.
2026-08-01T02:51:56.810 INFO:tasks.pykmip.client.0.vm06.stderr:  enums.CryptographicAlgorithm.CAMELLIA:   algorithms.Camellia,
2026-08-01T02:51:56.811 INFO:tasks.pykmip.client.0.vm06.stderr:/home/ubuntu/cephtest/pykmip/kmip/services/server/crypto/engine.py:58: CryptographyDeprecationWarning: ARC4 has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.ARC4 and will be removed from cryptography.hazmat.primitives.ciphers.algorithms in 48.0.0.
2026-08-01T02:51:56.811 INFO:tasks.pykmip.client.0.vm06.stderr:  enums.CryptographicAlgorithm.RC4:        algorithms.ARC4
2026-08-01T02:51:56.811 INFO:tasks.pykmip.client.0.vm06.stderr:/home/ubuntu/cephtest/pykmip/kmip/services/server/crypto/engine.py:85: CryptographyDeprecationWarning: OFB has been moved to cryptography.hazmat.decrepit.ciphers.modes.OFB and will be removed from cryptography.hazmat.primitives.ciphers.modes in 49.0.0.
2026-08-01T02:51:56.811 INFO:tasks.pykmip.client.0.vm06.stderr:  enums.BlockCipherMode.OFB: modes.OFB,
2026-08-01T02:51:56.811 INFO:tasks.pykmip.client.0.vm06.stderr:/home/ubuntu/cephtest/pykmip/kmip/services/server/crypto/engine.py:86: CryptographyDeprecationWarning: CFB has been moved to cryptography.hazmat.decrepit.ciphers.modes.CFB and will be removed from cryptography.hazmat.primitives.ciphers.modes in 49.0.0.
2026-08-01T02:51:56.811 INFO:tasks.pykmip.client.0.vm06.stderr:  enums.BlockCipherMode.CFB: modes.CFB,
2026-08-01T02:52:06.108 DEBUG:teuthology.orchestra.run.vm06:> /home/ubuntu/cephtest/pykmip/.pykmipenv/bin/python3
2026-08-01T02:52:06.639 INFO:teuthology.orchestra.run.vm06.stderr:An error occurred while connecting to appliance vm06.local: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] ssl/tls alert handshake failure (_ssl.c:998)
2026-08-01T02:52:06.640 INFO:teuthology.orchestra.run.vm06.stderr:could not open client connection: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] ssl/tls alert handshake failure (_ssl.c:998)
2026-08-01T02:52:06.640 INFO:teuthology.orchestra.run.vm06.stderr:Traceback (most recent call last):
2026-08-01T02:52:06.640 INFO:teuthology.orchestra.run.vm06.stderr:  File "<stdin>", line 13, in <module>
2026-08-01T02:52:06.640 INFO:teuthology.orchestra.run.vm06.stderr:  File "/home/ubuntu/cephtest/pykmip/kmip/pie/client.py", line 1753, in __enter__
2026-08-01T02:52:06.640 INFO:teuthology.orchestra.run.vm06.stderr:    self.open()
2026-08-01T02:52:06.640 INFO:teuthology.orchestra.run.vm06.stderr:  File "/home/ubuntu/cephtest/pykmip/kmip/pie/client.py", line 173, in open
2026-08-01T02:52:06.640 INFO:teuthology.orchestra.run.vm06.stderr:    self.proxy.open()
2026-08-01T02:52:06.640 INFO:teuthology.orchestra.run.vm06.stderr:  File "/home/ubuntu/cephtest/pykmip/kmip/services/kmip_client.py", line 285, in open
2026-08-01T02:52:06.640 INFO:teuthology.orchestra.run.vm06.stderr:    six.reraise(*last_error)
2026-08-01T02:52:06.640 INFO:teuthology.orchestra.run.vm06.stderr:  File "/home/ubuntu/cephtest/pykmip/.pykmipenv/lib64/python3.12/site-packages/six.py", line 724, in reraise
2026-08-01T02:52:06.640 INFO:teuthology.orchestra.run.vm06.stderr:    raise value
2026-08-01T02:52:06.640 INFO:teuthology.orchestra.run.vm06.stderr:  File "/home/ubuntu/cephtest/pykmip/kmip/services/kmip_client.py", line 274, in open
2026-08-01T02:52:06.640 INFO:teuthology.orchestra.run.vm06.stderr:    self.socket.connect((self.host, self.port))
2026-08-01T02:52:06.640 INFO:teuthology.orchestra.run.vm06.stderr:  File "/usr/lib64/python3.12/ssl.py", line 1352, in connect
2026-08-01T02:52:06.641 INFO:teuthology.orchestra.run.vm06.stderr:    self._real_connect(addr, False)
2026-08-01T02:52:06.641 INFO:teuthology.orchestra.run.vm06.stderr:  File "/usr/lib64/python3.12/ssl.py", line 1343, in _real_connect
2026-08-01T02:52:06.641 INFO:teuthology.orchestra.run.vm06.stderr:    self.do_handshake()
2026-08-01T02:52:06.641 INFO:teuthology.orchestra.run.vm06.stderr:  File "/usr/lib64/python3.12/ssl.py", line 1319, in do_handshake
2026-08-01T02:52:06.641 INFO:teuthology.orchestra.run.vm06.stderr:    self._sslobj.do_handshake()
2026-08-01T02:52:06.641 INFO:teuthology.orchestra.run.vm06.stderr:ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] ssl/tls alert handshake failure (_ssl.c:998)
2026-08-01T02:52:06.724 DEBUG:teuthology.orchestra.run:got remote process result: 1
2026-08-01T02:52:06.725 ERROR:teuthology.contextutil:Saw exception from nested tasks

This happens due to changed policy for TLS1.2 in the system in `etc/crypto-policies/back-ends/opensslcnf.config`.
The AES128-SHA256 and AES256-SHA256 are disabled with `-kRSA` while `ECDHE-RSA-AES256-SHA384` disabled for Tls1.2 only `-SHA384` for better granularity between 1.2 and 1.3 versions.

While on older versions like RockyLinux 9.8, Centos 9.stream and Ubuntu 22.04 the old policy remains.

KS Updated by Kyr Shatskyy 4 months ago Actions #1

  • Tracker changed from Bug to Support
  • Project changed from rgw to rgw-testing
  • Regression deleted (No)
  • Severity deleted (3 - minor)

KS Updated by Kyr Shatskyy 4 months ago Actions #2

  • Pull request ID set to 70787

KS Updated by Kyr Shatskyy 4 months ago Actions #3

@Casey Bodley Could you please take a look.

That might be simplest fix for now, but since those RSA ciphers are deprecated for modern distroes, we might need to add newer GCM once to OpenKMIP repos.

AE Updated by Adam Emerson 2 months ago Actions #4

  • Tracker changed from Support to Bug
  • Regression set to No
  • Severity set to 3 - minor

Recategorizing as a bug.

AE Updated by Adam Emerson 2 months ago Actions #5

  • Assignee set to Casey Bodley

UB Updated by Upkeep Bot 2 months ago Actions #6

  • Status changed from New to Resolved
  • Merge Commit set to 3480e64a28e610350f36e9cdd5db520b787a66f7
  • Fixed In set to v21.3.0-3688-g3480e64a28
  • Upkeep Timestamp set to 2026-09-28T08:39:31+00:00
Actions

Also available in: PDF Atom