Bug 767064

Summary: aeolus-cli returns "valid command required" even for valid arguments.
Product: [Retired] CloudForms Cloud Engine Reporter: Aziza Karol <akarol>
Component: rubygem-aeolus-cliAssignee: Martyn Taylor <mtaylor>
Status: CLOSED CURRENTRELEASE QA Contact: wes hayutin <whayutin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: morazi, ssachdev
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-30 17:13:13 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 Aziza Karol 2011-12-13 05:56:35 UTC
Description of problem:


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


How reproducible:


Steps to Reproduce:
[root@dell-pe1950-01 templates]# aeolus-cli  -h
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)
    -T, --target TARGET1,TARGET2     provider type (ec2, rackspace, rhevm, etc)
    -h, --help                       Get usage information for this tool

List options:
    -i, --images                     Retrieve a list of images
    -b, --builds ID                  Retrieve the builds of an image
        --providerimages ID          Retrieve the provider images from a target image
    -g, --targets                    Retrieve the values available for the --target parameter
    -p, --providers                  Retrieve the values available for the --provider parameter
    -a, --accounts                   Retrieve the values available for the --account parameter


  


Expected results:
Valid command required: should not be displayed for valid arguments passed


Additional info:
[root@dell-pe1950-01 templates]# rpm  -qa | grep aeolus
rubygem-aeolus-image-0.2.0-1.el6.noarch
aeolus-conductor-doc-0.7.0-4.el6.noarch
aeolus-configure-2.4.0-3.el6.noarch
rubygem-aeolus-cli-0.2.0-3.el6.noarch
aeolus-all-0.7.0-4.el6.noarch
aeolus-conductor-0.7.0-4.el6.noarch
aeolus-conductor-daemons-0.7.0-4.el6.noarch

Comment 1 wes hayutin 2012-01-10 17:10:30 UTC
adding to ce-sprint-next

Comment 2 wes hayutin 2012-01-10 17:13:08 UTC
adding to ce-sprint-next

Comment 3 Martyn Taylor 2012-01-11 10:23:48 UTC
aeolus-cli no longer exists it was renamed last sprint.  Please use aeolus-image -h or aeolus image -h. 

The help output has dramatically changed since: https://bugzilla.redhat.com/show_bug.cgi?id=767099

Heres the output I get now from from aeolus-image -h

$ aeolus-image -h
Usage: aeolus-image [list|build|push|import|delete|status] [command options]
    -h, --help                       Get usage information for this tool
Aeolus Image Commands:
    list   : Lists Aeolus Image Resources
    build  : Builds a new Image
    push   : Pushes an Image to a particular Provider Account
    import : Imports an existing image
    delete : Delete an Aeolus Image Resource
    status : Check the status of a push or build
See `aeolus-image <command> -h` for more information on each command



Thanks

Martyn

Comment 4 Martyn Taylor 2012-01-12 10:10:07 UTC
Tested on this commit:

commit a8c21ff4945bdabfec82ec5ff3ff0badcda03ec9
Author: Martyn Taylor <mtaylor>
Date:   Wed Jan 11 10:14:37 2012 +0000

    BZ#768317 Handle Ambiguous Option Exception

Comment 5 wes hayutin 2012-01-12 16:31:51 UTC
adding to ce-sprint

Comment 6 wes hayutin 2012-01-12 16:38:58 UTC
removing ce-sprint-next tracker

Comment 7 Shveta 2012-01-19 05:27:36 UTC
aeolus-image -h
Usage: aeolus-image [list|build|push|import|delete|status] [command options]
    -h, --help                       Get usage information for this tool
Aeolus Image Commands:
    list   : Lists Aeolus Image Resources
    build  : Builds a new Image
    push   : Pushes an Image to a particular Provider Account
    import : Imports an existing image
    delete : Delete an Aeolus Image Resource
    status : Check the status of a push or build
See `aeolus-image <command> -h` for more information on each command


===========================================================

Verified in 
rpm -qa|grep aeolus
aeolus-conductor-0.8.0-8.el6.noarch
aeolus-all-0.8.0-8.el6.noarch
aeolus-conductor-daemons-0.8.0-8.el6.noarch
rubygem-aeolus-image-0.3.0-3.el6.noarch
aeolus-configure-2.5.0-5.el6.noarch
rubygem-aeolus-cli-0.3.0-4.el6.noarch
aeolus-conductor-doc-0.8.0-8.el6.noarch