How to configure swift s3 api

asked 2016-12-15 04:40:22 -0500

BigStack gravatar image

updated 2016-12-19 14:23:30 -0500

rbowen gravatar image

We are trying to configure Swift S3 API on OpenStack mitaka RDO using the documentation from swift3 github(https://github.com/openstack/swift3)

The following are the steps we done so far.

Installed swift3:

git clone https://git.openstack.org/openstack/swift3
python setup.py install

Updated the pipeline:main section as below

pipeline = catch_errors gatekeeper healthcheck proxy-logging cache container_sync bulk ratelimit swift3 s3token authtoken keystoneauth container-quotas account-quotas slo dlo versioned_writes proxy-logging proxy-server

Added filter:swift and filter:s3token.

[filter:swift3]
use = egg:swift3#swift3

[filter:s3token] 
paste.filter_factory = keystonemiddleware.s3_token:filter_factory
auth_uri = http://controller:35357

Restarted the swift proxy service

systemctl restart openstack-swift-proxy

and created a ec2 credential for demo account from controller.

openstack ec2 credentials create

The Proxy service has been successfully restarted without any error but still we are not able to see "EC2 Access Key" and "EC2 Secret Key" on the dashboard (Project -> Compute -> Access & Security-> API Access tab).

We can list the ec2 credentials from controller command line using Openstack command "openstack ec2 credentials list"

Also, we cannot connect with s3curl.

./s3curl.pl --id=personal http://myswiftproxyendpoint.com:8080/v1/AUTH_2f80c33256c26f4a325235325238f6d808/test/test.txt
<?xml version='1.0' encoding='UTF-8'?>
<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><RequestId>txe169627a2e4e4af19da06-005852722b</RequestId><BucketName>v1</BucketName></Error>

Can someone shed some light here?

edit retag flag offensive close merge delete