Hey Python guys, test_socket doesn't seem to be passing on a clean CentOS 7.4 install.
strace -s 128 -e trace=%network -o trace ./python -m test -v test_socket -m test_sha256 == CPython 3.6.3 (default, Oct 19 2017, 14:12:01) [GCC 7.1.1 20170526 (Red Hat 7.1.1-2)] == Linux-3.10.0-693.2.2.el7.x86_64-x86_64-with-centos-7.4.1708-Core little-endian == cwd: /tmp/Python-3.6.3/build/test_python_20478 == CPU count: 8 == encodings: locale=UTF-8, FS=utf-8 Run tests sequentially 0:00:00 load avg: 1.03 [1/1] test_socket test_sha256 (test.test_socket.LinuxKernelCryptoAPI) ... ERROR *======================================================================* *ERROR: test_sha256 (test.test_socket.LinuxKernelCryptoAPI)* *----------------------------------------------------------------------* *Traceback (most recent call last):* * File "/tmp/Python-3.6.3/Lib/test/test_socket.py", line 5424, in test_sha256* * op.sendall(b"abc")* *OSError: [Errno 126] Required key not available* ---------------------------------------------------------------------- Ran 1 test in 0.002s FAILED (errors=1) test test_socket failed test_socket failed 1 test failed: test_socket Total duration: 42 ms Tests result: FAILURE Here is the strace: socket(AF_INET6, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_IP) = 3 bind(3, {sa_family=AF_INET6, sin6_port=htons(0), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=htonl(0), sin6_scope_id=0}, 28) = 0 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20479, si_uid=1000, si_status=0, si_utime=0, si_stime=0} --- socket(AF_CAN, SOCK_RAW|SOCK_CLOEXEC, 1) = 3 socket(AF_RDS, SOCK_SEQPACKET|SOCK_CLOEXEC, 0) = -1 EAFNOSUPPORT (Address family not supported by protocol) socket(AF_ALG, SOCK_SEQPACKET|SOCK_CLOEXEC, 0) = 3 socket(AF_INET6, SOCK_DGRAM|SOCK_CLOEXEC, IPPROTO_IP) = 3 socket(AF_INET6, SOCK_DGRAM|SOCK_CLOEXEC, IPPROTO_IP) = 3 socket(AF_INET6, SOCK_DGRAM|SOCK_CLOEXEC, IPPROTO_IP) = 3 socket(AF_INET6, SOCK_DGRAM|SOCK_CLOEXEC, IPPROTO_IP) = 3 socket(AF_INET6, SOCK_DGRAM|SOCK_CLOEXEC, IPPROTO_IP) = 3 socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_SCTP) = 3 socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_SCTP) = 3 socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_SCTP) = 3 socket(AF_ALG, SOCK_SEQPACKET|SOCK_CLOEXEC, 0) = 3 bind(3, {sa_family=AF_ALG, sa_data="hash\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0sha256\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 88) = 0 accept4(3, NULL, NULL, SOCK_CLOEXEC) = 4 sendto(4, "abc", 3, 0, NULL, 0) = -1 ENOKEY (Required key not available) +++ exited with 2 +++ Any ideas? -- Ryan C. Decker '08 Principle Network & Systems Eng. Siena College ITS 515 Loudon Road Loudonville, NY 12211 rdec...@siena.edu CONFIDENTIALITY NOTICE: This e-mail, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure, or distribution is prohibited. If you received this e-mail and are not the intended recipient, please inform the sender by e-mail reply and destroy all copies of the original message. -- https://mail.python.org/mailman/listinfo/python-list