[
https://issues.apache.org/jira/browse/DTACLOUD-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13415036#comment-13415036
]
Deepika Agrawal commented on DTACLOUD-282:
------------------------------------------
Can you please suggest where can I refer the deltacloud command line tool
documentation in detail.
I am refering http://deltacloud.apache.org/command-tools.html and deltacloudc
-h , but all the operations are not described in that.
For example, I tried performing:
deltacloudc keys create -i 'testkey' -U "USER" -P "PASSWORD" -u
"http://172.30.54.46:4000/api"
It seems the error is in syntax of command, I got the below output:
Usage:
deltacloudc collection operation [options]
URL format:
API_URL=http://[user]:[password]@[api_url][port][/uri]
Examples:
1. To list collections for deltacloud api on port 3333 of server deltacloud.foo
deltacloudc -l -u http://user:[email protected]:3333/api
2. To list the operations for the 'images' collection:
deltacloudc images -l -u http://user:[email protected]:3333/api
3. To list all images (i.e. call the 'index' operation of 'images'):
deltacloudc images index -u http://user:[email protected]:3333/api
4. To get the details of image '5':
deltacloudc images show -i 5 -u
http://user:[email protected]:3333/api
Options:
-i, --id ID ID for operation
-d, --image-id ID Image ID
-b, --bucket-id ID Bucket ID
-r, --bucket-location NAME Bucket location
-a, --arch ARCH Architecture (x86, x86_64)
-p HARDWARE_PROFILE, Hardware Profile
--hardware-profile
-n, --name NAME Name (for instance eg.)
-s, --state STATE Instance state (RUNNING, STOPPED)
-u, --url URL API url ($API_URL variable)
-U, --user USER API username ($API_USERNAME variable)
-P, --password PASSWORD API password ($API_PASSWORD variable)
-l, --list List collections/operations
-h, --help Display this screen
-v, --version Display API version
-V, --verbose Print verbose messages
-f, --file-path PATH local path for new blob data
-m, --blob-metadata k1=v1, k2=v2 Comma seperated k=v pairs for blob
metadata (for create operation)
> 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
> Attachments:
> 0001-Deltacloud-client-restore-ability-to-use-http-USER-P.patch
>
>
> HI,
> I am trying to list all the keys using deltacloud command line tool:
> deltacloudc keys index http://user:[email protected]: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