Bug 747383

Summary: aeolus-image list - unhandled exception when passing unknown argument
Product: [Fedora] Fedora Reporter: James Laska <jlaska>
Component: rubygem-aeolus-cliAssignee: Martyn Taylor <mtaylor>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 16CC: jturner, mmorsi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-14 02:54:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description James Laska 2011-10-19 16:45:54 UTC
Description of problem:

Accidentally using the incorrect argument to aeolus-image results in an unhandled exception.  Really a minor nit, but seems pretty easy to hit.

Version-Release number of selected component (if applicable):

 * rubygem-aeolus-cli-0.1.0-5.fc16.noarch

Steps to Reproduce:
1. Run bogus command: aeolus-image list --buil foo

Actual results:

# aeolus-image list --buil foo

/usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/lib/aeolus_image/command/config_parser.rb:211:in `send': undefined method `build' for #<Aeolus::Image::ListCommand:0x7ffd908cb208> (NoMethodError)
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/lib/aeolus_image/command/config_parser.rb:211:in `list'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/lib/aeolus_image/command/config_parser.rb:38:in `send'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/lib/aeolus_image/command/config_parser.rb:38:in `process'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/bin/aeolus-image:20
	from /usr/bin/aeolus-image:19:in `load'

Expected results:

# aeolus-image list --foo bar
Warning: Invalid option

Additional info:

Comment 1 Mo Morsi 2011-12-08 14:59:21 UTC
Changing the owner of this to mtaylor who owns aeolus-image / aeolus-cli

Comment 2 Martyn Taylor 2012-01-03 13:38:10 UTC
Setting to Modified - This is fixed in recent versions of the CLI.

$ aeolus-cli --bui

Valid command required: 

Usage: aeolus-cli [list|build|push|import|delete|status] [general options] [command options]

General options:
    -d, --id ID                      id for a given object
        --description NAME           description (e.g. "<image><name>MyImage</name></image>" or "/home/user/myImage.xml")
    -r, --provider NAME1,NAME2       name of specific provider (ie ec2-us-east1)
        --provider_account NAME1,NAME2
.......


Version:
rubygem-aeolus-cli-0.3.0-0.20111220094150git769a835.fc15.noarch

Comment 3 Fedora End Of Life 2013-01-17 01:51:03 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Fedora End Of Life 2013-02-14 02:54:46 UTC
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.