Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 887187 - [Doc] There are some typos in libvirt manual and formatdomain.html
[Doc] There are some typos in libvirt manual and formatdomain.html
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt (Show other bugs)
6.4
Unspecified Unspecified
low Severity low
: rc
: ---
Assigned To: Eric Blake
Virtualization Bugs
:
Depends On:
Blocks: 895654
  Show dependency treegraph
 
Reported: 2012-12-14 04:41 EST by hongming
Modified: 2013-02-21 02:28 EST (History)
9 users (show)

See Also:
Fixed In Version: libvirt-0.10.2-13.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-02-21 02:28:42 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0276 normal SHIPPED_LIVE Moderate: libvirt security, bug fix, and enhancement update 2013-02-20 16:18:26 EST

  None (edit)
Description hongming 2012-12-14 04:41:43 EST
Description of problem:
There are some typos in libvirt manual and formatdomain.html

Version-Release number of selected component (if applicable):
libvirt-devel-0.10.2-10.el6.x86_64
libvirt-0.10.2-10.el6.x86_64


How reproducible:
100%


Steps to Reproduce:
1.# vim /usr/share/doc/libvirt-devel-0.10.2/formatdomain.html
.....

1123   <features>
1124     <pae/>
1125     <acpi/>
1126     <apic/>
1127     <hap/>
1128     <privnet/>
1129     <hyperv>
1130       &lt;relaxed state='on'&gt;   <==== It should add "/"
1131     &lt;/hyperv&gt;
1132
1133   &lt;/features&gt;


http://libvirt.org/formatdomain.html

  <features>
    <pae/>
    <acpi/>
    <apic/>
    <hap/>
    <privnet/>
    <hyperv>
      <relaxed state='on'> 
    </hyperv>
  </features>
================================================================================

2. # vim /usr/share/doc/libvirt-devel-0.10.2/formatdomain.html

2319       &lt;virtualport type='openvswitch'/&gt;    <==== It should remove "/"
2320         &lt;parameters profileid='menial' interfaceid='09b11c53-8b5c-4eeb-8f     00-d84eaa0aaa4f'/&gt;
2321       &lt;/virtualport&gt;

http://libvirt.org/formatdomain.html

<virtualport type='openvswitch'/>
        <parameters profileid='menial' interfaceid='09b11c53-8b5c-4eeb-8f00-d84eaa0aaa4f'/>
 </virtualport>

================================================================================
3. # vim /usr/share/doc/libvirt-devel-0.10.2/formatdomain.html

3439   &lt;devices&gt;
3440     &lt;serial type="dev"&gt;
3441       &lt;source path="/dev/ttyS0"/&gt;
3442       &lt;target port="1"/&gt;
3443   &lt;/serial&gt;                      <==== It should add indentation
3444   &lt;/devices&gt;

http://libvirt.org/formatdomain.html

<devices>
  <serial type="dev">
    <source path="/dev/ttyS0"/>
    <target port="1"/>
</serial>
</devices>

==================================================================================
4. # man virsh

......
 Example

            virsh dumpxml <domain> > domain.xml
            vi domain.xml (or make changes with your other text editor)
            virsh create < domain.xml     <==== It should remove "<"



  
Actual results:


Expected results:


Additional info:
Comment 2 Eric Blake 2012-12-14 10:30:47 EST
Items 1-3 are fixed with:

commit 9821f8f6cfc49cb7ebcf707f2e40894d8f6c80af
Author: Eric Blake <eblake@redhat.com>
Date:   Fri Dec 14 08:28:57 2012 -0700

    docs: fix some typos in examples
    
    As detected in https://bugzilla.redhat.com/show_bug.cgi?id=887187
    
    * docs/formatdomain.html.in: Fix XML typos.

Item 4 is fixed with:

commit d49adae2e261d2736b22be37ef8d4fe0460df0ad
Author: Guido Günther <agx@sigxcpu.org>
Date:   Wed Nov 7 21:35:55 2012 +0100

    Fix "virsh create" example
    
    We require a file and don't accept standard input:
    
    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692322
Comment 4 hongming 2012-12-20 00:35:14 EST
Verify it using libvirt-0.10.2-13.el6.x86_64. The result is expected. Change its status to VERIFIED.


Check the following files , the above typos have been fixed.

1
http://libvirt.org/formatdomain.html
/usr/share/doc/libvirt-devel-0.10.2/formatdomain.html


2.man virsh 

           Example

            virsh dumpxml <domain> > domain.xml
            vi domain.xml (or make changes with your other text editor)
            virsh create domain.xml
Comment 5 errata-xmlrpc 2013-02-21 02:28:42 EST
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

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