libvirtd virNetSocketReadWire:1811 : End of file while reading data: Input/output error

Bug #1869848 reported by weisongf
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

root@cmp021:~# dpkg -l|grep libvirt
ii libvirt-clients 4.0.0-1.8.5~u16.04 amd64 Programs for the libvirt library
ii libvirt-daemon 4.0.0-1.8.5~u16.04 amd64 Virtualization daemon
ii libvirt-daemon-system 4.0.0-1.8.5~u16.04 amd64 Libvirt daemon configuration files
ii libvirt-exporter 1.0.2 amd64 Prometheus metrics exporter for libvirt
ii libvirt0:amd64 4.0.0-1.8.5~u16.04 amd64 library for interfacing with different virtualization systems
ii python-libvirt 3.5.0-1.1~u16.04 amd64 libvirt Python bindings

systemctl status libvirtd
● libvirtd.service - Virtualization daemon
   Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2020-03-26 17:44:52 CST; 4 days ago
     Docs: man:libvirtd(8)
           https://libvirt.org
 Main PID: 7601 (libvirtd)
    Tasks: 77 (limit: 32768)
   Memory: 158.2M
      CPU: 4w 1d 19h 11min 33.295s
   CGroup: /system.slice/libvirtd.service
           ├─ 7601 /usr/sbin/libvirtd -l
           └─31256 qemu-system-x86_64 -enable-kvm -name guest=instance-000081f3,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-182-instance-0000

Mar 26 19:04:22 cmp021 libvirtd[7601]: 2020-03-26 11:04:22.280+0000: 7601: error : virNetSocketReadWire:1811 : End of file while reading data: Input/output error
Mar 26 19:04:34 cmp021 libvirtd[7601]: 2020-03-26 11:04:34.307+0000: 7601: error : virNetSocketReadWire:1811 : End of file while reading data: Input/output error
Mar 26 19:04:36 cmp021 libvirtd[7601]: 2020-03-26 11:04:36.596+0000: 7601: error : virNetSocketReadWire:1811 : End of file while reading data: Input/output error
Mar 26 19:04:37 cmp021 libvirtd[7601]: 2020-03-26 11:04:37.279+0000: 7601: error : virNetSocketReadWire:1811 : End of file while reading data: Input/output error
Mar 26 19:05:34 cmp021 libvirtd[7601]: 2020-03-26 11:05:34.311+0000: 7601: error : virNetSocketReadWire:1811 : End of file while reading data: Input/output error
Mar 26 19:05:36 cmp021 libvirtd[7601]: 2020-03-26 11:05:36.596+0000: 7601: error : virNetSocketReadWire:1811 : End of file while reading data: Input/output error
Mar 26 19:05:37 cmp021 libvirtd[7601]: 2020-03-26 11:05:37.279+0000: 7601: error : virNetSocketReadWire:1811 : End of file while reading data: Input/output error

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libvirt (Ubuntu):
status: New → Confirmed
Revision history for this message
Pooja Ghumre (pooja-9) wrote :

Also seeing this issue during live migration with below libvirt-bin version:

4.0.0-1ubuntu8.15~cloud0

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
I'm trying to clean up old bugs right now.
On this particular case there never was an actionable level of debug/info or a chance to recreate.
Furthermore I have not seen "similar" issues come in since then so we really would need to understand better what config/setup made this trigger the issue.

I say "similar" in quotes as the error message unfortunately is pretty generic and could mean a lot of various things. But so far all of them ended up either unreproducible
https://bugzilla.redhat.com/show_bug.cgi?id=1918211
https://bugzilla.redhat.com/show_bug.cgi?id=1821277
or misconfigurations in other layers of the virt stack which were not mentioned to be present here
https://bugzilla.redhat.com/show_bug.cgi?id=1474584

Therefore since this does not seem actionable without more insight into what triggers the issue I ahve to mark the case incomplete :-/

Changed in libvirt (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
torel (torehl) wrote :

Mar 16 12:43:52 v001 libvirtd[14215]: 2023-03-16 11:43:52.933+0000: 14215: error : virNetSocketReadWire:1811 : End of file while reading data: Input/output error

while live migrating between two host in my 4 host cluster. Image disappeared! Not good.

Revision history for this message
torel (torehl) wrote :

What do you need from me? I have a POC Supermicro Twin2 quad node setup, with IB (FDR 56Gbps) and PCIe networking (128Gbps x8) between hosts. Migration between hosts is virtually instant over ib or dis0 (PCIe). While migrating, I triggered the above issue and the image disappeared.

How can I help debug this?

Revision history for this message
torel (torehl) wrote :

ii libvirt-bin 4.0.0-1ubuntu8.21 amd64 programs for the libvirt library

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi Torel,
as I said above the message is pretty generic - it would be the same for a whole category of migration issues [0]. Since you seem to be able to reproduce, and do so rather quickly the next steps would be:

- for migrations you always want to trace both sides as the root cause could be on source or target
- you'd want to get detailed logs of libvirt [1]
- you'd want to get logs of qemu (let libvirt add -D to a file) [2][3]
  - guests are rather isolated by apparmor, you might need to allow it to write to that file [4]

Last but not least since you are on a pretty old libvirt (4.0 was bionic which is great but also 5 years old) you should try the very same activity with at least 22.04 Jammy and 23.04 Lunar. Chances are you have hit a fixed issue, if that is the case bisecting to what fixed it can be faster than reading massive logfiles over and over.

And since chances are quite low that you actually hit the very same issue as the initial reporter here I think filing with all that info as a new libvirt+qemu bug would be more appropriate.

[0]: https://wiki.qemu.org/Features/Migration/Troubleshooting
[1]: https://libvirt.org/kbase/debuglogs.html#turning-on-debug-logs
[2]: https://libvirt.org/formatdomain.html
[3]: https://libvirt.org/kbase/qemu-passthrough-security.html
[4]: ApparmorIsolation in https://ubuntu.com/server/docs/virtualization-libvirt

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.