Bug 2077923

Summary: Remove '\n' from vhostuser ifname [rhel-av-8.4.z]
Product: Red Hat Enterprise Linux Advanced Virtualization Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: libvirtAssignee: Jiri Denemark <jdenemar>
Status: CLOSED ERRATA QA Contact: yalzhang <yalzhang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4CC: ehadley, jdenemar, kkawana, lmen, rszmigie, virt-maint, xuzhang, ymankad
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: 8.5   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-7.0.0-14.7.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2077328 Environment:
Last Closed: 2022-06-13 11:51:38 UTC Type: ---
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: 2077328    
Bug Blocks:    

Comment 5 yalzhang@redhat.com 2022-04-28 07:11:18 UTC
Reproduce it on libvirt-7.0.0-14.1.module+el8.4.0+11095+d46acebf.x86_64
start vm and check the xml:
# virsh dumpxml rhel | grep /interface -B9
    <interface type='vhostuser'>
      <mac address='52:54:00:93:51:dd'/>
      <source type='unix' path='/var/lib/libvirt/qemu/vhost-user1' mode='server'/>
      <target dev='vhost-user1
'/>
      <model type='virtio'/>
      <driver queues='4'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>

Update libvirt to libvirt-7.0.0-14.7.module+el8.4.0+14999+7018bc43.x86_64 and start the vm, check the xml, the bug is fixed
 virsh dumpxml rhel | grep /interface -B8
    <interface type='vhostuser'>
      <mac address='52:54:00:93:51:dd'/>
      <source type='unix' path='/var/lib/libvirt/qemu/vhost-user1' mode='server'/>
      <target dev='vhost-user1'/>
      <model type='virtio'/>
      <driver queues='4'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>

Comment 8 errata-xmlrpc 2022-06-13 11:51:38 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 (Moderate: virt:av and virt-devel:av security and bug fix update), 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-2022:5002