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 683320 - virt-install: unmatched error info with --print-xml option
Summary: virt-install: unmatched error info with --print-xml option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: python-virtinst
Version: 6.1
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Cole Robinson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-09 06:02 UTC by Nan Zhang
Modified: 2011-06-10 02:34 UTC (History)
8 users (show)

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.
Clone Of:
Environment:
Last Closed: 2011-05-19 13:45:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0636 0 normal SHIPPED_LIVE python-virtinst bug fix and enhancement update 2011-05-18 17:55:48 UTC

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


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