Bug 1812965
Summary: | libvirtd crashed when do "virsh guestinfo vm" if vm's guest agent doesn't support guest-get-fsinfo | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Fangge Jin <fjin> |
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
Status: | CLOSED ERRATA | QA Contact: | Lili Zhu <lizhu> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 8.2 | CC: | chhu, jdenemar, lizhu, lmen, mtessun, pkrempa, virt-maint, xuzhang |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-6.0.0-11.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-05-05 09:59:00 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: |
Description
Fangge Jin
2020-03-12 15:24:14 UTC
Fixed upstream by: 530ac28861 qemuDomainGetGuestInfo: don't assign NULL hostname 0fdb7385e4 qemuDomainGetGuestInfo: Don't try to free a negative number of entries da1b193227 qemuAgentFSInfoFormatParams: Remove pointless returned value reproduce this bug with: libvirt-daemon-6.0.0-10.module+el8.2.0+5984+dce93708.x86_64 qemu-kvm-4.2.0-15.module+el8.2.0+6029+618ef2ec.x86_64 1. prepare a windows guest with qemu-ga of old version that doesn't support guest-get-fsinfo # virsh domtime win10 Time: 1586896655 2. check libvirtd # systemctl status libvirtd ● libvirtd.service - Virtualization daemon Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2020-04-15 04:38:30 EDT; 1min 6s ago Docs: man:libvirtd(8) https://libvirt.org Main PID: 2328745 (libvirtd) Tasks: 19 (limit: 32768) Memory: 1.8G CGroup: /system.slice/libvirtd.service ├─ 31947 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper ├─ 31948 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper └─2328745 /usr/sbin/libvirtd --timeout 120 3. try to get information about the guest # virsh guestinfo win10 error: Disconnected from qemu:///system due to end of file error: End of file while reading data: Input/output error 4. check libvirtd again # systemctl status libvirtd ● libvirtd.service - Virtualization daemon Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2020-04-15 04:40:05 EDT; 28s ago Docs: man:libvirtd(8) https://libvirt.org Main PID: 2328892 (libvirtd) Tasks: 19 (limit: 32768) Memory: 1.8G CGroup: /system.slice/libvirtd.service ├─ 31947 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper ├─ 31948 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper └─2328892 /usr/sbin/libvirtd --timeout 120 libvirtd crashed verify this bug with: libvirt-daemon-6.0.0-17.module+el8.2.0+6257+0d066c28.x86_64 qemu-kvm-4.2.0-17.module+el8.2.0+6141+0f540f16.x86_64 1. check libvirtd # systemctl status libvirtd ● libvirtd.service - Virtualization daemon Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2020-04-15 04:44:36 EDT; 8s ago Docs: man:libvirtd(8) https://libvirt.org Main PID: 2329357 (libvirtd) Tasks: 19 (limit: 32768) Memory: 1.8G CGroup: /system.slice/libvirtd.service ├─ 31947 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper ├─ 31948 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper └─2329357 /usr/sbin/libvirtd --timeout 120 2. try to get information about the guest # virsh guestinfo win10 3. check libvirtd again # systemctl status libvirtd ● libvirtd.service - Virtualization daemon Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2020-04-15 04:44:36 EDT; 37s ago Docs: man:libvirtd(8) https://libvirt.org Main PID: 2329357 (libvirtd) Tasks: 19 (limit: 32768) Memory: 1.8G CGroup: /system.slice/libvirtd.service ├─ 31947 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper ├─ 31948 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper └─2329357 /usr/sbin/libvirtd --timeout 120 No log like the following appeared: kernel: libvirtd[2328747]: segfault at 0 ip 00007f4b35060747 sp 00007f4b71113650 error 4 in libvirt_driver_qemu.so[7f4b34f55000+1b7000] As the testing result matches with the expected result, mark the bug as 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, 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-2020:2017 |