Skip to content

ZTS: "module 'ssl' has no attribute 'wrap_socket'" on F39 #15534

Closed
@tonyhutter

Description

@tonyhutter

System information

Type Version/Name
Distribution Name Fedora
Distribution Version 39
Kernel Version default
Architecture
OpenZFS Version 2.2.1

Describe the problem you're observing

We see a AttributeError: module 'ssl' has no attribute 'wrap_socket' ZTS error on Fedora 39 when testing the 2.2.1 patchstack (#15498):

Apparently we should be using ssl.SSLContext.wrap_socket instead of ssl.wrap_socket() (see eventlet/eventlet#795) in zfs_load-key_common.kshlib:setup_https().

Describe how to reproduce the problem

Run ZTS on F39.

Include any warning/errors/backtraces from the system logs

Tests with results other than PASS that are unexpected:
    FAIL cli_root/zfs_load-key/setup (expected PASS)
    SKIP cli_root/zfs_load-key/zfs_load-key (expected PASS)
    SKIP cli_root/zfs_load-key/zfs_load-key_all (expected PASS)
    SKIP cli_root/zfs_load-key/zfs_load-key_file (expected PASS)
    SKIP cli_root/zfs_load-key/zfs_load-key_https (expected PASS)
    SKIP cli_root/zfs_load-key/zfs_load-key_location (expected PASS)
    SKIP cli_root/zfs_load-key/zfs_load-key_noop (expected PASS)
    SKIP cli_root/zfs_load-key/zfs_load-key_recursive (expected PASS)
    FAIL cli_root/zfs_set/zfs_set_keylocation (expected PASS)
Test: /usr/share/zfs/zfs-tests/tests/functional/cli_root/zfs_load-key/setup (run as root) [00:00] [FAIL]
20:33:23.97 /etc/sudoers:89:24: invalid operator "+=" for "exempt_group"
20:33:23.99 NOTE: begin default_setup_noexit
20:33:24.04 SUCCESS: zpool create -f testpool loop0
20:33:24.08 SUCCESS: zfs create testpool/testfs
20:33:24.10 SUCCESS: zfs set mountpoint=/mnt/testdir testpool/testfs
20:33:24.50 SUCCESS: openssl req -x509 -newkey rsa:4096 -sha256 -days 1 -nodes -keyout /testpool/snakeoil.key -out /testpool/snakeoil.crt -subj /CN=localhost
20:33:24.62 Traceback (most recent call last):
20:33:24.62   File "<string>", line 21, in <module>
20:33:24.62 AttributeError: module 'ssl' has no attribute 'wrap_socket'
20:33:24.63 NOTE: Performing test-fail callback (/usr/share/zfs/zfs-tests/callbacks/zfs_dbgmsg.ksh)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: Test SuiteIndicates an issue with the test framework or a test caseType: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions