You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Marios Andreou (JIRA)" <ji...@apache.org> on 2012/07/16 11:48:35 UTC
[jira] [Commented] (DTACLOUD-282) unable to use deltacloud client
[ https://issues.apache.org/jira/browse/DTACLOUD-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13414961#comment-13414961 ]
Marios Andreou commented on DTACLOUD-282:
-----------------------------------------
Hi Deepika: looks like a credentials parsing issue. In earlier versions of client credentials were specified as part of the URL as you have correctly done above: http://USER:PASSWORD@172.30.54.46:4000/api.
However, sometimes the AWS access keys sometimes contain characters like '/' which makes URI.parse fail... for this reason there is an alternative to this format. You can use the -U and -P flags:
deltacloudc keys index -U "USER" -P "PASSWORD" http://172.30.54.46:4000/api
It seems we dropped the ability to use the http://USER:PASSWORD@ format - I think this was an error.
Can you please retry your query using -U and -P to specify the username/password.
I attach a patch here which restores the ability to specify user:pass as part of the URI (as you were trying to do) - but this will only work if your AWS access credentials don't contain characters that make URI.parse fail.
Also, make sure you're using the latest version of deltacloud client (1.0.0 ; sudo gem install deltacloud-client).
many thanks for reporting the issue, marios
> unable to use deltacloud client
> -------------------------------
>
> Key: DTACLOUD-282
> URL: https://issues.apache.org/jira/browse/DTACLOUD-282
> Project: DeltaCloud
> Issue Type: Bug
> Components: Client (Ruby), Server
> Environment: ubuntu, deltacloud
> Reporter: Deepika Agrawal
> Assignee: Marios Andreou
> Priority: Critical
> Labels: deltacloudc
>
> HI,
> I am trying to list all the keys using deltacloud command line tool:
> deltacloudc keys index http://user:password@172.30.54.46:4000/api
> /var/lib/gems/1.9.1/gems/aws-2.5.6/lib/ec2/ec2.rb:133:in `initialize': 500 (DeltaCloud::HTTPError::DeltacloudError)
> DeltaCloud::HTTPError::ServerError: AWS access keys are required to operate on EC2
> Parameters: {}
> Driver: ec2@default
> from /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/ec2/ec2_driver.rb:787:in `new'
> from /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/ec2/ec2_driver.rb:787:in `new_client'
> from /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/ec2/ec2_driver.rb:329:in `keys'
> from /home/deepika/testgit/deltacloud/server/lib/deltacloud/helpers/deltacloud_helper.rb:58:in `block in filter_all'
> from /usr/lib/ruby/1.9.1/benchmark.rb:295:in `measure'
> from /home/deepika/testgit/deltacloud/server/lib/deltacloud/helpers/deltacloud_helper.rb:57:in `filter_all'
> from /home/deepika/testgit/deltacloud/server/lib/deltacloud/helpers/rabbit_helper.rb:22:in `block (2 levels) in standard_index_operation'
> from /var/lib/gems/1.9.1/gems/sinatra-rabbit-1.0.6/lib/sinatra/rabbit/base.rb:387:in `instance_eval'
> from /var/lib/gems/1.9.1/gems/sinatra-rabbit-1.0.6/lib/sinatra/rabbit/base.rb:387:in `block in control'
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira