Bug 784609 - PermissionDenied error for aeolus image cli
Summary: PermissionDenied error for aeolus image cli
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: rubygem-aeolus-cli
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
Assignee: Martyn Taylor
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-25 14:57 UTC by dgao
Modified: 2012-02-22 23:51 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-25 18:40:48 UTC


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.