Bug 1591670
| Summary: | Missing source path attribute for char device | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Xiaodai Wang <xiaodwan> | ||||
| Component: | virt-manager | Assignee: | Pavel Hrdina <phrdina> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 7.6 | CC: | jsuchane, juzhou, mxie, mzhan, phrdina, tzheng | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | virt-manager-1.5.0-2.el7 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1591674 (view as bug list) | Environment: | |||||
| Last Closed: | 2019-08-06 13:08:01 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: | 1591674 | ||||||
| Attachments: |
|
||||||
Created attachment 1451832 [details]
vit clone log
Upstream commit:
commit 931936a328d22413bb663e0e21d2f7bb111dbd7c
Author: Pavel Hrdina <phrdina>
Date: Thu Jun 28 16:18:43 2018 +0200
virtinst: Remove only auto-generated channel source path
Hi,Pavel Is this bug targeted for rhel7.6 since I see rhel-7.6.0+ flag is set, if so when will you plan to build the new virt-manager package including fix of this bug,thanks. BR, juzhou. I can reproduce this issue with package:
virt-manager-1.5.0-1.el7.noarch
Then try to verify this bug with new build:
virt-manager-1.5.0-3.el7.noarch
virt-install-1.5.0-3.el7.noarch
libvirt-4.5.0-12.el7.x86_64
qemu-kvm-rhev-2.12.0-26.el7.x86_64
libvirt-python-4.5.0-1.el7.x86_64
Steps:
1. Prepare a guest with below unix channel.
<channel type='unix'>
<source mode='bind' path='/tmp/guestfwd'/>
<target type='guestfwd' address='10.0.2.1' port='4600'/>
</channel>
2. Clone the guest.
#virt-clone -o rhel7.6 --debug --auto-clone
Allocating 'rhel7.6.qcow2' | 7.0 GB 03:57
Clone 'rhel7.6-clone' created successfully.
3 Check unix channel of new guest in xml file.
#virsh dumpxml rhel7.6-clone | grep channel
<channel type='unix'>
<source mode='bind' path='/tmp/guestfwd'/>
<target type='guestfwd' address='10.0.2.1' port='4600'/>
</channel>
Results:
1. The clone finishes with source path on xml file and new guest starts successfully.
2. The none auto-generated channel source path '/tmp/guestfwd' keeps during cloning.
I move this bug from ON_QA to VERIFIED based on above testing.
I can reproduce this issue with package:
virt-manager-1.5.0-1.el7.noarch
Then try to verify this bug with new build:
virt-manager-1.5.0-3.el7.noarch
virt-install-1.5.0-3.el7.noarch
libvirt-4.5.0-12.el7.x86_64
qemu-kvm-rhev-2.12.0-26.el7.x86_64
libvirt-python-4.5.0-1.el7.x86_64
Steps:
1. Prepare a guest with below unix channel.
<channel type='unix'>
<source mode='bind' path='/tmp/guestfwd'/>
<target type='guestfwd' address='10.0.2.1' port='4600'/>
</channel>
2. Clone the guest.
#virt-clone -o rhel7.6 --debug --auto-clone
Allocating 'rhel7.6.qcow2' | 7.0 GB 03:57
Clone 'rhel7.6-clone' created successfully.
3 Check unix channel of new guest in xml file.
#virsh dumpxml rhel7.6-clone | grep channel
<channel type='unix'>
<source mode='bind' path='/tmp/guestfwd'/>
<target type='guestfwd' address='10.0.2.1' port='4600'/>
</channel>
Results:
1. The clone finishes with source path on xml file and new guest starts successfully.
2. The none auto-generated channel source path '/tmp/guestfwd' keeps during cloning.
I move this bug from ON_QA to VERIFIED based on above testing.
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/RHBA-2019:2232 |
Description of problem: Missing source path attribute for char device Version-Release number of selected component (if applicable): virt-manager-1.5.0-1.el7.noarch How reproducible: 100% Steps to Reproduce: 1. Prepare a guest with below unix channel. <channel type='unix'> <source mode='bind' path='/tmp/guestfwd'/> <target type='guestfwd' address='10.0.2.1' port='4600'/> </channel> 2. Clone the guest. # virt-clone -o rhel7.5vnc --debug --auto-clone Actual results: [Fri, 15 Jun 2018 16:11:17 virt-clone 22262] DEBUG (cloner:459) Starting duplicate. [Fri, 15 Jun 2018 16:11:17 virt-clone 22262] DEBUG (cloner:477) Duplicate failed: internal error: Missing source path attribute for char device [Fri, 15 Jun 2018 16:11:17 virt-clone 22262] DEBUG (cli:317) File "/usr/share/virt-manager/virt-clone", line 227, in <module> fail(main_e) File "/usr/share/virt-manager/virtinst/cli.py", line 317, in fail logging.debug("".join(traceback.format_stack())) [Fri, 15 Jun 2018 16:11:17 virt-clone 22262] ERROR (cli:318) internal error: Missing source path attribute for char device [Fri, 15 Jun 2018 16:11:17 virt-clone 22262] DEBUG (cli:320) Traceback (most recent call last): File "/usr/share/virt-manager/virt-clone", line 221, in <module> sys.exit(main()) File "/usr/share/virt-manager/virt-clone", line 212, in main design.start_duplicate(cli.get_meter()) File "/usr/share/virt-manager/virtinst/cloner.py", line 469, in start_duplicate dom = self.conn.defineXML(self.clone_xml) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3676, in defineXML if ret is None:raise libvirtError('virDomainDefineXML() failed', conn=self) libvirtError: internal error: Missing source path attribute for char device Expected results: The clone should success. Additional info: 1) The difference of original and clone xml. 75,77c75,77 < <channel type='unix'> < <source mode='bind' path='/tmp/guestfwd'/> < <target type='guestfwd' address='10.0.2.1' port='4600'/> --- > <channel type="unix"> > <source mode="bind"/> > <target type="guestfwd" address="10.0.2.1" port="4600"/>