Bug 2077328

Summary: Remove '\n' from vhostuser ifname
Product: Red Hat Enterprise Linux Advanced Virtualization Reporter: kazuhiro kawana <kkawana>
Component: libvirtAssignee: Jiri Denemark <jdenemar>
Status: CLOSED CURRENTRELEASE QA Contact: yalzhang <yalzhang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4CC: ehadley, jdenemar, lmen, rszmigie, virt-maint, xuzhang, ymankad
Target Milestone: rcKeywords: TestOnly, ZStream
Target Release: 8.4   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-7.3.0-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2077923 2077924 (view as bug list) Environment:
Last Closed: 2022-04-22 15:34:26 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: 2077923, 2077924    

Description kazuhiro kawana 2022-04-21 04:53:38 UTC
### Description of problem:
When we dump a definition of a VM that was created on Openstack, 
it looks like the xml contains improperly a new line character.

A same issue was reported in libvirt bug and already fixed:

Fixed bug: 
https://github.com/libvirt/libvirt/commit/b29c86ae1042fc44e7c86f3519f048a696e68afe

Related bug:
https://bugzilla.redhat.com/show_bug.cgi?id=2032795

This bug had fixed on libvirt-client 7.0.1 later. However, this issue has occurred in RHOSP16.2.  And RHOSP16.2 depends on RHEL8.4. Please backport the fix to libvit-client on RHEL8.4.

### Version-Release number of selected component (if applicable):

libvirt-client-6.0.0-35.1.module+el8.4.0+11273+64eb94ef.x86_64 Mon Apr 18 15:57:53 2022

### How reproducible:

Anytime

### Steps to Reproduce:

Run virsh dumpxml with the VM that contains the vhostuser ifname.

### Actual results:

When we dump a definition of a VM that was created on Openstack,
it looks like the xml contains improperly a new line character.

    <interface type='vhostuser'>
      <mac address='XX:XX:XX:XX:XX:XX'/>
      <source type='unix' path='/var/lib/vhost_sockets/vhu05b874eb-f6' mode='server'/>
      <target dev='vhu05b874eb-f6       <------ here is a improperly new line character
'/>
      <model type='virtio'/>
      <driver rx_queue_size='1024' tx_queue_size='1024'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>

This behavior does not occur in RHOSP13.


### Expected results:
Remove extra '\n' from vhostuser ifname

Comment 1 Jiri Denemark 2022-04-21 08:35:33 UTC
This is already fixed in RHEL-AV 8.5.0 and newer. Once 8.4.0.z clone is
created, we will close this BZ.

Comment 2 yalzhang@redhat.com 2022-04-21 13:34:09 UTC
I can reproduce it on rhel8.4 av with libvirt-7.0.0-14.1.module+el8.4.0+11095+d46acebf.x86_64
and on rhel 8.5 av libvirt-7.6.0-6.module+el8.5.0+13051+7ddbe958.x86_64, the issue is fixed.

Comment 4 yalzhang@redhat.com 2022-04-22 07:48:51 UTC
*** Bug 2032795 has been marked as a duplicate of this bug. ***

Comment 6 Yash Mankad 2022-04-22 15:34:02 UTC
Based on #c1 and #c2, closing the AV-8.6 and AV-8.5z BZs as CURRENT RELEASE, as those releases already contain the fix.

The AV-8.4z BZ is https://bugzilla.redhat.com/show_bug.cgi?id=2077923