Project

General

Profile

Actions

action #178657

open

[bsc#1239175] test fails in openvswitch_ssl with "module `ssl` does not have attribute `wrap_socket`"

Added by cfconrad about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Bugs in existing tests
Target version:
-
Start date:
2025-03-11
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

Bug

Observation

openQA test in scenario opensuse-Tumbleweed-DVD-x86_64-extra_tests_misc@64bit fails in
openvswitch_ssl

Test suite description

Maintainer: zluo@suse.de

Tests: iotop, gd, perf and journalctlLevels --
see poo#93820 for details

Reproducible

Fails since (at least) Build 20250302

Expected result

Last good: 20250301 (or more recent)

Further details

Always latest result in this scenario: latest

Actions #1

Updated by cfconrad about 1 month ago

The reason is a call of ssl.wrap_socket() [1] which was deprecated[2] by python 3.7 and is removed in python 3.13.
Using SSLContext or stick to python3.11 are fixing the problem.
The quick fix could be this pr[3]

[1] https://github.com/noxrepo/pox/blob/gar-experimental/pox/openflow/of_01.py#L1110
[2] https://github.com/python/cpython/commit/00464bbed66e5f64bdad7f930b315a88d5afccae
[3] https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/21412

Actions #2

Updated by cfconrad about 1 month ago

  • Subject changed from test fails in openvswitch_ssl with "module `ssl` does not have attribute `wrap_socket`" to [bsc#1239175] test fails in openvswitch_ssl with "module `ssl` does not have attribute `wrap_socket`"
Actions #3

Updated by cfconrad about 1 month ago

  • Description updated (diff)
Actions #4

Updated by anag about 1 month ago

FWIW sticking to Python 3.11 isn't a solution because this python version is going to be removed soon.

Actions #5

Updated by cfconrad about 1 month ago

But the using of the old ssl module function isn't in openvswitch. It's in pox which didn't get updates for 5 years and is used in openqa from here: https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/data/pox-py3.tar.bz2

Actions #6

Updated by szarate about 1 month ago

Actions

Also available in: Atom PDF