Bug 1035792 - libvirt nodedev xml rng schema isn't valid
Summary: libvirt nodedev xml rng schema isn't valid
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Peter Krempa
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-28 13:43 UTC by Pavel Hrdina
Modified: 2014-06-18 01:00 UTC (History)
5 users (show)

Fixed In Version: libvirt-1.1.1-14.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 11:54:40 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Pavel Hrdina 2013-11-28 13:43:55 UTC
Description of problem:
The nodedev.rng schema isn't valid. There is missing element "path" for "device" element. The new feature has been added by commit c4a4603d.

Version-Release number of selected component (if applicable):
libvirt-client-1.1.1-12.el7

How reproducible:
100%

Steps to Reproduce:
1. virsh nodedev-dumpxml pci_0000_00_00_0 > pci_0000_00_00_0.xml
2. virt-xml-validate pci_0000_00_00_0.xml nodedev

Actual results:
pci_0000_00_00_0.xml:3: element path: Relax-NG validity error : Did not expect element path there
pci_0000_00_00_0.xml fails to validate

Expected results:
pci_0000_00_00_0.xml validates

Comment 1 Pavel Hrdina 2013-11-28 13:46:11 UTC
The upstream commit id with a fix is 0bdefd9b.

Comment 4 hyao@redhat.com 2013-12-09 09:48:15 UTC
Reproduced the bug with: 
#rpm -qa libvirt
libvirt-1.1.1-13.el7.x86_64

# virsh nodedev-dumpxml pci_0000_00_00_0 > pci_0000_00_00_0.xml
# virt-xml-validate pci_0000_00_00_0.xml 
pci_0000_00_00_0.xml:3: element path: Relax-NG validity error : Did not expect element path there
pci_0000_00_00_0.xml fails to validate

Verified it with: 
#rpm -qa libvirt
libvirt-1.1.1-14.el7.x86_64
# virsh nodedev-dumpxml pci_0000_00_00_0 > pci_0000_00_00_0.xml
# virt-xml-validate pci_0000_00_00_0.xml 
pci_0000_00_00_0.xml validates

Comment 5 Ludek Smid 2014-06-13 11:54:40 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


Note You need to log in before you can comment on or make changes to this bug.