Add storage scripts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
txAWS |
Fix Released
|
Medium
|
Duncan McGreggor |
Bug Description
In bug #482357, Robert Collins suggested that we start adding command line tools for txAWS. A blueprint has been opened for this here:
https:/
This ticket addresses the need for adding scripts for the txaws.storage functionality.
Note from the blueprint that we want to provide compatibility with ec2-api-tools and eucatools as much as possible.
This branch needs to take into consideration the following:
* how ec2-api-tools and euca-tools use environment variables and files
* compatibility of command line options (with the aforementioned tools)
* the naming of scripts in the ./bin directory (txaws-*, and named like ec2-api-tools)
* the creation of a txaws/scripts/ subpackage
Here is a list of the currently supported S3 calls in txAWS, and thus the scripts that will likely be needed for this branch:
* txaws-list-buckets
* txaws-create-bucket
* txaws-delete-bucket
* txaws-put-object
* txaws-get-object
* txaws-head-object
* txaws-delete-object
Related branches
- Duncan McGreggor: Approve
-
Diff: 1415 lines (+834/-304)22 files modifiedLICENSE (+10/-5)
README (+6/-0)
bin/txaws-create-bucket (+42/-0)
bin/txaws-delete-bucket (+42/-0)
bin/txaws-delete-object (+46/-0)
bin/txaws-get-object (+46/-0)
bin/txaws-head-object (+47/-0)
bin/txaws-list-buckets (+43/-0)
bin/txaws-put-object (+56/-0)
txaws/client/base.py (+39/-0)
txaws/ec2/client.py (+3/-36)
txaws/ec2/exception.py (+4/-108)
txaws/ec2/tests/test_exception.py (+2/-129)
txaws/exception.py (+113/-0)
txaws/meta.py (+10/-0)
txaws/s3/client.py (+25/-7)
txaws/s3/exception.py (+21/-0)
txaws/s3/tests/test_exception.py (+62/-0)
txaws/script.py (+42/-0)
txaws/testing/payload.py (+31/-19)
txaws/tests/test_exception.py (+114/-0)
txaws/util.py (+30/-0)
Changed in txaws: | |
milestone: | none → 0.1 |
Changed in txaws: | |
importance: | Undecided → Medium |
assignee: | nobody → Duncan McGreggor (oubiwann) |
status: | New → In Progress |
description: | updated |
description: | updated |
Changed in txaws: | |
status: | Fix Committed → Fix Released |
Setting credentials in Euca2ools:
EC2_URL -U or --url [url] http:// host:8773/ services/ Eucalyptus ec2.amazonaws. com /ec2.amazonaws. com:443
or http://
or https:/
S3_URL -U or --url [url] http:// host:8773/ services/ Walrus s3.amazonaws. com /s3.amazonaws. com:443
or http://
or https:/
EC2_ACCESS_KEY -a or --access-key [key] Access Key ID / Query ID
EC2_SECRET_KEY -s or --secret-key [key] Secret Access Key / Secret Key
EC2_CERT -c or --cert [file] user's PEM-encoded certificate
EC2_PRIVATE_KEY -k or --privatekey [file] user's PEM-encoded private key
EUCALYPTUS_CERT --ec2cert_path [file] OPTIONAL path to cloud cert