Bug 503721

Summary: virt-image don't support --prompt options
Product: Red Hat Enterprise Linux 5 Reporter: Alex Jia <ajia>
Component: python-virtinstAssignee: Cole Robinson <crobinso>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 5.4CC: llim, xen-maint
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 574270 (view as bug list) Environment:
Last Closed: 2010-03-30 08:51:25 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:
Bug Depends On:    
Bug Blocks: 574270    
Attachments:
Description Flags
virt-image: Hide unimplemented --prompt option from --help output none

Description Alex Jia 2009-06-02 11:53:49 UTC
Description of problem:


Version-Release number of selected component (if applicable):
[root@dhcp-66-70-18 ~]# uname -r
2.6.18-151.el5xen
[root@dhcp-66-70-18 ~]# rpm -qa|grep python-virtinst
python-virtinst-0.400.3-1.el5
[root@dhcp-66-70-18 ~]# rpm -qa|grep libvirt
libvirt-python-0.6.3-3.el5
libvirt-0.6.3-3.el5
libvirt-debuginfo-0.6.3-3.el5
libvirt-0.6.3-3.el5

How reproducible:
virt-image --prompt

Steps to Reproduce:
1.
2.
3.
  
Actual results:
don't support --prompt options

Expected results:
support --prompt options

Additional info:
[root@dhcp-66-70-18 ~]# virt-image --prompt
usage: virt-image [options] image.xml

virt-image: error: You need to provide an image XML descriptor

Comment 1 Cole Robinson 2009-12-10 19:01:52 UTC
Providing prompting for virt-image will be a decent amount of work for not a lot of gain since I'm pretty sure this tool has near 0 users. I think the best thing to do will just be to hide the --prompt option (but not error out to maintain back compat).

Comment 2 Cole Robinson 2009-12-10 21:18:21 UTC
Fixed upstream, should be an easy backport:

http://hg.fedorahosted.org/hg/python-virtinst/rev/fc962689be97

Comment 3 Cole Robinson 2009-12-13 19:11:05 UTC
Created attachment 378060 [details]
virt-image: Hide unimplemented --prompt option from --help output

Comment 4 Cole Robinson 2009-12-13 19:11:38 UTC
Fix built in python-virtinst-0.400.3-6.el5

Comment 8 errata-xmlrpc 2010-03-30 08:51:25 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-2010-0282.html