Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1530451

Summary: Failed to start guest when duplicate mount point existing in the /dev
Product: Red Hat Enterprise Linux 7 Reporter: yafu <yafu>
Component: libvirtAssignee: Michal Privoznik <mprivozn>
Status: CLOSED ERRATA QA Contact: yafu <yafu>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.5CC: dyuan, jdenemar, mprivozn, xuzhang, zpeng
Target Milestone: rcKeywords: Upstream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libvirt-4.3.0-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 09:52:20 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 yafu 2018-01-03 05:20:31 UTC
Description of problem:
Failed to start guest when duplicate mount point existing in the /dev.

Version-Release number of selected component (if applicable):
libvirt-3.9.0-6.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.#mount --bind /dev/log /dev/log

2.#mount --bind /dev/log /dev/log

3.#mount | grep log
devtmpfs on /dev/log type devtmpfs (rw,nosuid,seclabel,size=5899976k,nr_inodes=1474994,mode=755)
devtmpfs on /dev/log type devtmpfs (rw,nosuid,seclabel,size=5899976k,nr_inodes=1474994,mode=755)
devtmpfs on /dev/log type devtmpfs (rw,nosuid,seclabel,size=5899976k,nr_inodes=1474994,mode=755)

4.# virsh start iommu1
error: Failed to start domain iommu1
error: internal error: Process exited prior to exec: libvirt: QEMU Driver error : Failed to create /var/run/libvirt/qemu/16-iommu1.log: No such device or address

Actual results:
Failed to start guest when duplicate mount point existing in the /dev.

Expected results:
Guest can start successfully when duplicate mount point existing in the /dev.

Additional info:

Comment 2 Michal Privoznik 2018-01-03 06:08:46 UTC
Fixed upstream already by:

commit 3d899b99653bfa8f0fa275e689d0f5716142f5a5
Author:     Michal Privoznik <mprivozn>
AuthorDate: Wed Nov 8 15:20:10 2017 +0100
Commit:     Michal Privoznik <mprivozn>
CommitDate: Wed Nov 8 16:38:26 2017 +0100

    qemu-ns: Detect /dev/* mount point duplicates even better
    
    In 4f1570720218302 I've tried to make duplicates detection for
    nested /dev mount better. However, I've missed the obvious case
    when there are two same mount points. For instance if:
    
      # mount --bind /dev/blah /dev/blah
      # mount --bind /dev/blah /dev/blah
    
    Yeah, very unlikely (in qemu driver world) but possible.
    
    Signed-off-by: Michal Privoznik <mprivozn>


$ git describe --contains 3d899b99653bfa8f0fa275e689d0f5716142f5a5
v3.10.0-rc1~165

Comment 5 yafu 2018-06-06 04:55:47 UTC
Verified with libvirt-4.3.0-1.el7.x86_64.

Test steps:
1.#mount --bind /dev/log /dev/log

2.#mount --bind /dev/log /dev/log

3.#mount | grep log
devtmpfs on /dev/log type devtmpfs (rw,nosuid,seclabel,size=5899976k,nr_inodes=1474994,mode=755)
devtmpfs on /dev/log type devtmpfs (rw,nosuid,seclabel,size=5899976k,nr_inodes=1474994,mode=755)
devtmpfs on /dev/log type devtmpfs (rw,nosuid,seclabel,size=5899976k,nr_inodes=1474994,mode=755)

4.# virsh start iommu1
Domain iommu1 started

Comment 7 errata-xmlrpc 2018-10-30 09:52:20 UTC
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/RHSA-2018:3113