You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_ssl: test_min_max_version() fails on FreeBSD and Fedora #82996
Traceback (most recent call last):
File "/usr/home/buildbot/python/3.x.koobs-freebsd-564d/build/Lib/test/test_ssl.py", line 1238, in test_min_max_versionself.assertIn(
AssertionError: <TLSVersion.TLSv1_2: 771> not found in {<TLSVersion.SSLv3: 768>, <TLSVersion.TLSv1: 769>}
Traceback (most recent call last):
File "/usr/home/buildbot/python/3.x.koobs-freebsd-564d/build/Lib/test/test_ssl.py", line 220, in wrapperreturn func(*args, **kw)
File "/usr/home/buildbot/python/3.x.koobs-freebsd-564d/build/Lib/test/test_ssl.py", line 3840, in test_min_max_version_mismatchself.assertIn("alert", str(e.exception))
AssertionError: 'alert' not found in '[SSL: NO_PROTOCOLS_AVAILABLE] no protocols available (_ssl.c:1108)'
I marked bpo-38954 as duplicate of this issue. Copy of its message:
---
This issue is probably duplicate of some other, but I decided to make one new one due to the fact that this affect all Fedora build bots.
test test_ssl failed
test_timeout_connect_ex (test.test_ssl.NetworkedTests) ... ok
======================================================================
FAIL: test_min_max_version (test.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.8.cstratak-fedora-rawhide-x86_64.lto-pgo/build/Lib/test/test_ssl.py", line 1207, in test_min_max_versionself.assertEqual(
AssertionError: <TLSVersion.TLSv1_3: 772> != <TLSVersion.MAXIMUM_SUPPORTED: -1>
Ran 161 tests in 2.681s
FAILED (failures=1, skipped=11)
1 test failed again:
test_ssl
changed the title [-]test_ssl: test_min_max_version() fails on AMD64 FreeBSD Shared 3.x[/-][+]test_ssl: test_min_max_version() fails on FreeBSD and Fedora[/+]on Dec 2, 2019
New changeset 34864d1 by Miss Islington (bot) (torsava) in branch 'master': bpo-38815: Accept TLSv3 default in min max test (GH-NNNN) (GH-17437) 34864d1
Please don't close tickets assigned to an owner without consent.
Can you please elaborate why you reopened the issue?
The initial "test_ssl: test_min_max_version() fails on FreeBSD and Fedora" issue is now fixed.
For example, test_ssl pass on AMD64 Fedora Stable LTO 3.x buildbot and it no longer uses the OPENSSL_CONF=/non-existing-file workaround. https://buildbot.python.org/all/#/builders/112/builds/850
"ssl.OPENSSL_VERSION: OpenSSL 1.1.1g FIPS 21 Apr 2020"
If you think that a ticket no longer apply, please use the pending status and give me a chance to verify the result. I haven't looked into the issue and I don't have time to do it right now.
Activity
vstinner commentedon Nov 15, 2019
Fail with OpenSSL 1.1.1d 10 Sep 2019 on AMD64 FreeBSD Shared 3.x:
https://buildbot.python.org/all/#/builders/371/builds/78
======================================================================
FAIL: test_min_max_version (test.test_ssl.ContextTests)
----------------------------------------------------------------------
======================================================================
FAIL: test_min_max_version_mismatch (test.test_ssl.ThreadedTests)
----------------------------------------------------------------------
SSL infos from pythoninfo:
ssl.HAS_SNI: True
ssl.OPENSSL_VERSION: OpenSSL 1.1.1d 10 Sep 2019
ssl.OPENSSL_VERSION_INFO: (1, 1, 1, 4, 15)
ssl.OP_ALL: 0x80000054
ssl.OP_NO_TLSv1_1: 0x10000000
ssl.SSLContext.maximum_version: TLSVersion.MAXIMUM_SUPPORTED
ssl.SSLContext.minimum_version: TLSVersion.MINIMUM_SUPPORTED
ssl.SSLContext.options: Options.OP_ALL|OP_NO_SSLv3|OP_CIPHER_SERVER_PREFERENCE|OP_ENABLE_MIDDLEBOX_COMPAT|OP_NO_COMPRESSION
ssl.SSLContext.protocol: _SSLMethod.PROTOCOL_TLS
ssl.SSLContext.verify_mode: VerifyMode.CERT_NONE
ssl.default_https_context.maximum_version: TLSVersion.MAXIMUM_SUPPORTED
ssl.default_https_context.minimum_version: TLSVersion.MINIMUM_SUPPORTED
ssl.default_https_context.options: Options.OP_ALL|OP_NO_SSLv3|OP_CIPHER_SERVER_PREFERENCE|OP_ENABLE_MIDDLEBOX_COMPAT|OP_NO_COMPRESSION
ssl.default_https_context.protocol: _SSLMethod.PROTOCOL_TLS
ssl.default_https_context.verify_mode: VerifyMode.CERT_REQUIRED
ssl.stdlib_context.maximum_version: TLSVersion.MAXIMUM_SUPPORTED
ssl.stdlib_context.minimum_version: TLSVersion.MINIMUM_SUPPORTED
ssl.stdlib_context.options: Options.OP_ALL|OP_NO_SSLv3|OP_CIPHER_SERVER_PREFERENCE|OP_ENABLE_MIDDLEBOX_COMPAT|OP_NO_COMPRESSION
ssl.stdlib_context.protocol: _SSLMethod.PROTOCOL_TLS
ssl.stdlib_context.verify_mode: VerifyMode.CERT_NONE
vstinner commentedon Nov 15, 2019
Same failure on AMD64 FreeBSD Shared 3.8:
https://buildbot.python.org/all/#/builders/374/builds/32
FAIL: test_min_max_version (test.test_ssl.ContextTests)
FAIL: test_min_max_version_mismatch (test.test_ssl.ThreadedTests)
vstinner commentedon Nov 18, 2019
And the last one, AMD64 FreeBSD Shared 3.7:
https://buildbot.python.org/all/#/builders/367/builds/25
FAIL: test_min_max_version (test.test_ssl.ContextTests)
FAIL: test_min_max_version_mismatch (test.test_ssl.ThreadedTests)
vstinner commentedon Dec 2, 2019
Similar issue in Fedora: https://src.fedoraproject.org/rpms/python3/pull-request/155
vstinner commentedon Dec 2, 2019
Debian and Fedora are already using OPENSSL_CONF=/non-existing-file workaround.
IMHO test_ssl should be fixed instead. test_ssl should not make assumptions on min/max TLS version.
vstinner commentedon Dec 2, 2019
Previous attempt:
#11508 (comment)
Old Fedora issue, worked around in the Fedora buildbot configuration: bpo-35045.
vstinner commentedon Dec 2, 2019
I marked bpo-38954 as duplicate of this issue. Copy of its message:
---
This issue is probably duplicate of some other, but I decided to make one new one due to the fact that this affect all Fedora build bots.
test test_ssl failed
test_timeout_connect_ex (test.test_ssl.NetworkedTests) ... ok
======================================================================
FAIL: test_min_max_version (test.test_ssl.ContextTests)
----------------------------------------------------------------------
Ran 161 tests in 2.681s
FAILED (failures=1, skipped=11)
1 test failed again:
test_ssl
Example failure:
https://buildbot.python.org/all/#/builders/222
---
[-]test_ssl: test_min_max_version() fails on AMD64 FreeBSD Shared 3.x[/-][+]test_ssl: test_min_max_version() fails on FreeBSD and Fedora[/+]pablogsal commentedon Dec 2, 2019
Raising the priority to 'critical' as this is masking all other problems on a significant number of buildbots.
Christian, could you take a look?
tiran commentedon Dec 2, 2019
Tomas Orsava is going to provide a PR within the next hour.
miss-islington commentedon Dec 2, 2019
New changeset 34864d1 by Miss Islington (bot) (torsava) in branch 'master':
bpo-38815: Accept TLSv3 default in min max test (GH-NNNN) (GH-17437)
34864d1
9 remaining items
vstinner commentedon May 18, 2020
I'm not sure why, but test_ssl does not pass on FreeBSD and Fedora, so I close the issue.
tiran commentedon May 18, 2020
Please don't close tickets assigned to an owner without consent.
vstinner commentedon May 18, 2020
Can you please elaborate why you reopened the issue?
The initial "test_ssl: test_min_max_version() fails on FreeBSD and Fedora" issue is now fixed.
For example, test_ssl pass on AMD64 Fedora Stable LTO 3.x buildbot and it no longer uses the OPENSSL_CONF=/non-existing-file workaround.
https://buildbot.python.org/all/#/builders/112/builds/850
"ssl.OPENSSL_VERSION: OpenSSL 1.1.1g FIPS 21 Apr 2020"
Same for AMD64 FreeBSD Shared 3.x:
https://buildbot.python.org/all/#/builders/152/builds/852
"ssl.OPENSSL_VERSION: OpenSSL 1.1.1g 21 Apr 2020"
If there are remaining new issues, I would prefer to open new issues.
tiran commentedon May 18, 2020
If you think that a ticket no longer apply, please use the pending status and give me a chance to verify the result. I haven't looked into the issue and I don't have time to do it right now.
taleinat commentedon Sep 17, 2020
Ping?
sumagnadas commentedon Sep 26, 2020
still getting this issue on Ubuntu 20.04 with the latest master checkout of cpython
tiran commentedon Apr 17, 2021
I haven't seen the problem in a while.