RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1006699 - need add "interface" to virt-xml-validate manual page
Summary: need add "interface" to virt-xml-validate manual page
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.5
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Jiri Denemark
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1006700
TreeView+ depends on / blocked
 
Reported: 2013-09-11 07:00 UTC by EricLee
Modified: 2014-10-14 04:17 UTC (History)
5 users (show)

Fixed In Version: libvirt-0.10.2-32.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1006700 (view as bug list)
Environment:
Last Closed: 2014-10-14 04:17:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1374 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2014-10-14 08:11:54 UTC

Description EricLee 2013-09-11 07:00:27 UTC
Description of problem:
need add "interface" to virt-xml-validate manual page

Version-Release number of selected component (if applicable):
# rpm -qa libvirt qemu-kvm ; uname -r
qemu-kvm-rhev-0.12.1.2-2.400.el6.x86_64
libvirt-0.10.2-24.el6.x86_64
2.6.32-396.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
# man virt-xml-validate
....
       Valid schema names currently include

       "domain"
           The schema for the XML format used by guest domains configuration

       "network"
           The schema for the XML format used by virtual network configuration

       "storagepool"
           The schema for the XML format used by storage pool configuration

       "storagevol"
           The schema for the XML format used by storage volume descriptions

       "nodedev"
           The schema for the XML format used by node device descriptions

       "capability"
           The schema for the XML format used to declare driver capabilities
....

there is no "interface" in it, however we can use like this:
# cat eth1.xml
<interface type='ethernet' name='eth1'>
  <start mode='onboot'/>
  <mac address='00:15:17:62:ae:e8'/>
</interface>

# virt-xml-validate eth1.xml interface
eth1.xml validates

Actual results:
see description

Expected results:
should include interface

Additional info:
it is also reproduced both in rhel7 and upstream.

Comment 2 Alex Jia 2013-09-11 09:18:04 UTC
Patch on upstream:
http://www.redhat.com/archives/libvir-list/2013-September/msg00546.html

Comment 3 Jiri Denemark 2013-09-13 13:14:19 UTC
"interface" is not the only schema missing. Fixed upstream by the following commits (in v1.1.2-120-g4583ccb):

commit ab4304b7e0b90a18c5ec528028d0f1a6d1317c8c
Author: Eric Blake <eblake>
Date:   Mon Aug 19 16:32:31 2013 -0600

    virt-xml-validate: add missing schemas
    
    We were failing to autoprobe which schema to use for several
    top-level XML elements.
    
    * tools/virt-xml-validate.in (TYPE): Recognize <domainsnapshot>,
    <filter>, and <secret>.
    
    Signed-off-by: Eric Blake <eblake>

commit 4583ccbcf72d5cfb3f078d208c3efbf9aab0d799
Author: Alex Jia <ajia>
Date:   Wed Sep 11 11:47:14 2013 +0800

    tools: add missing 'interface' type and update man page
    
    Signed-off-by: Alex Jia <ajia>

Comment 8 EricLee 2014-04-14 09:39:40 UTC
Verified pass in libvirt-0.10.2-32.el6:

# man virt-xml-validate
.....

       "domainsnapshot"
           The schema for the XML format used by domain snapshot
           configuration
.....

       "nwfilter"
           The schema for the XML format used by network traffic filters

       "secret"
           The schema for the XML format used by secrets descriptions

       "interface"
           The schema for the XML format used by physical host interfaces

Have added above four schemas.

Comment 11 errata-xmlrpc 2014-10-14 04:17:05 UTC
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/RHBA-2014-1374.html


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