Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help to configure s3cmd to access the data store #2326

Closed
aledbf opened this issue Oct 30, 2014 · 2 comments
Closed

help to configure s3cmd to access the data store #2326

aledbf opened this issue Oct 30, 2014 · 2 comments
Labels

Comments

@aledbf
Copy link
Contributor

@aledbf aledbf commented Oct 30, 2014

I don't know if this is a good idea but I don't see any documentation about using the data store with a S3 compatible client like s3cmd. The default configuration doesn't work (it's possible to run ls but not to access the content of a bucket)

in the cfg:

access_key = # content from $(etcdctl get /deis/store/gateway/accessKey)
secret_key = # content from $(etcdctl get /deis/store/gateway/secretKey)
host_base =  deis-store.local3.deisapp.com
host_bucket = deis-store.local3.deisapp.com

change S3.py (from s3cmd)
from

def format_uri(self, resource):
                if resource['bucket'] and not check_bucket_name_dns_conformity(resource['bucket']):

to

def format_uri(self, resource):
                if resource['bucket']:

now ls in a bucket works

@bacongobbler bacongobbler added the docs label Oct 30, 2014
@carmstrong
Copy link
Contributor

@carmstrong carmstrong commented Oct 31, 2014

@aledbf From what I've seen, in S3 community tools you'll need to tweak the "calling format": https://github.com/deis/deis/blob/master/registry/templates/create_bucket

Most of my work around getting community tools to support the Ceph gateway was enabling them to tweak this setting.

Docker registry: https://github.com/deis/deis/blob/master/registry/templates/config.yml#L90-L106
wal-e: wal-e/wal-e@65350f7

@aledbf
Copy link
Contributor Author

@aledbf aledbf commented Nov 7, 2014

@aledbf aledbf closed this Nov 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.