Bug 747858 - aeolus-image list --images fails with " 401 Unauthorized (RestClient::Unauthorized)"
Summary: aeolus-image list --images fails with " 401 Unauthorized (RestClient::Unauth...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: rubygem-aeolus-image
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
Assignee: Matt Wagner
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-21 07:44 UTC by Aziza Karol
Modified: 2014-08-17 22:27 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-15 19:48:20 UTC


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2012:0592 0 normal SHIPPED_LIVE new packages: rubygem-aeolus-image 2012-05-15 22:31:14 UTC

Description Aziza Karol 2011-10-21 07:44:40 UTC
Description of problem:


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


How reproducible:


Steps to Reproduce:
[root@nec-em11 templates]# aeolus-image  list --images
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/abstract_response.rb:48:in `return!': 401 Unauthorized (RestClient::Unauthorized)
	from /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:220:in `process_result'
	from /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:169:in `transmit'
	from /usr/lib/ruby/1.8/net/http.rb:543:in `start'
	from /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:166:in `transmit'
	from /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:60:in `execute'
	from /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:31:in `execute'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/lib/aeolus_image/model/warehouse_client.rb:137:in `do_request'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/lib/aeolus_image/model/warehouse_client.rb:99:in `object_names'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/lib/aeolus_image/model/warehouse_client.rb:106:in `objects'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/lib/aeolus_image/model/warehouse_model.rb:52:in `bucket_objects'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/lib/aeolus_image/model/warehouse_model.rb:69:in `all'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/lib/aeolus_image/command/list_command.rb:25:in `images'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/lib/aeolus_image/command/config_parser.rb:211:in `send'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/lib/aeolus_image/command/config_parser.rb:211:in `list'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/lib/aeolus_image/command/config_parser.rb:38:in `send'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/lib/aeolus_image/command/config_parser.rb:38:in `process'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/bin/aeolus-image:20
	from /usr/bin/aeolus-image:19:in `load'
	from /usr/bin/aeolus-image:19



Additional info:
[root@nec-em11 ~]# rpm -qa | grep aeolus
aeolus-conductor-doc-0.5.0-0.20111021031626gita5004c6.fc15.noarch
aeolus-conductor-daemons-0.5.0-0.20111021031626gita5004c6.fc15.noarch
aeolus-all-0.5.0-0.20111021031626gita5004c6.fc15.noarch
rubygem-aeolus-cli-0.1.0-3.20111003133323git9451323.fc15.noarch
aeolus-configure-2.2.0-1.20111020103152gitc9b6c03.fc15.noarch
aeolus-conductor-0.5.0-0.20111021031626gita5004c6.fc15.noarch
rubygem-aeolus-image-0.1.0-3.20111003170706git8f23238.fc15.noarch

Comment 1 Matt Wagner 2011-10-24 13:24:05 UTC
This is because we're still waiting on an ACK for the patch to enable OAuth authentication. It sounds like iwhd has started in OAuth mode, but the code to enable it in the client hasn't been committed yet.

I'll update when this patch is in. You'll probably get 401 Unauthorized errors all over the place in the meantime.

Comment 2 Matt Wagner 2011-10-24 15:12:15 UTC
mtaylor merged in some changes that should fix this in aeolus-image. The most recent is c3aa9903fdf2a673ed40ac1020586b2d72df6a09.

We just need to get this rebuilt and into the repo, and then I'll kick this back over to QE.

Comment 3 Hugh Brock 2011-10-27 15:37:18 UTC
Believe this is fixed with 0.4.1.

Comment 4 Dave Johnson 2011-10-28 18:41:18 UTC
[root@qeblade26 ~]# aeolus-image list --images
ID                                       Name     OS     OS Version     Arch     Description     
------------------------------------     ----     --     ----------     ----     -----------     
7ee1374d-80b3-49dc-8d32-008e4f977fde                                                             

[root@qeblade26 ~]# 
[root@qeblade26 ~]# rpm -qa | grep aeolus | sort
aeolus-all-0.5.0-0.20111025005411git5ff5abd.fc15.noarch
aeolus-conductor-0.5.0-0.20111025005411git5ff5abd.fc15.noarch
aeolus-conductor-daemons-0.5.0-0.20111025005411git5ff5abd.fc15.noarch
aeolus-conductor-doc-0.5.0-0.20111025005411git5ff5abd.fc15.noarch
aeolus-configure-2.2.0-1.20111024205543gitf9232cc.fc15.noarch
rubygem-aeolus-cli-0.1.0-3.20111024205439gitc3aa990.fc15.noarch
rubygem-aeolus-image-0.1.0-4.20111024205454git6b2b696.fc15.noarch

Comment 7 errata-xmlrpc 2012-05-15 19:48:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2012-0592.html


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