Bug 767342

Summary: aeolus-cli displays generic/useless error with invalid credentials
Product: [Retired] CloudForms Cloud Engine Reporter: Matt Wagner <matt.wagner>
Component: aeolus-conductorAssignee: Matt Wagner <matt.wagner>
Status: CLOSED CURRENTRELEASE QA Contact: wes hayutin <whayutin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, athomas, deltacloud-maint, 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:17:31 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 Matt Wagner 2011-12-13 20:38:08 UTC
Description of problem:
In the event that the credentials in ~/.aeolus-cli are rejected by Conductor, the error presented to the user is generic and does not even hint at the problem.

Version-Release number of selected component (if applicable):
Probably all, but tested on rubygem-aeolus-cli-0.3.0-0.20111213152831git59194c0.fc15.noarch (from master head)

How reproducible:
100%

Steps to Reproduce:
1. Set up ~/.aeolus-cli with bogus credentials
2. Run "aeolus-cli list --providers" (or any command, really)
  
Actual results:
ERROR:   => Unknown Error

Expected results:
An error referencing invalid credentials.

Comment 1 Matt Wagner 2011-12-13 22:10:55 UTC
Posted to list: https://fedorahosted.org/pipermail/aeolus-devel/2011-December/007404.html

Comment 2 Shveta 2011-12-23 15:23:42 UTC
Edited the Username in ~/.aeolus-cli to a wrong username and this is what i get:

[root@hp-bl260cg5-01 ~]# aeolus-image list --providers

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


Verified in 
rpm -qa|grep aeolus
aeolus-conductor-0.8.0-0.20111222233342gitd98cb57.el6.noarch
aeolus-all-0.8.0-0.20111222233342gitd98cb57.el6.noarch
aeolus-conductor-daemons-0.8.0-0.20111222233342gitd98cb57.el6.noarch
rubygem-aeolus-image-0.3.0-0.20111222173411gitc13b654.el6.noarch
rubygem-aeolus-cli-0.3.0-0.20111222173356git3cd6277.el6.noarch
aeolus-configure-2.5.0-0.20111222173430git17b704a.el6.noarch
aeolus-conductor-doc-0.8.0-0.20111222233342gitd98cb57.el6.noarch