Skip to content

Commit b935371

Browse files
TristanCacqueraydebarshiray
authored andcommitted
.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

File tree

‎.zuul.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- job:
1919
name: unit-test
2020
description: Run Toolbx's unit tests declared in Meson
21+
ansible-version: 11
2122
timeout: 1800
2223
nodeset:
2324
nodes:
@@ -40,6 +41,7 @@
4041
- job:
4142
name: unit-test-restricted
4243
description: Run Toolbx's unit tests declared in Meson in a restricted build environment
44+
ansible-version: 11
4345
timeout: 1800
4446
nodeset:
4547
nodes:
@@ -51,6 +53,7 @@
5153
- job:
5254
name: system-test-fedora-rawhide-commands-options
5355
description: Run Toolbx's commands-options system tests in Fedora Rawhide
56+
ansible-version: 11
5457
timeout: 7200
5558
nodeset:
5659
nodes:
@@ -62,6 +65,7 @@
6265
- job:
6366
name: system-test-fedora-rawhide-runtime-environment-arch-fedora
6467
description: Run Toolbx's (arch-fedora,runtime-environment) system tests in Fedora Rawhide
68+
ansible-version: 11
6569
timeout: 7200
6670
nodeset:
6771
nodes:
@@ -73,6 +77,7 @@
7377
- job:
7478
name: system-test-fedora-rawhide-runtime-environment-ubuntu
7579
description: Run Toolbx's (runtime-environment,ubuntu) system tests in Fedora Rawhide
80+
ansible-version: 11
7681
timeout: 7200
7782
nodeset:
7883
nodes:

0 commit comments

Comments
 (0)