Bug 851395
Summary: | xml parse error occur after upgrade to the newest package | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | EricLee <bili> |
Component: | libvirt | Assignee: | Michal Privoznik <mprivozn> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.4 | CC: | acathrow, dyasny, dyuan, gsun, mzhan, rwu, weizhan, whuang, ydu |
Target Milestone: | rc | Keywords: | Regression |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.10.0-1.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-21 07:21:46 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: | 822589 |
Description
EricLee
2012-08-24 04:12:45 UTC
The "<seclabel type='dynamic' relabel='yes'/>" will cause error in libvirtd.log: From Bug 822589: Define a domain with xml: ... <seclabel type='dynamic' relabel='yes'/> ... # virsh start libvirt_test_api Domain libvirt_test_api started # virsh dumpxml libvirt_test_api check xml: ... <seclabel type='dynamic' relabel='yes'/> <seclabel type='dynamic' model='dac' relabel='yes'> <label>107:107</label> <imagelabel>107:107</imagelabel> </seclabel> <seclabel type='dynamic' model='selinux' relabel='yes'> <label>unconfined_u:system_r:svirt_t:s0:c39,c243</label> <imagelabel>unconfined_u:object_r:svirt_image_t:s0:c39,c243</imagelabel> </seclabel> ... After domain started, dac and selinux model seclabel are added, but the seclabel without model also stay. check in log: 2012-08-24 04:06:34.073+0000: 27164: error : virSecurityLabelDefParseXML:3129 : XML error: missing security model So the problem maybe due to that bug https://bugzilla.redhat.com/show_bug.cgi?id=822589. Michal fixed this problem in the following patch pushed upstream (in response comments in Bug 822589, which is tracking the addition of the new feature whose patches caused this regression): commit 0ee655f5f5ade7cb33e1f93af18c6948591d0fba Author: Michal Privoznik <mprivozn> Date: Fri Aug 24 14:59:59 2012 +0200 conf: Don't always require security/@model Only parse model, if static labelling, or a base label is set, or doing active XML. Verify this bug with libvirt-0.10.0-1.el6.x86_64. Update from 0.10.0-0rc0.el6.x86_64 to libvirt-0.10.0-1.el6.x86_64, the old guest still keep its status and no xml parse error. So move to VERIFIED. 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. http://rhn.redhat.com/errata/RHSA-2013-0276.html |