Bug 1035792

Summary: libvirt nodedev xml rng schema isn't valid
Product: Red Hat Enterprise Linux 7 Reporter: Pavel Hrdina <phrdina>
Component: libvirtAssignee: Peter Krempa <pkrempa>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: acathrow, dyuan, lcui, mzhan, pkrempa
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libvirt-1.1.1-14.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 11:54:40 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:

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.