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

Comments

Projects
None yet
3 participants
@aledbf
Contributor

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

This comment has been minimized.

Show comment
Hide comment
@carmstrong

carmstrong Oct 31, 2014

Contributor

@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

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@aledbf
Contributor

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