Bug 2046170
| Summary: | Possible hang or crash of libvirtd/virtqemud when starting a VM and device mapper is not available | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Peter Krempa <pkrempa> | |
| Component: | libvirt | Assignee: | Peter Krempa <pkrempa> | |
| libvirt sub component: | General | QA Contact: | Meina Li <meili> | |
| Status: | CLOSED ERRATA | Docs Contact: | ||
| Severity: | unspecified | |||
| Priority: | unspecified | CC: | chhu, hhan, jdenemar, lmen, meili, virt-maint, xuzhang | |
| Version: | 9.0 | Keywords: | Triaged | |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
|
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | libvirt-8.0.0-3.el9 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2046172 (view as bug list) | Environment: | ||
| Last Closed: | 2022-05-17 12:46:17 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 2046172 | |||
|
Description
Peter Krempa
2022-01-26 10:38:36 UTC
Can reproduce in libvirt-8.0.0-2.el9.x86_64 and qemu-kvm-6.2.0-5.el9.x86_64: 1. Prepare a guest with three disks. # virsh domblklist lmn Target Source ----------------------------------------------- vda /var/lib/libvirt/images/lmn.qcow2 sda /var/lib/libvirt/images/test.qcow2 sdb /var/lib/libvirt/images/test1.qcow2 2. Start the guest. # virsh start lmn ----hang 3. Check the libvirtd log. 2022-01-30 02:41:06.402+0000: 428107: debug : qemuProcessLaunch:7495 : Writing early domain status to disk 2022-01-30 02:41:06.403+0000: 428107: debug : qemuProcessLaunch:7499 : Waiting for handshake from child 2022-01-30 02:41:06.403+0000: 428107: debug : virCommandHandshakeWait:2852 : Wait for handshake on 27 2022-01-30 02:41:06.403+0000: 428107: debug : qemuProcessLaunch:7507 : Building domain mount namespace (if required) 2022-01-30 02:41:06.403+0000: 428107: debug : qemuDomainSetupAllDisks:296 : Setting up disks 2022-01-30 02:41:06.403+0000: 428107: debug : virDMOpen:141 : device mapper not available 2022-01-30 02:41:06.403+0000: 428107: debug : virDMOpen:141 : device mapper not available 2022-01-30 02:41:06.403+0000: 428107: debug : virDMOpen:141 : device mapper not available Can be passed in libvirt-8.1.0-1.fc35.x86_64 and qemu-kvm-6.1.0-13.fc35.x86_64 with split daemon mode. 1. Prepare a guest with three disks. # virsh domblklist lmn Target Source ----------------------------------------------- vda /var/lib/libvirt/images/lmn.qcow2 sda /var/lib/libvirt/images/test.qcow2 sdb /var/lib/libvirt/images/test1.qcow2 2. Start the guest. # virsh start lmn Domain 'lmn' started 3. Check the libvirtd log. 2021-12-15 02:15:22.803+0000: 100807: debug : qemuProcessLaunch:7558 : Writing early domain status to disk 2021-12-15 02:15:22.803+0000: 100807: debug : qemuProcessLaunch:7562 : Waiting for handshake from child 2021-12-15 02:15:22.803+0000: 100807: debug : virCommandHandshakeWait:2851 : Wait for handshake on 38 2021-12-15 02:15:22.803+0000: 100807: debug : qemuProcessLaunch:7570 : Building domain mount namespace (if required) 2021-12-15 02:15:22.803+0000: 100807: debug : qemuDomainSetupAllDisks:296 : Setting up disks 2021-12-15 02:15:22.803+0000: 100807: debug : qemuDomainSetupAllDisks:304 : Setup all disks 2021-12-15 02:15:22.803+0000: 100807: debug : qemuDomainSetupAllHostdevs:337 : Setting up hostdevs 2021-12-15 02:15:22.803+0000: 100807: debug : qemuDomainSetupAllHostdevs:345 : Setup all hostdevs (In reply to Meina Li from comment #2) > Can be passed in libvirt-8.1.0-1.fc35.x86_64 and > qemu-kvm-6.1.0-13.fc35.x86_64 with split daemon mode. Forget to remove /dev/mapper/control device node: # rm -rf /dev/mapper/control > 1. Prepare a guest with three disks. > # virsh domblklist lmn > Target Source > ----------------------------------------------- > vda /var/lib/libvirt/images/lmn.qcow2 > sda /var/lib/libvirt/images/test.qcow2 > sdb /var/lib/libvirt/images/test1.qcow2 > 2. Start the guest. > # virsh start lmn > Domain 'lmn' started > 3. Check the libvirtd log. 022-01-30 03:29:19.094+0000: 109432: debug : virCommandHandshakeWait:2852 : Wait for handshake on 28 2022-01-30 03:29:19.095+0000: 109432: debug : qemuProcessLaunch:7495 : Building domain mount namespace (if required) 2022-01-30 03:29:19.095+0000: 109432: debug : qemuDomainSetupAllDisks:296 : Setting up disks 2022-01-30 03:29:19.095+0000: 109432: debug : virDMOpen:141 : device mapper not available 2022-01-30 03:29:19.095+0000: 109432: debug : virDMOpen:141 : device mapper not available 2022-01-30 03:29:19.095+0000: 109432: debug : virDMOpen:141 : device mapper not available 2022-01-30 03:29:19.095+0000: 109432: debug : qemuDomainSetupAllDisks:304 : Setup all disks Verified Version: libvirt-8.0.0-3.el9.x86_64 qemu-kvm-6.2.0-7.el9.x86_64 Verified Steps: 1. Remove /dev/mapper/control. # rm -rf /dev/mapper/control 2. Start a guest with three disks. # virsh domblklist lmn Target Source ----------------------------------------------- vda /var/lib/libvirt/images/lmn.qcow2 vdb /var/lib/libvirt/images/test.qcow2 vdc /var/lib/libvirt/images/test1.qcow2 # virsh start lmn Domain 'lmn' started ------no hang 3. Check the libvirtd log. 2022-02-09 10:01:53.747+0000: 159442: debug : qemuProcessLaunch:7499 : Waiting for handshake from child 2022-02-09 10:01:53.747+0000: 159442: debug : virCommandHandshakeWait:2852 : Wait for handshake on 27 2022-02-09 10:01:53.747+0000: 159442: debug : qemuProcessLaunch:7507 : Building domain mount namespace (if required) 2022-02-09 10:01:53.747+0000: 159442: debug : qemuDomainSetupAllDisks:296 : Setting up disks 2022-02-09 10:01:53.747+0000: 159442: debug : virDMOpen:141 : device mapper not available 2022-02-09 10:01:53.747+0000: 159442: debug : virDMOpen:141 : device mapper not available 2022-02-09 10:01:53.747+0000: 159442: debug : virDMOpen:141 : device mapper not available 2022-02-09 10:01:53.747+0000: 159442: debug : qemuDomainSetupAllDisks:304 : Setup all disks 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 (new packages: libvirt), 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:2390 |