Bug 2111524
| Summary: | Remote TLS connections sometimes fail with nbd_pread: nothing to poll for in state REPLY.START: Invalid argument | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Richard W.M. Jones <rjones> | ||||||||
| Component: | libnbd | Assignee: | Richard W.M. Jones <rjones> | ||||||||
| Status: | CLOSED ERRATA | QA Contact: | Vera <vwu> | ||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 9.1 | CC: | lersek, mxie, rjones, tyan, tzheng, virt-maint, vwu, xiaodwan | ||||||||
| Target Milestone: | rc | Keywords: | Triaged | ||||||||
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | libnbd-1.12.6-1.el9 | Doc Type: | If docs needed, set a value | ||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2022-11-15 09:50:16 UTC | Type: | Bug | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Richard W.M. Jones
2022-07-27 12:29:14 UTC
Created attachment 1899642 [details]
make-pki.sh
NB: You need to adjust the SERVER=... in the script!
Created attachment 1899643 [details]
test-read.py
Note: You need to adjust the server name in the script.
You may also have to open port 10809 on the server's firewall. I bumped the version to 1.12.6, but this isn't really a rebase, it's a move along the stable branch bringing in only small bug fixes: https://gitlab.com/nbdkit/libnbd/-/commits/rhel-9.1/ Created attachment 1903530 [details]
make-pki.sh
This is a slightly modified make-pki.sh which sets the cn, dns_name
and ip_address fields of the server certificate.
Reproduce with
qemu-img-7.0.0-9.el9.x86_64
libnbd-1.12.5-1.el9.x86_64
Steps to Reproduce:
1. Set up a qemu-nbd + TLS server using steps 1.-4
2. On the client machine run the test program.(client and server should be in bad network.Using "tc" to make pkt loss and corruption.)
# tc qdisc add dev enp0s31f6 root netem loss 30%
# ./test-read.py
...................................................................Traceback (most recent call last):
File "/home/pki/./test-read.py", line 11, in <module>
h.pread(4*1024*1024, 1024)
File "/usr/lib64/python3.9/site-packages/nbd.py", line 1595, in pread
return libnbdmod.pread(self._o, count, offset, flags)
nbd.Error: nbd_pread: nothing to poll for in state REPLY.START: Invalid argument (EINVAL)
Verified with
qemu-img-7.0.0-9.el9.x86_64
libnbd-1.12.6-1.el9.x86_64
Steps:
1. Set up a qemu-nbd + TLS server using steps 1.-4
2. On the client machine run the test program.
# ./test-read.py
.............................................
(As expected dotting)
Mark Verified:Tested. Moving to VERIFIED.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (libnbd bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:7944 |