Bug 797157

Summary: Aeolus CLI does not gracefully handle errors in the config
Product: [Retired] CloudForms Cloud Engine Reporter: Martyn Taylor <mtaylor>
Component: rubygem-aeolus-cliAssignee: Martyn Taylor <mtaylor>
Status: CLOSED ERRATA QA Contact: wes hayutin <whayutin>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: dajohnso, hbrock, jlaska, morazi
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-04 11:30:16 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 Martyn Taylor 2012-02-24 12:18:15 UTC
Description of problem:

CLI does not check for errors in the config instead it waits untill it trys to connect to conductor via the config URL then spits out an exception trace to the command line.
Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Martyn Taylor 2012-03-06 14:57:51 UTC
commit 7071db969bd69b8fae0cd71fad45ddf80621f7aa
Author: Martyn Taylor <mtaylor>
Date:   Fri Feb 24 12:21:12 2012 +0000

    BZ#797157 Validate aeolus config

Comment 2 Mike Orazi 2012-04-17 20:21:26 UTC
Product branch:

commit 10c55a532b875066ad3340bc3b97026277bef069
Author: Martyn Taylor <mtaylor>
Date:   Fri Feb 24 12:21:12 2012 +0000

   BZ#797157 Validate aeolus config

Comment 3 Hugh Brock 2012-05-07 18:11:25 UTC
Looks like this fix made the product, moving to on_qa

Comment 4 Dave Johnson 2012-05-09 13:53:24 UTC
Looks good in release candidate, moving to verified

rubygem-aeolus-cli-0.3.1-1.el6.noarch
rubygem-aeolus-image-0.3.0-12.el6.noarch


# changed to bad password
[root@ibm-x3650-01 ~]# aeolus-image list --images

ERROR:  Unauthorized => Invalid Credentials, please check ~/.aeolus-cli

# changed to bad url
[root@ibm-x3650-01 ~]# vim .aeolus-cli 
[root@ibm-x3650-01 ~]# aeolus-image list --images

ERROR:  Name Or Service Not Found => Please check your ~/.aeolus-cli

Comment 5 James Laska 2012-06-04 11:30:16 UTC
(In reply to comment #4)
> Looks good in release candidate, moving to verified
> 
> rubygem-aeolus-cli-0.3.1-1.el6.noarch

/mnt/redhat/rel-eng/CloudForms/1.0/rc1/el6-ce/x86_64/rubygem-aeolus-cli-0.3.1-1.el6.noarch.rpm

> rubygem-aeolus-image-0.3.0-12.el6.noarch

/mnt/redhat/rel-eng/CloudForms/1.0/rc1/el6-ce/x86_64/rubygem-aeolus-image-0.3.0-12.el6.noarch.rpm

Moved to CLOSED ERRATA.  This issue was fixed and verified in CloudForms-1.0.0