Skip to content

Conversation

@jheunis-bloomberg
Copy link

The python docs specify that since python 3.2, it is recommended to use SSLContext.wrap_socket instead of ssl.wrap_socket ("since it is both inefficient and has no support for SNI and hostname matching").

In python3.12, ssl.wrap_socket was removed, which causes the 100-continue test to reliably fail whenever it's configured with is_secure=True. Switching to the recommended SSLContext.wrap_socket (using the default SSL context) fixes this, allowing the test to run cleanly again.

@jmundack
Copy link

@adamemerson - thanks!
anything else needed here before merge?

@adamemerson
Copy link
Contributor

Schedule a test run against this branch on Teuthology, you'll need to make a custom branch of Ceph that points to this branch of s3-tests.

The python docs specify that since python 3.2, it is recommended to use
`SSLContext.wrap_socket` instead of `ssl.wrap_socket` ("since it is both
inefficient and has no support for SNI and hostname matching").

In python3.12, `ssl.wrap_socket` was removed, which causes the 100-continue
test to reliably fail whenever it's configured with `is_secure=True`.
Switching to the recommended `SSLContext.wrap_socket` (using the default
SSL context) fixes this, allowing the test to run cleanly again.

Signed-off-by: Jacques Heunis <jheunis@bloomberg.net>
@jheunis-bloomberg jheunis-bloomberg force-pushed the fix-ssl-socket-wrap-for-python312 branch from 3c714d3 to 108c12b Compare November 11, 2025 10:09
@jheunis-bloomberg
Copy link
Author

@adamemerson I know its been almost a year but I've finally gotten around to this (I believe there were some issues with Teuthology at the time so it fell off my radar). I did a test run on Teuthology against this change.

I see there are a load of failures but none of them appear to be relevant (many are either complaining that they couldn't clone OpenStack's keystone or that valgrind doesn't like a call to sendmsg. Of the failures I could find that were actually test failures, I couldn't see any that related to the 100-continue test that is being modified in this PR.

This is the first time I'm running tests on teuthology myself so I'm not sure what to expect, but...did I do something wrong here? Are failures like this somehow expected? Is there some other test I should be running?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants