Bug #76995
closedcrypt/kmip: AttributeError: module 'ssl' has no attribute 'wrap_socket'
0%
Description
example from ubuntu 24 testing in https://qa-proxy.ceph.com/teuthology/pdonnell-2026-05-27_13:16:25-rgw-wip-pdonnell-testing-20260527.030902-main-distro-default-trial/241950/teuthology.log
2026-05-28T18:23:41.588 INFO:tasks.pykmip:Running pykmip...
2026-05-28T18:23:41.589 INFO:tasks.pykmip.client.0:Restarting daemon
2026-05-28T18:23:41.589 DEBUG:teuthology.orchestra.run.trial137:> (cd /home/ubuntu/cephtest/pykmip && exec /home/ubuntu/cephtest/pykmip/.pykmipenv/bin/pykmip-server -f /home/ubuntu/cephtest/archive/pykmip.conf -l /home/ubuntu/cephtest/archive/pykmip.log & { read; kill %1; })
2026-05-28T18:23:41.629 INFO:tasks.pykmip.client.0:Started
2026-05-28T18:23:41.958 INFO:tasks.pykmip.client.0.trial137.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-05-28T18:23:41.958 INFO:tasks.pykmip.client.0.trial137.stderr: enums.CryptographicAlgorithm.TRIPLE_DES: algorithms.TripleDES,
2026-05-28T18:23:41.958 INFO:tasks.pykmip.client.0.trial137.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-05-28T18:23:41.959 INFO:tasks.pykmip.client.0.trial137.stderr: enums.CryptographicAlgorithm.CAMELLIA: algorithms.Camellia,
2026-05-28T18:23:41.959 INFO:tasks.pykmip.client.0.trial137.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-05-28T18:23:41.959 INFO:tasks.pykmip.client.0.trial137.stderr: enums.CryptographicAlgorithm.RC4: algorithms.ARC4
2026-05-28T18:23:41.959 INFO:tasks.pykmip.client.0.trial137.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-05-28T18:23:41.959 INFO:tasks.pykmip.client.0.trial137.stderr: enums.BlockCipherMode.OFB: modes.OFB,
2026-05-28T18:23:41.959 INFO:tasks.pykmip.client.0.trial137.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-05-28T18:23:41.959 INFO:tasks.pykmip.client.0.trial137.stderr: enums.BlockCipherMode.CFB: modes.CFB,
2026-05-28T18:23:41.974 INFO:tasks.pykmip.client.0.trial137.stderr:Traceback (most recent call last):
2026-05-28T18:23:41.975 INFO:tasks.pykmip.client.0.trial137.stderr: File "/home/ubuntu/cephtest/pykmip/.pykmipenv/bin/pykmip-server", line 6, in <module>
2026-05-28T18:23:41.975 INFO:tasks.pykmip.client.0.trial137.stderr: sys.exit(main())
2026-05-28T18:23:41.975 INFO:tasks.pykmip.client.0.trial137.stderr: ^^^^^^
2026-05-28T18:23:41.975 INFO:tasks.pykmip.client.0.trial137.stderr: File "/home/ubuntu/cephtest/pykmip/kmip/services/server/server.py", line 673, in main
2026-05-28T18:23:41.975 INFO:tasks.pykmip.client.0.trial137.stderr: with s:
2026-05-28T18:23:41.975 INFO:tasks.pykmip.client.0.trial137.stderr: File "/home/ubuntu/cephtest/pykmip/kmip/services/server/server.py", line 476, in __enter__
2026-05-28T18:23:41.975 INFO:tasks.pykmip.client.0.trial137.stderr: self.start()
2026-05-28T18:23:41.975 INFO:tasks.pykmip.client.0.trial137.stderr: File "/home/ubuntu/cephtest/pykmip/kmip/services/server/server.py", line 290, in start
2026-05-28T18:23:41.975 INFO:tasks.pykmip.client.0.trial137.stderr: self._socket = ssl.wrap_socket(
2026-05-28T18:23:41.975 INFO:tasks.pykmip.client.0.trial137.stderr: ^^^^^^^^^^^^^^^
2026-05-28T18:23:41.976 INFO:tasks.pykmip.client.0.trial137.stderr:AttributeError: module 'ssl' has no attribute 'wrap_socket'
2026-05-28T18:23:42.960 INFO:tasks.pykmip.client.0.trial137.stderr:Process PolicyDirectoryMonitor-2:
2026-05-28T18:23:42.961 INFO:tasks.pykmip.client.0.trial137.stderr:Traceback (most recent call last):
2026-05-28T18:23:42.962 INFO:tasks.pykmip.client.0.trial137.stderr: File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
2026-05-28T18:23:42.962 INFO:tasks.pykmip.client.0.trial137.stderr: self.run()
2026-05-28T18:23:42.962 INFO:tasks.pykmip.client.0.trial137.stderr: File "/home/ubuntu/cephtest/pykmip/kmip/services/server/monitor.py", line 145, in run
2026-05-28T18:23:42.962 INFO:tasks.pykmip.client.0.trial137.stderr: self.scan_policies()
2026-05-28T18:23:42.962 INFO:tasks.pykmip.client.0.trial137.stderr: File "/home/ubuntu/cephtest/pykmip/kmip/services/server/monitor.py", line 114, in scan_policies
2026-05-28T18:23:42.962 INFO:tasks.pykmip.client.0.trial137.stderr: if p in sorted(self.policy_store.keys()):
2026-05-28T18:23:42.962 INFO:tasks.pykmip.client.0.trial137.stderr: ^^^^^^^^^^^^^^^^^^^^^^^^
2026-05-28T18:23:42.962 INFO:tasks.pykmip.client.0.trial137.stderr: File "<string>", line 2, in keys
2026-05-28T18:23:42.962 INFO:tasks.pykmip.client.0.trial137.stderr: File "/usr/lib/python3.12/multiprocessing/managers.py", line 820, in _callmethod
2026-05-28T18:23:42.962 INFO:tasks.pykmip.client.0.trial137.stderr: conn.send((self._id, methodname, args, kwds))
2026-05-28T18:23:42.963 INFO:tasks.pykmip.client.0.trial137.stderr: File "/usr/lib/python3.12/multiprocessing/connection.py", line 206, in send
2026-05-28T18:23:42.963 INFO:tasks.pykmip.client.0.trial137.stderr: self._send_bytes(_ForkingPickler.dumps(obj))
2026-05-28T18:23:42.963 INFO:tasks.pykmip.client.0.trial137.stderr: File "/usr/lib/python3.12/multiprocessing/connection.py", line 427, in _send_bytes
2026-05-28T18:23:42.963 INFO:tasks.pykmip.client.0.trial137.stderr: self._send(header + buf)
2026-05-28T18:23:42.963 INFO:tasks.pykmip.client.0.trial137.stderr: File "/usr/lib/python3.12/multiprocessing/connection.py", line 384, in _send
2026-05-28T18:23:42.963 INFO:tasks.pykmip.client.0.trial137.stderr: n = write(self._handle, buf)
2026-05-28T18:23:42.963 INFO:tasks.pykmip.client.0.trial137.stderr: ^^^^^^^^^^^^^^^^^^^^^^^^
2026-05-28T18:23:42.963 INFO:tasks.pykmip.client.0.trial137.stderr:BrokenPipeError: [Errno 32] Broken pipe
2026-05-28T18:23:51.631 DEBUG:teuthology.orchestra.run.trial137:> /home/ubuntu/cephtest/pykmip/.pykmipenv/bin/python3
2026-05-28T18:23:51.824 INFO:teuthology.orchestra.run.trial137.stderr:could not open client connection: module 'ssl' has no attribute 'wrap_socket'
2026-05-28T18:23:51.824 INFO:teuthology.orchestra.run.trial137.stderr:Traceback (most recent call last):
2026-05-28T18:23:51.824 INFO:teuthology.orchestra.run.trial137.stderr: File "<stdin>", line 13, in <module>
2026-05-28T18:23:51.825 INFO:teuthology.orchestra.run.trial137.stderr: File "/home/ubuntu/cephtest/pykmip/kmip/pie/client.py", line 1753, in __enter__
2026-05-28T18:23:51.825 INFO:teuthology.orchestra.run.trial137.stderr: self.open()
2026-05-28T18:23:51.825 INFO:teuthology.orchestra.run.trial137.stderr: File "/home/ubuntu/cephtest/pykmip/kmip/pie/client.py", line 173, in open
2026-05-28T18:23:51.825 INFO:teuthology.orchestra.run.trial137.stderr: self.proxy.open()
2026-05-28T18:23:51.825 INFO:teuthology.orchestra.run.trial137.stderr: File "/home/ubuntu/cephtest/pykmip/kmip/services/kmip_client.py", line 271, in open
2026-05-28T18:23:51.825 INFO:teuthology.orchestra.run.trial137.stderr: self._create_socket(sock)
2026-05-28T18:23:51.825 INFO:teuthology.orchestra.run.trial137.stderr: File "/home/ubuntu/cephtest/pykmip/kmip/services/kmip_client.py", line 288, in _create_socket
2026-05-28T18:23:51.825 INFO:teuthology.orchestra.run.trial137.stderr: self.socket = ssl.wrap_socket(
2026-05-28T18:23:51.825 INFO:teuthology.orchestra.run.trial137.stderr: ^^^^^^^^^^^^^^^
2026-05-28T18:23:51.825 INFO:teuthology.orchestra.run.trial137.stderr:AttributeError: module 'ssl' has no attribute 'wrap_socket'
2026-05-28T18:23:51.847 DEBUG:teuthology.orchestra.run:got remote process result: 1
https://github.com/OpenKMIP/PyKMIP in unmaintained and doesn't support python 3.12. see https://stackoverflow.com/questions/79217608/python-3-12-7-module-ssl-has-no-attribute-wrap-socket for context on this specific issue with ssl.wrap_socket()
JI Updated by J. Eric Ivancich 6 months ago
- Assignee set to Kyr Shatskyy
@Kyr Shatskyy How would you like to proceed. I think you re-enabled this testing, but now it's causing failures.
KS Updated by Kyr Shatskyy 6 months ago
J. Eric Ivancich wrote in #note-1:
@Kyr Shatskyy How would you like to proceed. I think you re-enabled this testing, but now it's causing failures.
Hey, unfortunately, don't have time to look into it deeply now, but when I reenabled this test we've been used ubuntu 22.04, and it become failing after incorporating ubuntu 24.04 and it was merged without testing all the suites or ignoring the fact. As fast fix the Ubuntu 24.04 can be disabled for this test until someone finds time to find appropriate fix.
CB Updated by Casey Bodley 6 months ago
- Assignee changed from Kyr Shatskyy to Casey Bodley
CB Updated by Casey Bodley 6 months ago
- Status changed from New to Fix Under Review
- Pull request ID set to 69425
raised https://github.com/ceph/ceph/pull/69425 to disable kmip testing until we have a ceph/PyKMIP fork that works with python 3.12
UB Updated by Upkeep Bot 6 months ago
- Status changed from Fix Under Review to Resolved
- Merge Commit set to c99131fa29f0170d2ef9e52dce430dd8eca59d44
- Fixed In set to v21.3.0-238-gc99131fa29
- Upkeep Timestamp set to 2026-06-18T14:13:20+00:00
CB Updated by Casey Bodley 6 months ago
- Status changed from Resolved to Pending Backport
- Backport set to squid tentacle umbrella
UB Updated by Upkeep Bot 6 months ago
- Copied to Backport #77502: squid: crypt/kmip: AttributeError: module 'ssl' has no attribute 'wrap_socket' added
UB Updated by Upkeep Bot 6 months ago
- Copied to Backport #77503: umbrella: crypt/kmip: AttributeError: module 'ssl' has no attribute 'wrap_socket' added
UB Updated by Upkeep Bot 6 months ago
- Copied to Backport #77504: tentacle: crypt/kmip: AttributeError: module 'ssl' has no attribute 'wrap_socket' added
UB Updated by Upkeep Bot 6 months ago
- Tags (freeform) changed from kmip to kmip backport_processed
KS Updated by Kyr Shatskyy 4 months ago
- Status changed from Pending Backport to Closed
I guess the test is already re-enabled after the issue is addressed with switching to ceph fork of PyKMIP
KS Updated by Kyr Shatskyy 4 months ago
UB Updated by Upkeep Bot 3 months ago
- Tags (freeform) changed from kmip backport_processed to kmip
- Upkeep Timestamp changed from 2026-06-18T14:13:20+00:00 to 2026-08-28T01:51:22+00:00