Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.

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 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

@carmstrong
Copy link
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

@aledbf
Copy link
Contributor Author

aledbf commented Nov 7, 2014

closed by https://github.com/deis/s3cmd

@aledbf aledbf closed this as completed Nov 7, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants