Bug 683320

Summary: virt-install: unmatched error info with --print-xml option
Product: Red Hat Enterprise Linux 6 Reporter: Nan Zhang <nzhang>
Component: python-virtinstAssignee: Cole Robinson <crobinso>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: dallan, dyuan, llim, mhideo, mjenner, syeghiay, xen-maint, zpeng
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
virt install would display the wrong error message when invoking --print-xml. This fix ensures the correct error message is displayed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:45:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nan Zhang 2011-03-09 06:02:14 UTC
Description of problem:
as subject.

Version-Release number of selected component (if applicable):
python-virtinst-0.500.5-1.el6.noarch

How reproducible:
Always

Steps to Reproduce:
# virt-install -n foo -r 512 -f /var/lib/libvirt/foo.img -s 6 --cdrom /var/lib/libvirt/boot/Fedora-14-i686-Live-Desktop.iso --print-xml --vnc
ERROR    --xml-only can only be used with guests that do not have an installation phase (--import, --boot, etc.). To see allall generated XML, please use --xml-step all.
  
Actual results:


Expected results:


Additional info:
As error info mentioned 2 options --xml-only & --xml-step, but they all can't be recognized.

Comment 2 Cole Robinson 2011-03-10 16:38:43 UTC
Fixed in python-virtinst-0.500.5-2.el6

Comment 4 zhe peng 2011-03-22 09:34:36 UTC
Verified on python-virtinst-0.500.5-2.el6.noarch, not fixed.
# rpm -qa|grep python-virtinst
python-virtinst-0.500.5-2.el6.noarch

#virt-install -n foo -r 512 -f /tmp/foo.img -s 6 --cdrom /tmp/boot.iso --print-xml --vnc
ERROR    --xml-only can only be used with guests that do not have an installation phase (--import, --boot, etc.). To see all generated XML, please use --print-step all.

the bug not fixed completely,expected error messages is:
ERROR    --print-xml can only be used with guests that do not have an installation phase (--import, --boot, etc.). To see all generated XML, please use --print-step all.

Comment 5 Cole Robinson 2011-03-22 18:45:12 UTC
Argh, I keep messing this fix up! :) Upstream now

http://git.fedorahosted.org/git?p=python-virtinst.git;a=commit;h=090517f55533428acbabd95760743132f10cad3f

Comment 6 Suzanne Logcher 2011-03-28 19:55:14 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains 
unresolved, it has been rejected as it is not proposed as an 
exception or blocker.

Red Hat invites you to ask your support representative to 
propose this request, if appropriate and relevant, in the 
next release of Red Hat Enterprise Linux.

Comment 7 Cole Robinson 2011-03-30 18:49:17 UTC
Should be fixed in python-virtinst-0.500.5-3.el6

Comment 8 zhe peng 2011-03-31 08:59:32 UTC
Verified on python-virtinst-0.500.5-3.el6.noarch,fixed.
# rpm -qa|grep python-virtinst
python-virtinst-0.500.5-3.el6.noarch

]# virt-install -n foo -r 512 -f /tmp/test.img -s 6 --cdrom /tmp/boot.iso --print-xml --vnc
ERROR    --print-xml can only be used with guests that do not have an installation phase (--import, --boot, etc.). To see all generated XML, please use --print-step all.

the bug fixed,change ot Verified.

Comment 9 zhe peng 2011-04-15 09:43:38 UTC
verified this bug with:
Linux localhost.localdomain 2.6.32-130.el6.x86_64 #1 SMP Tue Apr 5 19:58:31 EDT
2011 x86_64 x86_64 x86_64 GNU/Linux

python-virtinst-0.500.5-3.el6.noarch
libvirt-0.8.7-17.el6.x86_64

passed.

Comment 11 Michael Hideo 2011-05-16 03:17:03 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
* virt install would display the wrong error message when invoking --print-xml. This fix ensures the correct error message is displayed. (BZ#683320)

Comment 12 Michael Hideo 2011-05-16 21:30:36 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-* virt install would display the wrong error message when invoking --print-xml. This fix ensures the correct error message is displayed. (BZ#683320)+virt install would display the wrong error message when invoking --print-xml. This fix ensures the correct error message is displayed.

Comment 13 errata-xmlrpc 2011-05-19 13:45:57 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0636.html