Bug 1285665
Summary: | Fail to valid the guest's xml while set the graphical listen as ipv6 address which end with "::" on rhel7 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | mxie <mxie> |
Component: | libvirt | Assignee: | Ján Tomko <jtomko> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.2 | CC: | dyuan, fjin, jdenemar, jtomko, juzhou, mzhan, rbalakri, tzheng, xiaodwan |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.3.1-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-03 18:32:18 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
mxie@redhat.com
2015-11-26 08:27:39 UTC
Reproducible with libvirt-1.2.17-13.el7 Upstream patch: https://www.redhat.com/archives/libvir-list/2015-November/msg01118.html Note that 'virsh edit' did not validate the XML before RHEL 7.2, it was added upstream by: commit d7565bd8aab018302307a994e7753766cc72c085 Author: Daniel P. Berrange <berrange> CommitDate: 2015-01-16 11:07:59 +0000 virsh: add support for domain XML validation The 'virsh edit' command gets XML validation enabled by default, with a --skip-validate option to disable it. The 'virsh define' and 'virsh create' commands get a --validate option to enable it, to avoid regressions for existing scripts. The quality of error reporting from libxml2 varies depending on the type of XML error made. Sometimes it is quite clear and useful, other times it is obscure & inaccurate. At least the user will see an error now, rather than having their XML modification silently disappear. git describe: v1.2.11-188-gd7565bd contains: v1.2.12-rc1~21 Now pushed upstream: commit 7ec235ed092a2408ca0d3b7fd1c4bfcbc3fc835e Author: Ján Tomko <jtomko> CommitDate: 2015-11-26 11:05:18 +0100 schema: use a better regex for listen addresses A domain with '::' as the listen address fails to validate. Reuse the 'ipAddr' and 'dnsName' regexes from basictypes instead of reinventing them. https://bugzilla.redhat.com/show_bug.cgi?id=1285665 git describe: v1.2.21-142-g7ec235e Verify pass on downstream build: libvirt-1.3.1-1.el7.x86_64 Steps: # virsh edit rhel7 (edit listen address to :: or 0::, like <graphics type='spice' port='5900' autoport='no' listen='0::'> ) Domain rhel7 XML configuration edited. # virsh dumpxml rhel7 |grep gra <graphics type='spice' port='5900' autoport='no' listen='0::'> </graphics> # virsh start rhel7 # ps aux|grep qemu ...-spice port=5900,addr=::,disable-ticketing,seamless-migration=on... Verify pass on downstream build: libvirt-1.3.3-1.el7.x86_64 Steps: 1. # virsh edit windows <graphics type='spice' port='5905' autoport='no' listen='**0::**'/> Domain windows XML configuration edited. 2. # virsh dumpxml windows <graphics type='spice' port='5905' autoport='no' listen='0::'> <listen type='address' address='0::'/> </graphics> 3. # virsh start windows 4. # ps aux|grep qemu -spice port=5905,addr=0::,... 5.# remote-viewer spice://10.66.5.57:5905 6.Edit listen address to '::', and test again 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://rhn.redhat.com/errata/RHSA-2016-2577.html |