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 1627604

Summary: Missing vhostuser NICs interface name by "# virsh domiflist $domain"
Product: Red Hat Enterprise Linux 7 Reporter: Pei Zhang <pezhang>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.6   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-11 02:07:32 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 Flags
Guest XML none

Description Pei Zhang 2018-09-11 01:57:27 UTC
Created attachment 1482248 [details]
Guest XML

Description of problem:
Boot VM with 2 vhost-user NICs, then check NICs by "# virsh domiflist $domain", fail to get the NICs interface name.


Version-Release number of selected component (if applicable):
libvirt-4.5.0-9.el7.x86_64
qemu-kvm-rhev-2.12.0-13.el7.x86_64


How reproducible:
100%


Steps to Reproduce:
1. Boot VM with 2 vhost-user ports, full XML is attached.

2. Check NICs status, fail to get vhostuser ports interface name.
# virsh domiflist rhel7.6
Interface  Type       Source     Model       MAC
-------------------------------------------------------
vnet0      bridge     switch     virtio      88:66:da:5f:dd:01
-          vhostuser  -          virtio      88:66:da:5f:dd:02
-          vhostuser  -          virtio      88:66:da:5f:dd:03


Actual results:
Fail to get vhostuser ports interface name by "# virsh domiflist $domain".


Expected results:
Should get vhostuser ports interface name by "# virsh domiflist $domain".


Additional info:
1. This should be a regression bug.
Seems it looks good with libvirt-3.7.0-2.el7.x86_64. See Bug 1461270 Comment 6.

Comment 2 Pei Zhang 2018-09-11 02:07:32 UTC
I missed an option <target dev='vhostuser0'/>, after adding this option like below, everything works well, so this is not a bug. 

    <interface type='vhostuser'>
      <mac address='88:66:da:5f:dd:02'/>
      <source type='unix' path='/tmp/vhostuser0.sock' mode='server'/>
      <target dev='vhostuser0'/>
      <model type='virtio'/>
      <driver name='vhost' queues='2' rx_queue_size='512' iommu='on' ats='on'/>
      <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
    </interface>


# virsh domiflist rhel7.6
Interface  Type       Source     Model       MAC
-------------------------------------------------------
vnet0      bridge     switch     virtio      88:66:da:5f:dd:01
vhostuser0 vhostuser  -          virtio      88:66:da:5f:dd:02
vhostuser1 vhostuser  -          virtio      88:66:da:5f:dd:03


Close this bug as NOTABUG. Sorry for the confusion.