Repository navigation
Commit b935371
.zuul: Unbreak the CI on Fedora Rawhide hosts
The default Python stack in Fedora Rawhide was updated from version 3.14
to 3.15 [1], and OpenSSL 4.0 was introduced [2]. As a result of this
combination, the PROTOCOL_TLSv1 attribute disappeared from Python's ssl
module [3]. This prevents Zuul from working with Fedora Rawhide hosts,
because of this Ansible error:
TASK [add-build-sshkey : Enable access via build key on all nodes] ***
An exception occurred during task execution. To see the full
traceback, use -vvv.
The error was: AttributeError: module 'ssl' has no attribute
'PROTOCOL_TLSv1'. Did you mean '.PROTOCOL_TLS' instead of
'.PROTOCOL_TLSv1'?
The use of ssl.PROTOCOL_TLSv1 was removed from ansible-core 2.17.0 [4],
which became available in Ansible 10 [5]; and since Zuul 13.0.0, the
default Ansible version is 9, and version 11 can be optionally used.
Therefore, explicitly selecting Ansible 11 resolves this breakage when
the combination of Python 3.15 and OpenSSL 4.0 are used.
[1] https://fedoraproject.org/wiki/Changes/Python3.15
[2] https://fedoraproject.org/wiki/Changes/OpenSSL40
[3] CPython commit 3364e7e62fa24d0e
python/cpython@3364e7e62fa24d0e
python/cpython#146217
python/cpython#146207
[4] ansible-core commit 92d2c66db2eecd0f
ansible/ansible@92d2c66db2eecd0f
ansible/ansible#81880
[5] https://github.com/ansible-community/ansible-build-data/blob/main/10/CHANGELOG-v10.md
[6] https://zuul-ci.org/docs/zuul/latest/releasenotes.html
containers#1824
Signed-off-by: Tristan Cacqueray <tdecacqu@redhat.com>1 parent 8b85b9a commit b935371
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| 68 | + | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| |||
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| |||
0 commit comments