Bug 784609

Summary: PermissionDenied error for aeolus image cli
Product: [Retired] CloudForms Cloud Engine Reporter: dgao
Component: rubygem-aeolus-cliAssignee: Martyn Taylor <mtaylor>
Status: CLOSED NOTABUG QA Contact: wes hayutin <whayutin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0   
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-01-25 18:40:48 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 dgao 2012-01-25 14:57:59 UTC
Received this error after a yum update of packages + aeolus-restart-services

[root@qeblade21 ~]# aeolus image list --images
ID                                       Name                     OS         OS Version     Arch       Description                           
------------------------------------     --------------------     ------     ----------     ------     ---------------------------------     
11ba731f-d4f7-4c96-b7c8-6f9eac7139ae     RHEL6_2 configserver     RHEL-6     2              x86_64     RHEL 6.2 w/ Audrey Client for ec2     
715e2a6c-9fde-4ffe-b9eb-5cb56e495820     RHEL6_2 configserver     RHEL-6     2              x86_64     RHEL 6.2 w/ Audrey Client for all     

[root@qeblade21 ~]# aeolus image delete --image 715e2a6c-9fde-4ffe-b9eb-5cb56e495820

ERROR:  PermissionDenied => Insufficient privileges to perform the requested action.
[root@qeblade21 ~]# aeolus image build --target ec2,rhevm,vsphere --template rhel_audrey.tmpl 

ERROR:  PermissionDenied => Insufficient privileges to perform the requested action.

[root@qeblade21 ~]# aeolus image list --images
ID                                       Name                     OS         OS Version     Arch       Description                           
------------------------------------     --------------------     ------     ----------     ------     ---------------------------------     
11ba731f-d4f7-4c96-b7c8-6f9eac7139ae     RHEL6_2 configserver     RHEL-6     2              x86_64     RHEL 6.2 w/ Audrey Client for ec2     
715e2a6c-9fde-4ffe-b9eb-5cb56e495820     RHEL6_2 configserver     RHEL-6     2              x86_64     RHEL 6.2 w/ Audrey Client for all     

[root@qeblade21 ~]# aeolus image delete --image 715e2a6c-9fde-4ffe-b9eb-5cb56e495820

ERROR:  PermissionDenied => Insufficient privileges to perform the requested action.
[root@qeblade21 ~]# aeolus image build --target ec2,rhevm,vsphere --template rhel_audrey.tmpl 

ERROR:  PermissionDenied => Insufficient privileges to perform the requested action.


[root@qeblade21 ~]# rpm -qa | grep "aeolus-cli"
rubygem-aeolus-cli-0.3.0-5.el6.noarch
[root@qeblade21 ~]# rpm -qa | grep "oz"
oz-0.8.0-2.el6.noarch
[root@qeblade21 ~]# rpm -qa | grep "iwhd"
iwhd-1.2-3.el6.x86_64

Comment 1 dgao 2012-01-25 15:06:58 UTC
One additional note: After running aeolus-configure, the cli returns to its normal state.

Comment 2 Martyn Taylor 2012-01-25 15:35:25 UTC
This is expected behaviour caused by AOuth credential files.  

Installing new packages will result in creating new credentials for conductor.  IWHD and Factory must be configured to use the new credentials or any requests will be unauthorized.  Hence the error shown in the CLI.

Running aeolus-configure will configure IWHD and Factory for authentication of conductor via OAuth.