How to configure swift s3 api [closed]

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

BigStack gravatar image

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

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 reopen merge delete

Closed for the following reason question is not relevant or outdated by mary_grace
close date 2017-12-14 15:08:21.955193

Comments

BigStack - This question refers to a version which has been EOL'ed. If the issue is still existing with a more recent version, please open a new question with updated details. Here is the list of OpenStack releases: https://releases.openstack.org

mary_grace gravatar imagemary_grace ( 2017-12-14 15:08:13 -0600 )edit